Step 4Main Box
The main loop is waiting for either a physical push of the big red button or to receive a remote serial message. The attached XBee module communicates with another XBee module connected to the ioBridge IO-204 module serial board.
These are the digital I/O pins configuration:
-
XBee Module (with adafruit XBee kit)
- Pin 13 - TX
- Pin 12 - RX
- Gnd and 5v
-
Big Dome Push Button
- Pin 8 - Button NO(normally open) + GND + 100K.
- 5v - COM
-
Servo 1 (continuous rotating servo used for shaking)
- Pin 7 - Data
- Gnd and 5v
-
Servo 2 (used to rotate the CD)
- Pin 6 - Data
- Gnd and 5v
-
X10 C17A (x10 devices controller)
- Pin 3 - DTR line for C17A - DB9 pin 4
- Pin 2 - RTS line for C17A - DB9 pin 7
- Gnd - DB9 pin 5
-
ioBridge 16x2 serial LCD display
- Pin 1 - LCD Data pin
- Gnd and 5v
HalloweenCandy.zip123 KB| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|






















































