Schematic:
lightchaser-schematic.pdf
Pics:
![]()
Top (left to right): 9V battery pack, 6V battery pack, Tamiya Twin-Motor Gearbox
Center: H-bridge circuitry
Bottom: Arduino, photoresistor circuitry
![]()
BB Gun:
The lightchaser was initially designed with a range weapon to be fired when it reached the target, but since the main goal is to chase the target, it was left out of the final code.
For optional implementation, the construction of a solenoid-actuated rapid-fire BB gun is photographed below. The wiring schematic is included in the pdf attached above. The code would have been simply to ON/OFF the transistor input (drawn as digital 12 pin output) intermittently. The current code includes a “display I/O variables every second” portion at the bottom, so this can be modified to send a HIGH output every 1/10 second (–> 600rpm) or something around there.