Documente Academic
Documente Profesional
Documente Cultură
The Schematic has three main parts to it. The Sensor Circuitry where
the accelerometer is wired up to the A/D converters. The second part is the powe
r circuit where we have the On/Off switch, the 9v battery & +5v 7805 Voltage Reg
ualtor. The 3rd part of the circuit is the 3 7-Segment LEDs.
The IR Emitter LED (D2) send outs IR light and the Phototransistor (Q6) receives
IR light from the reflected surface. From high school we learned that white wil
l reflect all colors while black will absorb them. So when the LED emits IR onto
white, the Phototransistor is turned on and sends a voltage signal to Q1. When
light is reflected off of black color the Phototransistor (Q6) is then turned of
f and no signal is sent
Looking At The Motor Circuit
The motors are turned on when transistors Q4 or Q5 are switched on with a positi
ve voltage. This happens in one of two cases. When black color is sensed, the ci
rcuit switches Q4 off and Q5 on. When white color is sensed the case is reversed
with Q4 on and Q5 off. This means the motors are never actually on at the same
time and the illusion of driving forward is created by quick back-and-forth move
ments
Working The Brains
This circuit combines the Motor circuit and the IR Sensor Circuit. Using 3 2N222
2's and some resistors a circuit is built that interprets the two cases. When wh
ite color is detected Q1 is turned on, which turns off Q2 and Q3 on. In the oppo
site case, when black color is detected Q1 is turned off, which means Q2 remains
on and Q3 off. Understanding this circuit might take a few minutes staring at t
he schematic, it is a little complicated.