The Ben Heck Show
Ben Heck's Halloween Superhero Wearables Assembly (2) (6x36)
Fecha de emisión: Oct 07, 2016
The team completes Karen’s SuperHero Costume to give it speakers, EL(electroluminescent) Wires, IC2 connected accelerometer sensors, a Parallax Propeller, and an Arduino Mini Microcontroller. Karen transforms into Captain Tangent giving her the power to diffuse problems with tangents!
Ben attaches an Arduino Pro Mini Board underneath the board used for audio to get both boards working together. The Atmel chip will do the polling of the I2C Bus and if it sees a trigger event it will send that command to the Propeller telling it to play audio. Since it’s a 3.3 V board as well they can run everything at 3.3V and only use 5V for the audio amplifier. Before designing an enclosure to fit on the belt he runs some tests to make sure the board works with the sensors. He then wires up communication between the Atmel and the Propeller.
Ben works on sound effects for Karen’s punches. He adds higher and lower frequencies to give the system three sounds to randomly pick from for variety. He also makes three different sounds for the kicks. After he runs some tests he moves onto the next part which is adding the audio amplifier and speakers and hooking this up to a battery pack.
Ben runs into an issue with Adafruit LSM303 Library which he solves by commenting out the Wire.begin() function and going through each of the devices in the multiplexer to select the device and then begin it. You only need to call Wire.begin() once to initiate the I2C Bus on the microcontroller. It’s a good idea to examine a library’s H and CPP files to see what it’s actually doing. When the system initially booted some of the accelerometers weren’t initialized. When it boots you need to tell it to enable your accelerometer and enable your magnetometer. Some of the devices on the serial monitor were coming up as zeros meaning they weren’t properly initialized and causing the I2C bus to hang. The accelerometers aren’t enabled on boot, so proper initialization is a must.
Feli
- Estrenada: Sept 2010
- Episodios: 444
- Seguidores: 3
- Finalizado
- element14
- Viernes