Handpose is a machine learning model that allows for palm detection and hand-skeleton finger tracking in the browser. It can detect a maximum of one hand at a time and provides 21 3D hand keypoints that describe important locations on the palm and fingers.
By holding your hand in front of the web camera the program detects it and shows it on screen. I used the position of tip och indexfinger to calculate when it points on the colored squares in app.
The RGB led on micro:bit changes color depending on whitch square is "touched"
The video shows how it works
I 3D printed a flower and a vase for the RGB Led and connected it to the micro:bit large pins 0, 1 and 2.
The micro:bit is programmed in micro:bit MakeCode editor.
To view the code in a larger image visit my GitHub.