Figure 1. CheapBot Line Follower

Similar documents
Figure 1. CheapBot Smart Proximity Detector

Onwards and Upwards, Your near space guide

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

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

Line Following Circuit Board Wiring Guide

SoftRock v6.0 Builder s Notes. April 6, 2006

ECE 203 LAB 2 CONTROL FUNDAMENTALS AND MAGNETIC LEVITATION

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

Bill of Materials: Metronome Kit PART NO

LITTLE NERD v1.1 Assembly Guide

REFLECTIVE PHOTOSENSOR CIRCUIT MODULE KIT ASSEMBLY GUIDE

V6.2 SoftRock Lite Builder s Notes. November 17, 2006

16 Bit Micro Experimenter Assembly and Check out Instructions

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

Installing the Onyx Heated Bed

The Useless Machine. Parts Only - Build Guide v0001

Bill of Materials: PWM Stepper Motor Driver PART NO

Assembly Instructions for the 1.5 Watt Amplifier Kit

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

LAB PROJECT 2. Lab Exercise

PAT-4 POWER SUPPLY ASSEMBLY MANUAL Rev B Version

Building the Toothpick Audio CW Filter

Pacific Antenna Easy SWR Indicator Kit

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

LDB-1 Kit Instructions Page 1 of 8

Hexbug Spider Hacking Kit (no solder) by EMGRobotics.com

Lighthouse Beginner s soldering kit

D.I.Y L.E.D CUBE 4X4X4. Level: Intermediate

TV Remote. Discover Engineering. Youth Handouts

LED Field Strength Indicator Kit

ABC V1.0 ASSEMBLY IMPORTANT!

Manual Version July 2007

Ribcage Installation. Part 2 - Assembly. Back-Bone V1.06

Pacific Antenna Code Practice Oscillator Kit

MEGAbitty Micro Line Sensor Board Assembly Instructions 11/15/2003

Hauptwerk Hardware Interface Board Kit for the Universal Midi Encoder Instruction Manual

DARK ACTIVATED COLOUR CHANGING NIGHT LIGHT KIT

Pacific Antenna Field Strength Indicator Kit

TekBot Remote Control Receiver Board Construction

Programmable Timer Teaching Notes Issue 1.2

For Experimenters and Educators

MICROGRANNY v2.1 - Assembly Guide

Tutorial Building the Mono Amp Case

Circuit Board Assembly Instructions for Babuinobot 1.0

OpenROV. Guide 3 - Electronics. We will now move to the assembly of the electronics that will control the ROV. Written By: OpenROV

SDR Cube Transceiver Online Assembly Guide

QRPGuys Iambic Mini Paddle w/base

This guide contains everything you need to set up and operate all three. Inspira Imperial Quilting Frame Assembly...2

1. Line Follower Placing the Line Follower Electrical Wiring of Line Follower Source Code Example and Testing...

35 mw HeNe Laser Ballast Resistor Insulation Upgrade Instructions

Experiment 3 Ohm s Law

Custom Front Panel Upgrade Instructions

QRPGuys Iambic Mini Paddle

INSTALLATION INSTRUCTIONS DODGE RAM 2 & 4WD 1500 PART # P5058

INSTALLATION INSTRUCTIONS GRILLE GUARD RAM 1500 PART # 5058/5058-2

Micro USB Lamp Kit TEACHING RESOURCES. Version 2.1 DESIGN A STYLISH LAMP WITH THIS

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

DC Motor. Controller. User Guide V0210

S-Pixie QRP Kit. Student Manual. Revision V 1-0

EASY BUILD TIMER KIT TEACHING RESOURCES. Version 2.0 LEARN ABOUT SIMPLE TIMING CIRCUITS WITH THIS

Lesson 2: Soldering. Goals

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

A Deluxe LED Blinky That You Can Build!

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

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

Introduction Parts List

The Derby Magic Company Track Assembly Instructions, revision F page 1 of 13

Heartboard PCB Assembly Instructions

Easy Transmitter. Support ETX_REV5_Manual V2.7 Revised

LP-200 Dummy Load / Wattmeter

upad Proto Base Assembly Guide v2.0

Building the Sawdust Regenerative Receiver

FRONT PANEL ASSEMBLY

Assembling the Heated bed

Simon Tilts Assembly Guide

Kossel Rev B Build Guide V1.0

Written By: Darren Chan

Pacific Antenna Easy TR Switch

The Empeg and Riōcar Illumination Kit Installation and User s Manual

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

How to solder SMD component on Awesome PCB or any other kind of PCB.

Pacific Antenna Easy Transmitter Kit

Hover. Installation Instructions. Raised Panel. Version

The µbotino Microcontroller Board

Building the Sawdust Regenerative Receiver

DP-19 DUAL PURPOSE DETECTOR INSTRUCTION MANUAL

Assembly Instructions

I Click on a link tab to jump to that page. Cover Page

PSI-2450 INTEGRATED CONTROLLER USER GUIDE

Pacific Antenna - Easy TR Switch

MONO AMPLIFIER KIT ESSENTIAL INFORMATION. Version 3.0 CREATE YOUR OWN SPEAKER DOCK WITH THIS

I Click on a link tab to jump to that page. Cover Page

Rugged Ridge Body Armor Guard Kit, 5 Pieces, Black (07-Current JK 4-door)

Cricket 80a Assembly Manual v Copyright David Cripe NM0S The 4 State QRP Group

TRUE TECHNICAL SERVICE MANUAL - ALL MODELS. DOORS/DRAWERS/LIDS

Assembly and Installation Instructions for White Oak Audio Design PL700B LED board

Light activated switch

WARNING! ETCHED PARTS CONTAINED IN THIS KIT HAVE SHARP POINTS, EDGES AND CORNERS.

GlideRite Retractable Cover System For HotSpring & Tiger River Spas (except Classic & pre-2000 Landmark Spas)

ESE141 Circuit Board Instructions

Transcription:

The CheapBot Line Follower v2.0 is a plug-in single-board sensor for almost any programmable robot brain. With it, a robot can detect the presence of a black or white zone beneath its two sensors. In its simplest use, the board provides the feedback a robot needs to navigate a black line on a white surface. In addition, it also lets a robot detect the boundary of a robotic playing field. The line follower is a great first sensor for a CheapBot robot. Onwards and Upwards, Your near space guide Figure 1. CheapBot Line Follower Tools Needed to Assemble a NearSys Line Follower While there are literally one hundred tools for soldering, testing, and fixing electronic circuits, you only need these few tools to make the line follower. Safety Glasses Screwdrivers (straight slot and Phillips) Soldering Iron Wire Cutters 1

Pictorial List of Line Follower Components Figure 2. Printed Circuit Board Figure 3. Resistors (four of them) Figure 4. IR LEDs (two of them) Figure 5. Phototransistor with hood (two of them) 2

Figure 6. Header Cable Figure 7. Plastic Block (two of them) Figure 8. Sheet Metal Screw (four of them) 3

Figure 9. Nylon Spacers (three of them) Figure 10. #2-56 bolt and nylock (three of them) 4

Theory of Operation Figure 11. Schematic of the CheapBot Line Follower. The infrared LEDs (IREDs) in the line follower emit two infrared beams at a wavelength of 950 nanometers (just within the infrared portion of the spectrum and just outside our visible range). If there is a white surface beneath the IR beams, the beams reflect back up to the phototransistors. The phototransistors, with a peak sensitivity of 850 nanometers (nm) have enough bandwidth to detect the 950 nm IRED radiation. At the detection of the reflected beam, the phototransistor conducts and there is no voltage drop across the phototransistor. When there is no voltage drop, the robot controller detects a low signal. Dark surfaces on the other hand, like black electricians tape, do not reflect the IR beam back up to the phototransistors. Without the reflected beam, the phototransistor does not conduct and there is a five volt drop across the phototransistor. This results in the robot controller detecting a high signal. With phototransistor/ired pairs on the left and the right side of the line follower, black and white regions can be detected on the left, right, or on both sides of the robot. Two 330 ohm resistors control the brightness of the IREDs. Since each 330 ohm resistor and IRED series circuit is supplied with +5 volts and each IRED has a forward voltage of 1.5 volts, only 3.5 volts is dropped across each resistor. According to Ohm s Law, the current flowing through the resistors and therefore the IREDs is 3.5 volts/330 ohms or 0.011 amps (11 milliamps). 5

Figure 12. The IR LED (IRED) emits a beam of infrared that is reflected from a white surface and detected by the phototransistor (PhT) as in situation A. When the IRED is over black tape, the infrared is absorbed and none is reflected back to the phototransistor and detected, as in situation B. The sensitivity of the phototransistors is sufficient to detect the reflected beam of an IRED from several inches. Notice each phototransistor has a 47k ohm resistor connecting its collector to five volts. The resistor limits the maximum current flowing through the phototransistor when it conducts and it also acts like a voltage divider in conjunction with the conducting phototransistor. Assembly Directions The following components are polarized and must be inserted with the proper orientation. Q1 and Q2 Align the flat side of the plastic case (or short lead) with the A on the top silk D1 and D2 Align the long lead with the A in the top silk Note: D1 and D2 can also be aligned with flat of LED lens on pad opposite the A in the top silk Mount the resistors, IREDs, and wires flush with the PCB surface. The phototransistors stand approximately 1/8 inches above the PCB so they can be bent into proper alignment. This means the bottom of phototransistor s black jacket sits flush on the surface of the PCB. 6

Figure 13. Placement of Components on the line follower PCB Suggested Order of Assembly R1-330 ohm resistor (orange,orange,brown,gold) R2-47k ohm resistor (yellow,violet,orange,gold) R3-330 ohm resistor (orange,orange,brown,gold) R4-47k ohm resistor (yellow,violet,orange,gold) D1 IRED (anode lead in pad closest to A) D2 IRED (anode lead in pad closest to A) Q1 Phototransistor (collector lead in pad closest to A) Q2 Phototransistor (collector lead in pad closest to A) Figure 14. Identity of IRED leads Figure 15. Identity of phototransistor leads Cabling Steps The wires in the Interface Cable are soldered to the PCB using the strain relief holes as illustrated below. 7

Figure 16. A strain relieved wire ready for soldering Solder the Interface Cable to the PCB with the following connections Red wire to +5V pad Green or black wire to GND pad Remaining two wires to Left and Right pads One side of the plastic jacket covering the end of the Interface Cable is colored black. This is the side with the ground wire. The pins in the 2 by 3 header terminating the Interface Cable have the following function, based on their position within the header. Figure 17. The function of the pins in a 2 by 3 header Solder the green wire to any one of the GND header pins 8

Installing the Plastic Blocks The plastic blocks are designed to protect the IRED and phototransistor from being knocked out of alignment. The hole in their center is where the IRED and phototransistor are placed. The opening at the bottom of the block was cut in order that the Line Follower PCB can be mounted to the bottom of a robot. Therefore, the plastic blocks must be oriented so that the slots cut into them are facing the bottom of the PCB, or over the PCBs mounting holes. Use two sheet metal screws to attach each plastic block. Figure 18. Two plastic blocks bolted to the Line Follower PCB. Test Procedure Before inserting the CheapBot Line Follower into a robot controller I/O port, make the following measurements to verify that the PCB is properly assembled. Inspect the bottom of the PCB and verify there are no soldered connections overflowing their pads to neighboring pads Measure continuity between the +5V and GND pins in the header and make sure there is no continuity between the positive and negative terminals in the header Plug the header into the C0 and C1 pins of the CheapBot robot controller I/O port Plug a programming cable into the controller Start the PICAXE program Editor Start the robot Prop the robot up so the line follower points off into space Set the Editor to the correct PICAXE version and proper Com Port Type and download the following program Test: B0 = 0 BIT0 = PINC.0 BIT1 = PINC.1 DEBUG GOTO Test 9

The Debug terminal will pop up so you can observe the value of byte B0. * B0 will have a value of 3 when nothing reflective is in front of the line follower * B0 will have a value of 0 when a white index card passes in front of both phototransistor/ired pairs * B0 will have a value of either 1 or 2 when a white index card passes in front of either one of the phototransistor/ired pairs. If you do not observe variable B0 changing between values 0 and 3, then bend the leads of the phototransistor until it is pointed where it can see the infrared beam reflected off the white surface. Add a stripe of electrician s tape to the index card and pass the line in front of the phototransistor/ired pairs and observe that B0 changes values to correspond to the position of the black stripe. Using the CheapBot Line Follower The next step is to mount your CheapBot Line Follower to the robot body and plug in its cable. The Line Follower kit contains three #2-56 bolts and nylocks that attach the line follower to the underside of a robot. The kit also has three nylon spacers to place over the #2-56 bolts and between the line follower PCB and bottom of the robot. Figure 19. Underside view of the line follower mounted beneath the nose of a robot. The cables from the line follower PCB plug into two channels of an input port. Be sure that the black-colored side of the block on the end of the Interface Cable is on the ground side of the I/O port. 10

Line Following Board Figure 20. A CheapBot robot on a line follower board. The board is a sheet of melamine and the black lines are electrician s tape. Using the line follower requires that the robot be moving. So program the robot to drive forward. Then while the robot drives, monitor the voltage from the left and right phototransistors. When both are high, the phototransistors are detecting a white surface. When one or both voltages go low, the IRED/phototransistors are passing over a black surface. When a black line is detected, stop the robot and determine the direction the robot must steer in order to realign on the black line. Then drive the robot forward again while monitoring the line follower outputs. Here s some sample code for the PICAXE. SYMBOL Detectors = B0 SYMBOL RightDetect = BIT0 SYMBOL LeftDetect = BIT1 Line_Follower: GOSUB Forwards Check_Line_Follower: GOSUB Line_Finder_Check IF Detectors = 1 THEN Line_Right IF Detectors = 2 THEN Line_Left 11

IF Detectors = 3 THEN Line_in_Front GOTO Check_Line_Follower Line_in_Front: GOSUB Freeze GOSUB Right PAUSE 600 GOSUB Freeze GOSUB Forward GOTO Line_Follower Line_Right: GOSUB Left PAUSE 120 GOTO Line_Follower Line_Left: GOSUB Right PAUSE 120 GOTO Line_Follower Line_Finder_Check: Detectors = 0 RightDetect = PIN0 LeftDetect = PIN1 RETURN 18 March 2013 12