Cerebral Frequencies: Interactive LED Light BOX
27 Views, 1 Favorites, 0 Comments
Cerebral Frequencies: Interactive LED Light BOX
This Art project will allow you to create an interactive brain model.
Our model will light up and make sounds for specific brain regions.
We'll use concepts from LED animation, audio, capacitive touch and storage expansion.
This build is using a Raspberry Pi Pico W.
Supplies
Micro SD SPI or SDIO Card Breakout Board:
4 x AA Battery Holder (and 4 AA batteries):
Capacitive Touch Break out board:
Supplies to actually build:
1/8 in birch wood (Laser Cutting)
1/8 in pink acrylic (Laser Cutting)
Wood Glue (Enclosure)
Hot Glue (Enclosure)
Laser Cutting
Build you're brain box model and cut out!
You'll need access to a laser cutter, adobe illustrator and a laser cutting software like Trotek Ruby.
- Download the laser cutting files.
- Make Any Adjustments Necessary to Ai files:
- Stroke Weight and Color (This will be based on you're laser cutter specifications; We use (255,0,0) RED and 0.01mm stroke).
- Go to your preferred laser cutting soft ware and make three cuts!
- The Enclosure: This will create the box and brain outline.
- The Speaker Holes: On the material you just cut out, specifically the front side (the one with the brain on it), laser cut the speaker holes onto a corner.
- The Outline: This will create a pink acrylic outline we will place on top of our enclosure to diffuse the lights and make the art POP!
- When you have made all your cut outs, glue together the assembly, but do not glue on the acrylic, we'll do that towards the end.
Board Assembly
Powering the rail:
- Connect a pin from the 5v port on the breadboard to the the top of the positive rail, on the right hand side.
Wiring SD Card Reader:
- Wire the power line to the nearest 5V rail port
- Wire the Ground to the ground rail or nearest ground port.
- Wire the SCK port to GP10
- Wire the SI/MOSI/TX port to GP11
- Wire the SO/MISO/RX port to GP12
- Wire the CS port to GP13
Wiring the Speaker:
- Make sure to charge your speaker to full batter.
- Use alligator clips (to pin) to:
- Ground the the base of the auxiliary "out" to a ground port.
- Clip the the tip of the auxiliary "out" and plug into GP16.
Wiring the Capacitive Touchpad:
- Use the STEMMA QT 4pin cable that came with the capacitive touchpad to:
- Ground (BLACK) to a nearby ground port.
- Plug the SDA cable (BLUE) to GP4.
- Plug the SCL cable (YELLOW) to GP5.
- Plug the Power cable (RED) to a 5V rail port.
Wiring the LED Strip:
- Take out your battery pack and install the batteries, but keep the pack OFF.
- Strip the black and red wires, if needed, to expose them.
- Strip the three wired cable of the NeoPixel strand, if needed, to expose them.
- Alligator clip the ground cable on the NeoPixel strand to the ground cable on the battery pack.
- Use a Alligator clip to pin out cable, clipping the battery pack ground wire, and plugging the pin out into a ground port on the bread board (This creates a common ground, allowing the strand to communicate with the board, without receiving power from the board).
- Alligator clip the power cable on the NeoPixel strand to the power cable on the battery pack.
- Alligator clip to pin out, clipping the signal cable on the NeoPixel strand and plugging into GP18.
Check the simple wiring diagram above for reference.
Ensuring Code Functions
- Download provided code.
- Open PyCharm.
- Ensure you have all the proper modules installed for the libraries.
- Use "circup install -a" command in the command prompt to do this.
- Ensure you have Tio, or a similar program, Installed to see code output.
- Read through it to ensure you know how it works.
- Change any of the addressable externals components if needed (SD card reader, Capacitive touch pad, LED Strip, Speaker).
- If you follow the wiring diagram you won't have to worry about this.
- Ensure you have a "sd" file on your CIRCUITPY volume for your PicoW.
- Install the provided sound files and place them in your SD card, in a file called "brain_sounds"
- Ensure the code runs smoothly!
- The first eight capacitive touch pads should (1) Light up at least 2 LEDs (2) Play a funky brain wave sound (3) Be calling the sound file from the ""sd/brain_sounds/" pathway.
- If your code does not work:
- ENSURE YOUR WIRING IS CORRECT.
- This is what I had most trouble with. So I tried to make it easy here. (1) You must have common ground for your LED strip an board to communicate (2) your breadboard wiring must match the code.
- Ensure you have the correct files and pathways being called in the code.
- Ensure you have all modules required for the libraries to be used in the code.
- Once your code is functional, we can move onto building the enclosure and Putting the project together.
Assembly
- Whip out the Velcro strips and zip ties, it's about to get messy.
- If you haven't already, glue the box together, except the top portion with the brain design.
- On the back side of the panel with the brain design, hot glue the fist LED light to the frontal area and continue in a zig zag fashion (see image above).
- On the front side of the panel with the brain design, hot glue the bottom, sides, and top areas and quickly place the acrylic outline accurately onto the wood design, add more hot glue to the same edges if needed. (Remember: A little goes a long way.)
- Velcro down the components: Pick corners where there is space for wires to breath. (See how mine came out above).
- Velcro down the bread board.
- Velcro down the battery pack.
- Velcro down the power source.
- Velcro down the speaker (under the speaker holes).
- Pull the Stemma QT capacitive touch pad out of the enclosure and Velcro it down to the top, where you can interact with it later.
- Plug in the power bank to the Raspberry Pi to power it on.
- Turn on the battery pack to supply power to the LED.
- Close the structure and interact with the capacitive touch pads to see how the brain speaks!