SmallBot
reconn's
reconn's
world
world
.com



Email Statistics | May 09, 2008
introduction | platform | motors | batteries | third 'wheel' | second level
computer | sensors | interfacing | programming | parts & suppliers

interfacingsmallbot



So you've got your SmallBot platform working - Great! Now, how do you interface those motors to the basic stamp? and the sensors? and everything else you've been dreaming of attaching? The info's all here! Choose the interfacing info you need from the list below.

Interfacing:
- Interfacing Servo Motors to the BS2.
- Interfacing Gearhead Motors to the BS2


Interfacing Servo Motors to the BS2. back to top...

Servo motors have three wires. one is red (for positive current +), one is black (for negative current -), and one is white (this is to carry minor millisecond long pulses which direct the motor what way to turn.) Servo motors only turn maybe 60 degrees or so, thus in order to use them for robotics purposes you have to hack the motor. For directions on this, you can go visit here (not on my site, but my own servo-hack page is coming soon!)

Now, when connecting the motors to the BS2 you have to connect the control wire (the white one) to an I/O pin (Input/Output,) and the motors must have their own separate power supply. Use the schematic below for directions on connecting this new power supply. You must make sure that the new power supply is grounded to the BS2's system ground which is on pin 23.

Servo Motor Interface to BS2



Interfacing Gearhead Motors to the BS2. back to top...

To interface gearhead motors to the BS2, you will need extra circuitry to mimic the control wire used by the servo motors. Why? Because the basic stamp is not powerful enough to power a motor, let alone control it!

The circuit you will need is thumbnailed below - just click on the thumbnail to enlarge the schematic. It is a very simple circuit which only requires 4 transistors plus the motor. You will need one circuit per motor to be controlled, and two input/output pins on the BS2 per circuit. Build the circuit on a printed circuit board, and stack in on top of, or below the BS2 by way of standoffs or spacers.

The way the circuit works is, you connect the 'control' wires to an I/O pin on the BS2. By turning that pin on, you will send the motor in reverse. And by turning the other pin on, you will send the motor spinning forward. Turning the pins off results in turning the motors off. The schematic is below.

Motor Control Circuit


introduction | platform | motors | batteries | third 'wheel' | second level
computer | sensors | interfacing | programming | parts & suppliers




Recent Project Log Entries
OscopeCapture: Reverse Engineering the USB Protocol?
Posted on 20 March 2008 | 5:05 pm
OscopeCapture : Installing Environment
Posted on 18 March 2008 | 8:57 pm
Oscilloscope Waveform Capture Program Intro
Posted on 18 March 2008 | 8:27 pm
PIC Code, Verified
Posted on 5 July 2006 | 7:08 pm
Speed Control Dial
Posted on 28 June 2006 | 4:37 pm
Beginning of Stepper Driver
Posted on 27 June 2006 | 8:12 pm
Aoyue 852 Hot Air Rework Station
Posted on 15 June 2006 | 7:36 pm
Instek GDS-820C Oscilloscope
Posted on 13 June 2006 | 4:58 pm
Site by Andrew Wilson. Copyright 1997-2006 All Rights Reserved unless otherwise noted.
Schematics in Schematics Depot were found on the internet and assumed to be in public domain. Contact webmaster if the copyright holder wants them pulled for any reason.