Below an overview of the content:
- Project video
- Pokey Part
- Carrying Bit
- Hardware
- Code & Audio
- Result!
A device that makes any object talk! Use with caution...
Pokey PartEvery good invention needs at least two parts, a pokey part and a carrying bit.We start by building the pokey part. It consists of two 3D printed components, one made with black filament and the other with clear plastic.
The top part has a large indent to hold our NeoPixel Ring.The bottom component has a button hole and tubing for the wiring.Both the STL files are included in this step.
To give it the right look and feel we are going to age it a bit. A delightful afternoon with fire, knives and sanding paper does the trick.
The last todo is adding the telephone wire. Solder the wires from the electronics to the telephone cord.
Carrying BitThe starting point for our carrying bit is an old ammo box.But you can use whatever you might have lying around.
The first adjustment is drilling two holes, one to hold the on/off switch, and another for the pokey part wiring.
We also 3D print a small brace to nicely hold the pokey part.If need be all these parts can be aged as well.
HardwareNext is putting the Raspberry Pi, USB Speaker and powerbank into the container.This is also the step where we wire everything together with the help of a small breadboard.
- Wire switch and button
- Plug in the USB Speaker
- Attach NeoPixel Ring
- Power the Raspberry Pi with the powerbank
To make it all work, we need to write some code and record some audio.
The code works as following:
- Check if the switch is on, if not, turn off the NeoPixel Ring
- If switch is on, check if button is pressed and set the NeoPixel to glow bright white
- If button is pressed, fetch random audio file and play it, while turning the NeoPixel Ring green.
All that's left to do is record some audio, as every object you want to speak to will need some audio.
Result!We successfully built a make-believe invention capable of translating objects.
Now go out there and be amazed by the awful things stuff has to say!
Comments