# Cutebot & AI Lens- Face Tracking ## Purpose --- - Use the Cutebot and [AI Lens](https://shop.elecfreaks.com/products/elecfreaks-smart-ai-lens-kit?_pos=1&_sid=dcae9d30c&_ss=r) to achieve the face tracking function. ## Materials required --- - 1 × [Cutebot V3.0](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) - 1 × [Cutebot lithium battery pack](https://www.elecfreaks.com/cutebot-lithium-battery-pack.html) - 1 × [AI Lens Kit](https://shop.elecfreaks.com/products/elecfreaks-smart-ai-lens-kit?_pos=1&_sid=dcae9d30c&_ss=r) ***Note:*** The [AI Lens](https://shop.elecfreaks.com/products/elecfreaks-smart-ai-lens-kit?_pos=1&_sid=dcae9d30c&_ss=r) kit works with [Cutebot](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=4c6909119&_ss=r) V3.0 only(You can see the version number printed on the baseboard).  ## Connections: --- ### Steps to install the lithium battery pack:  Assembly steps for bricks: Parts list:  Steps of build-up:        ### Connections of the AI Lens: Connect the RJ11 cable with the [AI Lens](https://shop.elecfreaks.com/products/elecfreaks-smart-ai-lens-kit?_pos=1&_sid=dcae9d30c&_ss=r) 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](https://shop.elecfreaks.com/products/elecfreaks-smart-ai-lens-kit?_pos=1&_sid=dcae9d30c&_ss=r) to meet the requirements of the functions that you want to achieve. ## Software Platform: --- [MicroSoft MakeCode](https://makecode.microbit.org/#) ## Programming --- ### Step 1 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](https://shop.elecfreaks.com/products/elecfreaks-smart-ai-lens-kit?_pos=1&_sid=dcae9d30c&_ss=r) 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. ### Step 2 - In the on start brick, initialize the [AI Lens](https://shop.elecfreaks.com/products/elecfreaks-smart-ai-lens-kit?_pos=1&_sid=dcae9d30c&_ss=r) and switch to face recognition function.  - In the “forever” brick, set to get one image form the [AI Lens](https://shop.elecfreaks.com/products/elecfreaks-smart-ai-lens-kit?_pos=1&_sid=dcae9d30c&_ss=r). If a face is on the image, set the LED screen to display √; or set to display ×.  ### Link  Link: [https://makecode.microbit.org/_KFMLijP1xdh5](https://makecode.microbit.org/_KFMLijP1xdh5) You may also download it directly below:
## Result --- - If the [AI Lens](https://shop.elecfreaks.com/products/elecfreaks-smart-ai-lens-kit?_pos=1&_sid=dcae9d30c&_ss=r) recognizes the face(s), the LED screen displays √; or it displays ×. ## Exploration --- ## FAQ --- ## Relevant Files ---