Académique Documents
Professionnel Documents
Culture Documents
Stage 2:
Assemble the main board
Stage 3:
Assemble the Linear infrared range finder
Stage 1:
White line sensor assembling
Important instructions:
First understand the circuit diagram. Read the instructions first.
If you don’t know the component then read the component data sheet first.
Trace the PCB first then place the components. Once the component is soldered it is very
difficult to remove it again.
Circuit diagram
White line sensors works on 9V supply. LED (D12) is a high power ultra bright
Red LED. Its light intensity can be controlled by varying the variable resistor R38. A
330E resistor is inserted in series to protect the Red LED from current surge. This resistor
will maintain current in safer limit even if value of the potentiometer becomes zero.
For the white line sensing photo transistor KL3B from ST microelectronics is
used. Collector current is limited by a 47K ohm resistor R37. When photo transistor is
saturated because of reflected red light maximum collector current will be approx 190
micro ampere. To avoid effect of loading a unity gain operational amplifier is used as a
buffer. There are seven white line sensors on the PCB. This analog signal is then
connected through 16 pin FRC connector and FRC cable to the main board.
Figure 4.2 Front side and the back side of the white line sensor board
Colure code for 330 ohm resister is Orange, Orange, Brown, and Gold
Colure code for 47 K ohm resistor is Yellow, Purple, Orange, and Gold
1. Mount all the photo transistors on the board. Be careful about collector and
emitter placement.
2. Mount all the 4 pin LED on the PCB. Be careful about anode and cathode
placement.
3. Solder 330 ohms and 47 K ohms resistor on the sensor side.
4. Solder the 14 pin IC holder on the connector side. Notch of the IC holder must be
pointing towards left side as shown in fig 5.7
5. Solder the Blue colored variable resistor on the PCB
6. Mount the 16 pin FRC connector on the PCB
7. Mount IC LM324 in the IC holder. Make sure that notch on the IC matches with
the notch on the IC holder.
Figure 5.8 Nut and bolt fitting for mounting of the white line sensor board
1. CASE 2: Add five 3/16 size nuts (Marked by number 17 in fig. 3.4 and 3.5) on the
prefixed 5/32 1.25 inch bolts
2. CASE 1: Insert the 1.25 inch counter sink 6 number screw (Marked by number 18
in fig. 3.4 and 3.5) then add five 3/16 size nuts (Marked by number 17 in fig. 3.4
and 3.5)
Figure 5.9 White line board mounting
As shown in fig 5.9 fit the board using 0.5 inch 5/32 counter sink bolts (Marked by
number 17 in fig. 3.4 and 3.5) for the case 2. For the case 1 screw will directly fit in
the hole.
Do not apply high torque on the nuts. It can damage the white line sensor
board
Stage 2:
Assembling the main board
Step 1:
Fit 0.75 inch 5/32 counter sink bolts (Marked by number 15 in fig. 3.4 and 3.5) and fit
them with three 5/32 nuts (Marked by number 21 in fig. 3.4 and 3.5)
Fit the nuts at the bottom side. Do not apply excessive torque while tightening.
Step 2:
Connector placements
Figure 5.11 Connector placements at the back side of the main board
Step 3:
Power management section and the RS232 communication module
CON2 is 10 pin FRC connector. It is used for the charging the onboard battery.
D27 is used for the reverse polarity protection. D26 is a red colored LED which indicates
charging of the battery. S2 is double pole double throw (DPDT) switch. In one setting it
provides supply to the robot. In other setting it allows battery to be charge. On and off
positions are shown in the Fig 5.14. This is done so that one can either switch on the
robot or charge it but user can not do both the things at the same time which can damage
robot or the battery or in worse case both. Battery is connected to the SL1 which is 10 pin
Relaymate connector. Four wires are connected for the redundancy. D29 is used to
restrict the flow of current from battery to the circuit only. Capacitor C4 is used like a
temporary battery which can act as secondary battery for few tens of milliseconds. This is
done to protect microcontroller and other circuit from surge current due to motors when
battery is almost discharged. IC 7805 (IC7) and IC 7809 (IC8) are 5 Volts and 9 Volts
voltage regulators respectively. 0.1 uF capacitors (C5 and C6) are connected between V
out and ground for improved ripple rejection. Both of the voltage regulators are
connected to the heat sink for dissipating the heat.
1. It is very important that you mount the switch first. Do not push the leads of the
switch through PCB. Just keep the switch on the PCB and solder it.
2. Mount the 10 pin FRC connector and then voltage sensing resistors R58 and R59.
3. Mount smaller components first then go for larger components.
4. Watch out for the LED, diode and capacitor polarity and notch on the connector.
5. For the 9 volts regulator you have to use the white LED which has transparent
colored casing and yellowish white colure inside.
6. Mount the voltage regulator IC7805 and IC7809 on the heat sink first by the
screw fitted on the heat sink. Do not forget to mount the heat sink on the main
board by the screws.
7. Solder the voltage regulators only after the proper mounting.
8. Do not interchange the positions of the IC7805 and the IC7809
Step4:
Motor controller placement
C13 to C16 are the 0.01uF capacitors used for the bootstrap. Using these capacitors H
Bridge generates voltage higher than Vcc to drive its upper side MOSFETs. Output is
connected to the motors through 4 pin Relaymate connectors (CON2 and CON3). Pulse
width modulated signal is fed to the motor controllers from the output compare pins from
the microcontroller. Direction and brake inputs are given from the port B of the
microcontroller. LEDs D2 to D7 indicates direction, Brake and the PWM commands
from the microcontroller. LEDs D8 to D11 are in the form of the arrows which shows
motor direction. Resistors R14 and R15 are used for the current sensing.
Arrow indicator and its 330 Ohm resistor will be fitted in step 5.
Step 5:
Wireless infrared communication and jumper settings
Do not remove cap placed at the bottom of the IC TSOP1738. It is used to avoid
contact between the IC and the PCB tracks.
Mount IC holder, LED and the capacitor with correct polarity.
Step 6:
Microcontroller and some audio visual indicators
VCC, AVCC and AREF are connected to the 5V and GND and AGND are
grounded. Capacitors C1 and C2 are used with 4MHz crystal Q1 to generate clock for
the microcontroller. Resistor and the capacitor R4 and C3 forms the RC network for
providing power on reset. MISO, MOSI, SCK, negative RESET and ground pins are
also connected to the In System Programming (ISP) port. Analog data from linear
infrared range finder is given to the ADC0 to ADC3 of the microcontroller. Pins PB0
to PB3 of the microcontroller are connected to the Left and Right motor controllers.
LEDs D3 to D6 are used to indicate status of these pins. Pulse width modulated
signals for the left and the right motors are supplied from the OC1A and OC1B of the
microcontroller. LEDs D2 and D7 are used as visual indicator for the PWM signal
out. Self test switch is connected to the interrupt 0 of the microcontroller. Resistors
R58 and R59 forms the voltage divider network which is reduces the voltage level
below 5V. This level is sensed by the ADC6 of the microcontroller. Pin PB4 of the
microcontroller is used to drive the Buzzer.
Figure 4.23 Microcontroller and some audio visual indicators component
placements
Mount the LEDs, transistor and the buzzer with the correct polarity
Mount the connector and IC holder with its notch facing left.
Do not forget to solder C1 and C2 which are inside of the IC holder.
SELF TEST switch has to be soldered like SMD component.
Solder the 330 ohm resistor for the arrow indicator from the step 5
Mount the arrow indicator on the top of it. (Call the TAs before mounting the
arrow indicator.
CON4 is 2*8 pin right angled mane BERG connector which is fitted at the bottom
side of the board. When there is no white line in front of the white line sensor it gives
approximately 7 volts. When sensors are exposed to the white line photo transistor goes
in to saturation and output drops to the approximately to the 0.27 volts. D13 to D19 are
3.3 volt Zener diodes these diodes are used to distinguish between presence and absence
of the white. R66 to R72 are the current limiting resistors which limits the base current to
the transistors T2 to T8. Resistors R2, R19, R21, R23, R25, R27, and R29 are the bias
stabilization resistors. R1, R3, R20, R22, R24, R26, R28 are the collector resistors.
Transistors T2 to T8 are used to convert analog voltage of white line sensors (0.22V to
7.8V) to the digital value of 0 to 5 volts. IC74245 (IC4) is used to drive bar graph LED
display. LEDs from the bar graph display glows if white line sensors find the white line.
Figure 4.26 White line signal conditioning and the expansion slot component
placement