Plastic toys are great for hacking, modding and improving using Crickit! This box o' gears is fun for about 10 minutes...but when you add motors, sensors and robotics you can make cool interactive art
This example shows how to use the light sensor on the Circuit Playground Express to trigger a motor to rotate. With some audio effects it becomes a Force trainer, or a moving Theremin





CircuitPython Code For "Force Wave" demo
This project is pretty simple, it looks to see when the light sensor is shaded by your hand and changes the motor from running to off or vice versa.
Temporarily unable to load content:
CircuitPython Code For "Theremin" demo
We can adapt the code above to speed up or slow down the motor based on how far our hand is. The darker the sensor, the faster the motor spins!
Temporarily unable to load content:
Page last edited January 22, 2025
Text editor powered by tinymce.