Line-Following Robot

Similar documents
IR add-on module circuit board assembly - Jeffrey La Favre January 27, 2015

Pacific Antenna Field Strength Indicator Kit

Bill of Materials: Metronome Kit PART NO

Line Following Circuit Board Wiring Guide

Never power this piano with anything other than a standard 9V battery!

Instructions for Building the Pulsed Width Modulation Circuit. MC-12 (DC Motor Controller or PWM) From Electronic Light Inc. (revised kit 10/03/08)

Repairing Microsoft Wedge Touch Mouse Battery Cover Retaining Clip

Manual Version July 2007

Pacific Antenna Easy SWR Indicator Kit

Instructions for Building the Pulsed Width Modulation Circuit. MC-12 (DC Motor Controller or PWM) From Electronic Light Inc. (revised kit 8/08)

Assembly and Installation Instructions for White Oak Audio Design TM-1001 LED board

Circuit Board Assembly Instructions for Babuinobot 1.0

Warm Tube Clock. Before we start, please make sure that you have all required parts that come for the main board :

16 Bit Micro Experimenter Assembly and Check out Instructions

Heartboard PCB Assembly Instructions

LED Field Strength Indicator Kit

Instructions for Building the Pulsed Width Modulation Circuit. MC-12 (DC Motor Controller or PWM) From Electronic Light Inc. (revised kit 5/08)

Pacific Antenna Low Pass Filter Kit

DIODE / TRANSISTOR TESTER KIT

Pingable Envelope Generator

Lighthouse Beginner s soldering kit

Read This Page First

Digital Electronics & Chip Design

Introduction 1. Download socket (the cable plugs in here so that the GENIE microcontroller can talk to the computer)

Instructions for Lighting an S Scale Caboose

Patton Robotics, LLC.

Assembly Instructions

QUASAR ELECTRONICS KIT No DRILL SPEED CONTROLLER

LA502 Assembly guide Main PCB Resistors - (2)

Starving Student II. Starving Student II. SS2 guide. Written By: 6L guides.diyaudio.com/ Page 1 of 24

DIODE / TRANSISTOR TESTER KIT

Assembly Instructions for the 1.5 Watt Amplifier Kit

Introduction. Pictures in this lab have been taken from Pre-Lab Homework

DC Motor. Controller. User Guide V0210

Bill of Materials: General Purpose Alarm, Pulsed PART NO

MICROGRANNY v2.1 - Assembly Guide

TS500 Assembly guide. Soldering. TS500 Assembly guide Main PCB 1. Diodes. Document revision 1.2 Last modification : 17/12/16

Total solder points: 82 Difficulty level: beginner advanced. Dc to Pulse Width Modulator K8004 ILLUSTRATED ASSEMBLY MANUAL

Easy Transmitter. Support ETX_REV5_Manual V2.7 Revised

5W Mono Amplifier Kit

THE AGGRESSOR (K-995)

Lesson 2: Soldering. Goals

Building the Toothpick Audio CW Filter

4ms SCM Breakout. Kit Builder's Guide for PCB v2.1 4mspedals.com

Switcher Assembly guide. Switcher Assembly guide 1. Soldering. 2. Switcher3 vs Switcher2. 3. PCB split.

ABC V1.0 ASSEMBLY IMPORTANT!

STEADY HAND GAME WITH LATCHING LED

Bill of Materials: PWM Stepper Motor Driver PART NO

MP573 Assembly guide. Soldering. MP573 Assembly guide PCB split PCB split. Document revision 2.2 Last modification : 22/08/17

Mono Amplifier. LM386 Headphone Amp

Warning: CHOKING HAZARD -Small Parts. Not for Children Under 9 yrs. Kit Recommended for Ages 12 and up.

tinycylon Assembly Instructions Contents Written by Dale Wheat Version August 2016 Visit dalewheat.com for the latest update!

Modifying a USB sound fob to act as a repeater interface for app_rpt

Assembly Instructions for B7971 Smart Socket

THE THUNDERDRIVE (K-950)

SoftRock v6.0 Builder s Notes. May 22, 2006

AM RADIO KIT MODEL AM-780K. Assembly and Instruction Manual

THE RING RESONATOR (K-975)

HANDS-ON LAB INSTRUCTION SHEETS MODULE

Xkitz.com XLO-5CP Control Panel for Five Channel Color Light Organ

Hendricks QRP Kits The Twofer Rev

LITTLE NERD v1.1 Assembly Guide

Geiger Counter Kit Assembly Instructions ( )

FM Wireless Microphone Kit Instructions for Assembly Page 1 of 5

SPACE WAR GUN KIT MODEL K-10. Assembly and Instruction Manual. Elenco Electronics, Inc.

Pacific Antenna RF Probe assembly

Onwards and Upwards, Your near space guide

Total solder points: 198 Difficulty level: beginner advanced DUAL ELECTRONIC DICE K3400 ILLUSTRATED ASSEMBLY MANUAL

KN-Q10 Assembly Manual

BAT DETECTOR A project of the Service Kring JOTA-JOTI.

Lesson 2: Soldering. Goals

Elektor Construction Guide TAPIR

BombiniBot Parts and Assembly

EE 1202 Labs: Ground Rules

Assembly Manual V1R2B-Rev1.0D

Build Your Own Clone Li l Echo Kit Instructions

555 Morse Code Practice Oscillator Kit (draft 1.1)

SSRP LTC1746 Assembly Manual V0.1 Check the most recent version

Figure 1. CheapBot Smart Proximity Detector

LED Infinity Mirror Controller, 32 LEDs, Multiple Patterns.

Guitarpedalkits.com Overdrive Pedal Build Instructions

Total solder points: 66 Difficulty level: beginner advanced. 15 Channel IR remote stick K8051 ILLUSTRATED ASSEMBLY MANUAL

Total solder points: Difficulty level: beginner advanced 0 TO 60 HOUR START / STOP TIMER K6200 ILLUSTRATED ASSEMBLY MANUAL

DARK ACTIVATED COLOUR CHANGING NIGHT LIGHT KIT

Assembly Instructions

Penrose Quantizer Assembly Guide

Pacific Antenna Code Practice Oscillator Kit

Foxhunt Offset Attenuator. Parts List:

LAB MODULES. MSCI 222C Introduction to Electronics. Charles Rubenstein, Ph. D. Professor of Engineering & Information Science

Tek-Bot Remote Control Transmitter Board Construction

W7MRI's Anderson Powerpole. Power Hub

Installation tutorial for Console Customs Xbox 360 Dual Rapid fire Microchip for wired and wireless controllers (all versions)

Total solder points: 338 Difficulty level: beginner advanced. Remote control by telephone K6501 ILLUSTRATED ASSEMBLY MANUAL

Build Your Own Clone Li l Reverb Kit Instructions

ELECTRICAL CONNECTIONS

BrewsBySmith.com STC DIY Kit

Model 333 Single Channel USB Chromatography Data System Relay ( Contact Closure ) Installation

400W MONO/STEREO AMPLIFIER

SoftRock v5.0 Builder s Notes. December 12, Building a QSD Kit

Assembly and User Guide

Transcription:

1 Line-Following Robot Printed Circuit Board Assembly Jeffrey La Favre October 5, 2014 After you have learned to solder, you are ready to start the assembly of your robot. The assembly will be divided into two parts: 1) printed circuit board assembly 2) connection of motors, switches and battery to the printed circuit board. This lesson covers the first part, assembly of the printed circuit board. Nearly all modern electronic devices employ a printed circuit board (PCB) to connect individual electronic components together. The PCB eliminates the need to connect different parts together with wires. Instead, the PCB contains strips of copper that substitute for wires. There are a number of steps involved in the manufacture of a PCB. The substrate (thick part of the board) is made from a material that does not conduct electricity. A thin sheet of copper is laminated (attached) to the surface of the substrate. PCB boards can be laminated on one surface or both, depending on the requirements of the circuits to be assembled. The next steps involve imaging of a circuit pattern on to the surface of the copper. The pattern will ultimately be the parts of the copper sheet that remain after processing. A protective coating is applied over the pattern. Then the board is etched by a chemical process that dissolves the copper. The protective coating over the pattern prevents the etching of those parts of the copper. In this way all of the copper is removed from the board except those parts covered by the protective coating. There are additional steps in the manufacturing process, but I will not detail those here. The finished PCB contains a pattern of copper strips that are covered with an insulating layer. There are holes in the PCB that allow insertion of the electronic component wires. Immediately around each hole there is a small ring of exposed copper and this has a thin coating of solder. This serves as the surface for bonding with the wire of a component during soldering. The PCB for your robot is small, 3 ¾ X 2 ½ inches. On that small board you will install 22 electronic components to the top surface and 6 to the bottom surface. In addition, you will connect four loops of wire to function as test points and six Molex headers, which serve as connectors for the wires that go to the switches and motors. That is quite a few parts and we can appreciate that the PCB does indeed provide an efficient means of connecting components together in a compact space.

2 Figure 1 Bottom side of printed circuit board Figure 1 is a photo of the bottom side of the circuit board. The strips of copper can be seen under the blue-colored insulating layer (if you have a black and white copy the copper strips will be gray while surrounding background will be darker). Around the small holes (which are difficult to see) you can see that the insulating layer is missing. Instead, there is a coating of silver-colored solder. Note the labels for R3 through R6 near the bottom edge, the photoresistors. These components are mounted on this side of the board because they must point toward the floor. The white LEDs, 9 and 10, are also mounted on this side of the board because these must shine on the floor (they function as headlights). All other components are mounted on the top side of the board. (turn to the next page)

3 Figure 2 top side of printed circuit board There are three strips of copper on the top side of the PCB (Figure 2). Two of these are marked with arrows in the photo and the third is seen at the position of the DPDT switch connector. These were placed on the top rather than the bottom to avoid intersections where strips must not connect. By placing them on the top surface, it is possible to avoid connecting the strips that cross each other. The position of each electronic component is printed in white on the board to help you place the components properly. LEDs, transistors, diodes, IC1 (LM393) and capacitor C1 have polarity and you must insert them with the proper orientation. A mistake in orientation will result in a robot that does not work properly, if at all. You should notice that the printing on the board includes a plus sign (+) for the anode of each LED. The anode (longer wire) should be inserted in the hole marked with the plus sign. As you should know, if the LED is not inserted properly, it will not work. The three diodes (D1 to D3) have a silver band on the cathode end (the minus end). Notice on the PCB that a band is printed indicating the position of the band (it can t be seen in D3, but it is the same as D1). The large capacitor (C1) has the minus side marked on it. The wire on that side should be inserted into the hole on the PCB that is marked with a minus sign (-). The socket for IC1 has a notch on one end. When inserting the socket on the PCB, the notch should match the notch printed on the board. Also note that the transistors have a flat face and a rounded back. That shape is also printed on the PCB for transistors Q7 and Q8. I will warn you again about these polarity requirements at each step of the process. The resistors, photoresistors and capacitor C2 do not have polarity requirements. There is no orientation requirement when these components are inserted into the board.

4 You should start your work by inserting the resistors on the board. You will need to bend the resistor wires in a way that will make it easy to insert the resistor. Figure 3 resistor positioned near its location on the board If you position the resistor next to its position on the board, then you can see where the wires must be bent. In Figure 3 you can see that the wires must be bent very close to the ends of the resistor in order to fit R18 into its holes on the board. Use needle nose pliers to bend the resistor wires. The wires should be bent so that they can be inserted into the board (see Figure 4). (go on to next page) Figure 4 resistor wires bent

5 Figure 5 resistors on board Figure 5 shows the resistors inserted into the board. Please note that I have made a change in the value for resistors R1, R17 and R18. The resistance is printed as 1K ohms but you will use 2.2K ohms instead (three red bands on resistor). Resistors R7, R8 and R9 are 150 ohms, as printed on the board (brown, green, brown on the resistor). After the resistors are inserted into the board, bend the wires slightly on the bottom side of the board to prevent the resistors from falling out when you turn the board over. Then solder the resistor wires to the bottom surface of the board. When you are finished, trim the excess wires. Now you should insert the three Schottky diodes (D1, D2 and D3) into the board. Figure 6 shows the printing on the board for D1. Notice that there is a band printed near the left end of the diode drawing (I marked the band with a white arrow tip). After bending the wires of the diode, make sure you insert it with its band on the end marked on the board. Figure 7 shows the proper orientations for the Schottky diodes on the board (they are all oriented in the same direction). Figure 6 D1 diode position on PCB Figure 7 Schottky diodes on PCB Make sure the band of each diode is positioned on the left side as in Figure 7. Then turn the board over and solder the diode wires to the board. The diode wires are a heavier gauge than the resistors and will

6 require more heat when soldering. If you have difficulty with the soldering, ask an adult for help. When you are finished soldering, trim the excess wire from the board. There are four test points provided on the board. You will need to make some U-shaped pieces of copper wire to insert at the positions on the board printed TP1, TP2, TP+ and TP- Figure 9 shows the U-shaped wires inserted at TP- and TP2. Figure 10 shows the U-shaped wires inserted at TP1 and TP+. After these are inserted, turn the board over and solder the wires to the board. Then trim the excess wire. Figure 8 U- shaped wire Figure 10 wire for TP+ and TP1 Figure 11 IC socket (notch on left) Figure 9 wire for TP- and TP2 After you are finished with the test points, insert the IC socket. Make sure the notch in the socket is on the left, as it is also printed on the board (Figure 11). Then turn the board over and solder the pins of the socket to the board. Figure 12 is a photo of a variable resistor of the type you will use for R2 and R10 (20,000 ohms). Note the adjustment screw on the resistor. Figure 12 variable resistor for R2 and R10

7 Figure 13 shows the variable resistors R2 and R10 inserted into the board. You will use some silicone glue to attach these resistors to the board (I will show you how to do this). After the glue sets you can solder the resistor wires to the bottom side of the board. But first you should also glue the Molex headers to the board. You will use Molex headers to connect wires from the switches, battery and motors. The header connects to another type of Molex connector (not shown), which contains the wires. This will allow you to easily disconnect the wires, which is handy in certain situations. Figure 14 shows the Molex headers. In the side view you can see the locking clip (on left side of header), which locks the connector to the header. The headers are difficult to solder to the board. You will use silicone glue to glue the headers to the board before soldering them to the board. Figure 13 variable resistors on PCB Figure 14 Molex headers (2 and 4 pint) Figure 15 shows the Molex headers inserted on the board. You will need five 2-pin headers and one 4- pin header. The lock clip must be on the side near the upper edge of the board, as seen in the photo. There is an additional space for a header that is labeled Tube LEDs. In the photo there is no header inserted there. However, you will insert a header there to be used for future additions to the robot. You will use a small amount of silicone glue to cement the headers to the board. When the glue is set, you can turn the board over and solder the pins to the board. Also solder the wires for the variable resistors, R2 and R10 at this time. You do not need to trim the pins of the Molex headers on the bottom side of the board. However, you should trim the wires for R2 and R10 if necessary. Figure 15 Molex headers inserted on board

8 Now you are ready to insert the six colored LEDs on the board. You must insert the LEDs properly, with the anode (longer wire) inserted into the hole marked with a plus (+) sign. Push the LEDs all the way down so that they touch the board. Then turn over the board and solder the wires to the board. When finished soldering, trim the excess wire off the board. Figure 16 LEDs on PCB Now you are ready to insert the two power transistors (Q7 and Q8) on the board. Make sure you insert them with the proper orientation (Figure 17). The flat faces of the transistors should be facing away from the Molex headers. After inserting the transistors, turn the board over and solder the wires to the board. Then trim the excess wire from the board. Figure 17 Transistors on board When finished with the transistors, insert the small capacitor, C2, into the holes just to the right of the IC socket as seen in Figure 18. There is no polarity to this capacitor and it does not matter which wire goes in which hole. Then turn the board over and solder the wires to the board. After you finish the soldering, trim the wires. Figure 18 capacitor C2 inserted in board

9 Now insert the large capacitor, C1, into the board. This capacitor has polarity and must be oriented properly. There is a gold-colored strip with large minus signs printed on one side of the capacitor, as seen in the photo (Figure 19). The wire on this side of the capacitor must be inserted in the hole in the board that is marked with a minus (-) sign. Turn the board over and solder the capacitor wires to the board. Then trim off the excess wire. Figure 19 capacitor C1 inserted into board Before you turn the board over to install the white LEDs and photoresistors, you should insert the LM393 into its socket. You must be careful to insure that all pins of the LM393 are inserted into the socket. Ask an adult for help with this step. Figure 20 is a photo of the LM393 with an arrow pointing to the notch on the left end. When you insert the chip into the socket, this notch must be on the side of the socket that has a notch (the notches must line up). Figure 20 LM 393 - arrow points to notch You are now done installing all components on the top side of the board. Turn the board over to continue your work. You must handle the board gently now as the components of the board will now rest on the table surface. In fact, it is best now if you hold the board in a pair of clips of a holder so that the board does not touch the table surface. Insert the white LEDs into the proper locations on the bottom side of the board (they are marked as LEDs 9 and 10). Remember that LEDs have polarity. In this case, a plus sign is printed on the board, but on the TOP side. The anode wire (longer wire) must be inserted in the hole that is marked with a plus sign. Turn the board over and solder the wires to the board. Then trim off excess wire. Figure 21 white LEDs inserted in board

10 Before you insert the photoresistors into the bottom side of the board, you must carefully paint the sides and bottom (where the wires connect) with a small amount of black paint. This will prevent light from the white LEDs from directly entering the photoresistors. The light from the LEDs must reflect off the floor before entering the photoresistors. Figure 22 photoresistors on PCB After the paint has dried, insert the photoresistors into the bottom side of the board. Do not push the photoresistors down to touch the board. The photoresistors must have long wire leads connected to the board in order to prevent light from the white LEDs from shining directly on the faces of the photoresistors. There should be about one-half inch of wire between the board and the head of the photoresistor. The positions for the photoresistors are printed on the board (R3 photo, R4 photo, R5 photo and R6 photo). Turn the board over and solder the wires to the board on the top side. Then turn the board over again and solder the wires to the bottom side of the board as well. When finished soldering, trim the excess wire off the board. CONGRATULATIONS, YOU HAVE FINISHED INSTALLING ALL COMPONENTS ON THE PC BOARD. A component diagram for the board is presented on page 12. In addition, there is a schematic of the complete robot (including switches, motors and battery) on page 13. This schematic is different than the ones provided in previous lessons. This schematic contains all parts of the robot, including the white headlight LED circuit and the light/dark DPDT switch. Each component symbol is placed approximately where it is located on the printed circuit board. The wiring between the PCB and switches, battery and motors is presented in the colors of the wires used. Notice in particular the wiring detail of the DPDT light/dark switch. In the next lesson you will solder the wiring to the switches and motors. On the schematic you may notice a symbol you have not seen before: This is the chassis ground symbol. Technically, your robot does not have a chassis ground, but I have used this symbol to simplify the schematic. In electronic devices that have a metal frame (also called a chassis), the negative side of the power supply is often connected to the metal frame. Then the frame becomes a chassis ground. Instead of connecting all components back to the battery, all that is needed is to connect the wire to the chassis. Everywhere you see a chassis ground symbol on my schematic, you can then understand that the connection there goes back to the negative side of the battery, even though I have not drawn the wire back to the battery. In previous lessons I have used this symbol when wires cross over each other and are not supposed to be connected. In the schematic on page 13 I have not used this symbol. Instead I have

11 used a small dot to indicate wire connections, like this: and if wires are not connected they look like this: This is a more efficient way of drawing schematics with many crossing wires. You may be wondering about the two capacitors in the robot circuits. You did not use any capacitors in the lessons with the breadboard. The capacitors have been added to improve the performance of your line-following robot. Capacitors function as temporary storage of electrical energy. The robot motors turn on and off frequently when the robot is following a line. Each time the robot turns on a motor, there is a drop in the voltage due to a temporary, large current draw, by the motor. When the capacitors are added, they assist the battery in supplying extra current during motor start-up, thereby preventing a drop in voltage. There are many other applications for capacitors, as you will learn in future projects. You have now arrived at the end of this lesson. In your next lesson you will assemble all parts of your robot, check for shorts and open circuits and test the robot on a track with dark lines.

12

13