SmallBot
reconn's
reconn's
world
world
.com



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

[an error occurred while processing this directive] 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




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.