Connect the RJ11 cable with the AI Lens and the other end in Dupont connection to the circled place in the below picture (make sure you connect to the right connections).
Tips: the bricks holder here is flexible to be adjusted, we may manually adjust the angles of the AI Lens to meet the requirements of the functions that you want to achieve.
Click “Advanced” in the drawer to see more choices.
We need to add a package for programming. Click “Extensions” in the bottom of the drawer and search with “cutebot” in the dialogue box to download it.
We need to add a package for programming the AI Lens kit. Click “Extensions” in the bottom of the drawer and search with “https://github.com/elecfreaks/pxt-PlanetX-AI” in the dialogue box to download it.
Note: If you met a tip indicating that the codebase will be deleted due to incompatibility, you may continue as the tips say or build a new project in the menu.
In the on start brick, initialize the AI Lens and switch to characters acquisition function.
While press the button A, set the learnt target as ID1.
In the “forever” brick, set to get one image form the AI Lens. If the ID1 is in the image, we set the color of the headlights in blue and set a √ to display on the screen. Or set the color of the headlights in red and set a × to display on the screen.
While pressing button A, set the learnt target as ID1, after learning it, the LED headlights light on in blue and the icon √ is displaying on the screen if ID1 is recognized; or set the LED lights on in red and display icon × .