This code will run on the Circuit Playground Express all by itself. You can plug it in with a USB cable for power, or use a battery. This is a great AAA battery pack that already has an on/off switch and plugs right into the Circuit Playground's JST connector.

Or, Adafruit has a whole host of other 5v batteries that will work too.
If you want to add a NeoPixel strip, connect your three alligator clips as shown:
- Red --> VOUT
- White --> A1
- Black --> G
The red and black clips always need to be power and ground. You could clip the black wire to any pin marked GND and it would work fine.
The white clip could connect to any of the digital I/O pins, so, any pins marked A1-A7. You could also connect to A0 and the lights would still work, but A0 is also the audio pin so adding lights to that pin would interfere with the board's audio. It's usually best to stick with A1. But, if you want to connect any more light strips, those other pins are free to use.
Capacitive Touch Pads
This code uses the capacitive touch pads A2 and A5. You can activate these just by touching them with your fingers. Magic! Just hook the alligator clips to whichever pads you decide to use in the code.
It's even more fun to hook up alligator clips to the capacitive touch pads, and connect the other end to an object that conducts electricity. We like using fruit, but anything conductive will work. This is also a fun game: what objects can you find that will trigger the timer?
Page last edited March 08, 2024
Text editor powered by tinymce.