Recycle Basket Beam Break |
Basket Lights |
To detect the passage of an object through the recycle bin, a simple beam break circuit was utilized. This circuit is composed of a transmitter IR LED and a phototransistor receiver.
|
To turn on the basket lights, a 2N7000 MOSFET was used to toggle the lights on and off. Rather than soldering 20 LEDs together, a pre-made LED strip was used.
|
RainWater
The servo actuates the bucket (via the slider-crank mechanism) and is controlled using PWM. The linear slider potentiometer provides an analog input to the TIVA, indicating the angle to which the servo should move. The rainwater lights are LED strips that come in a package (LEDs + Resistances) that are controlled with IRLZ34N MOSFETs.
WhackALight
The WhackALight interaction was implemented using a tape sensor to detect the proximity of the hammer, a Schmitt trigger to condition the signal, and a MOSFET to toggle the lights. This design was repeated four times in the final TREE design. Below can be seen the circuit schematic for all four of the MOSFET toggled LED lights.
Below can be seen a single schematic for the tape sensor, the Schmitt trigger, and a voltage reference. This design was repeated for each of the 4 lights. Each sensor is connected to one of the indicated pins above in Port C, which is generalized to TIVA PC.
Start ButtonThe start button was a simple push-button switch. It was used to prompt the user to start the game.
|
Sound BoardThe sound board was a prefabricated board bought from Adafruit. Sound files were uploaded via USB to the board, and the sounds were triggered by pulling the line corresponding to the sound low for 200 ms. The sound board's output was connected to a headphone jack.
|
LCD and Shift Register
To provide visual feedback of the total points acquired during the game, a small LCD 16x2 character LCD screen was used. The LCD was controlled using a 8 bit shift register which was controlled with three lines from the Tiva. The LCD was also controlled in the 4-bit write mode. The LCD connections were connected to a header as shown.