Alt-BEAM Archive

Message #05879



To: beam@sgiblab.sgi.com
From: Richard Piotter richfile@rconnect.com
Date: Wed, 25 Aug 1999 17:57:47 -0500
Subject: [alt-beam] Re: blinking bicore


No LEDs (to save power), one motor, driven by the 240 chip that also
holds the bicore.

I then basicly attach it to the PM1 solar engine. It uses a MAXON motor
that I got from MECI. I'll have to get the materials for the PM1 though.
I don't have anything CLOSE to that size. Well, Maybe later on. It runs
so nice off batteries now! :)


JVernonM@aol.com wrote:
>
> In a message dated 8/25/99 10:08:14 AM Eastern Daylight Time,
> richfile@rconnect.com writes:
>
> > I too would like to solarize a bicroe based robot. I've got now
> > expirience with solar powered bicore devices. I realy have no clue what
> > kind of capacitor is ideal, or if the bicore recieves power at all times
> > and only the motor uses the cap, or what??? I simply have never done
> > this before. if anyone has recomendations as to how the SE and Bicore
> > are connected, please, do tell!
> This is fairly simple and straight forward. To get LEDs to blink at night,
> hook a D1 power outlets to the Bicore power inputs. Hook your LEDs to the
> Bicore motor outputs and you are in bidnez. Use a 1F gold cap for about an
> hour of blinking. Use the HC chip. If you are running in the daylight, then
> substitute a PM1 for the D1. Hook it to your Master Bicore power leads. That
> would work for a 2 motor Master slave walker, but I'm not sure of the best
> configuration for 3 or more motor designs. That sounds like a question for
> the Wilfmiester. Don't forget those motor drivers.
> By the way, I just got 2 Chloroplast Solar Engine PCBs in the mail today.
> Sleek and black. I'm gonna try switching them out for the PM1, which I've
> always had trouble getting to run anything with more torque than a pager or
> Walkman motor. Adjustable trigger level and a uC reserve of 5 volts, I can't
> wait to start building. Thanks Craig!
> Jim

--


Richard Piotter
richfile@rconnect.com

The Richfiles Robotics & TI web page:
http://richfiles.calc.org

For the BEAM Robotics list:
BEAM Robotics Tek FAQ
http://people.ne.mediaone.net/bushbo/beam/FAQ.html



5880 Thu, 26 Aug 1999 15:14:46 +0000 [alt-beam] Re: Newbie question beam "Ben Hitchcock" Hi,

>From: mr_squishee@hotmail.com
>Hi,
>I'm new to BEAM and stuff like this in general and what I wanted to
>know is, How do you reverse a motor?
>Thanks,
>Steven M

You simply reverse the connections to the motor. This makes it spin
backwards.

Here's an article I wrote a while ago about the H-bridge:

------------------------------------------------------------------
The H-Bridge
Ben Hitchcock 13/12/98
------------------------------------------------------------------

The basic problem is this: We have a robot that loves to run around, seek
out light, run away from walls and cause havoc with the sanity of any
household pets. The only problem is that as soon as the poor little robot
runs headlong into a wall, it is trapped. Then the pets have a field day
dancing around and proclaiming loudly to the world that they have caught a
new and interesting species of bug!
What we need is some way to make the robot back up, to really show the cat
who's boss. Unfortunately it takes more than one extra transistor. In
fact, it needs four.

The way it works is simple. Simply reverse the supply to the motor, and it
will spin backwards. So let's start with the basic motor driver circuit:

+ volts rail --------------------------------------o---------
|
|
Motor
|
|
n R1
p----/\/\/\---- input
N
|
0 volts rail --------------------------------------o---------

When the input is high, the motor will spin. So how can we make the supply
reverse itself? We need to put a ground connection on the wire that now has
the positive voltage, and a + voltage on the place where the ground is now.

The + part is easy, but the 0 volts is a bit harder: if we were to just put
0 volts on the part above the motor, we would blow up our power supply. So
we need another transistor thus:

+ volts rail --------------------------------------o---------
|
P R2
n----/\/\/\---- input1
p
|
Motor
|
|
n R1
p----/\/\/\---- input2
N
|
0 volts rail --------------------------------------o---------

So now to turn the motor on, we put a low on input 1, and a high on input 2.

But back to the problem: how do we reverse the motor? It takes two more
transistors. Here I will draw the motor sideways to make the drawing
easier:

+ volts rail -----------------------o---------------o---------
| |
R3 P P R2
input 3 --/\/\/---n n----/\/\/\---- input1
p p
| |
o------Motor----o
| |
| |
R4 n n R1
input 4 --/\/\/---p p----/\/\/\---- input2
N N
| |
0 volts rail -----------------------o---------------o---------

Where the capital letters represent the emitter of the transistor.
(See how the diagram looks sort of like a capital H? Try squinting at it!)

To make the motor spin, we need to turn two transistors on. Let's pick
input 1 and input 4. Now the current will flow through the transistor on
the top right hand side, flow right to left through the motor, and then flow
down through the transistor on the bottom left of the diagram. This means
that input 1 must be low, and input 4 must be high before anything will
happen. Now, to get the motor to spin the other way, we need to make the
current flow in the opposite direction: left to right.

We do this by switching on the transistor on the top left, and also the
bottom right.

An interesting problem arises here: what if the transistors at input 1 and
input 2 are both on at the same time? The current will flow down through
the first transistor, through the second, and out to ground with no load
being driven.

This is bad.

This is very bad.

If your battery is large, you might watch your transistors explode, if R1
and R2 are low enough. If it isn't large, you might see the battery itself
explode. This is definitely not recommended - so here is a solution:

+ volts rail -----------------------o---------------o---------
| |
R3 P P R2
.--/\/\/---n n----/\/\/\--.
| p p |
| | | |
| o------Motor----o |
| | | |
| | | |
| R4 n n R1 |
input 1 ----o--/\/\/---p p----/\/\/\--o-- input2
N N
| |
0 volts rail -----------------------o---------------o---------

Now, if the inputs are driven by CMOS logic (Or most other types of logic)
then you will never see your H-bridge smoke. You just pretend that the
inputs are the motor terminals: you make one high and the other low to make
the motor spin, and reverse them to make the motor spin in the other
direction.
If both are at the same level, then nothing will happen.

You can use CMOS chips to drive motors directly - two examples are the
74HC245 and the Z-bridge (I forget which chip that is). Anyway, here we are
being really naughty and just using normal logic chips to drive loads that
they weren't designed for. You can be tricky and use lots of gates to drive
the same input, so your motor can use a higher current than any one gate can
provide. This practice is often useful when you have a small motor, but for
anything larger than a pager motor you are often better off with an
H-bridge.

You can find some other articles of mine at:
http://wollongong.apana.org.au/~ben/info

Ben Hitchcock



5881 Wed, 25 Aug 1999 18:08:58 -0600 [alt-beam] Re: blinking bicore beam@sgiblab.sgi.com Craig Maynard No problem, Jim... If anyone else wants one, just email me!

Craig

JVernonM@aol.com wrote:
>
> In a message dated 8/25/99 10:08:14 AM Eastern Daylight Time,
> richfile@rconnect.com writes:
>
> > I too would like to solarize a bicroe based robot. I've got now
> > expirience with solar powered bicore devices. I realy have no clue what
> > kind of capacitor is ideal, or if the bicore recieves power at all times
> > and only the motor uses the cap, or what??? I simply have never done
> > this before. if anyone has recomendations as to how the SE and Bicore
> > are connected, please, do tell!
> This is fairly simple and straight forward. To get LEDs to blink at night,
> hook a D1 power outlets to the Bicore power inputs. Hook your LEDs to the
> Bicore motor outputs and you are in bidnez. Use a 1F gold cap for about an
> hour of blinking. Use the HC chip. If you are running in the daylight, then
> substitute a PM1 for the D1. Hook it to your Master Bicore power leads. That
> would work for a 2 motor Master slave walker, but I'm not sure of the best
> configuration for 3 or more motor designs. That sounds like a question for
> the Wilfmiester. Don't forget those motor drivers.
> By the way, I just got 2 Chloroplast Solar Engine PCBs in the mail today.
> Sleek and black. I'm gonna try switching them out for the PM1, which I've
> always had trouble getting to run anything with more torque than a pager or
> Walkman motor. Adjustable trigger level and a uC reserve of 5 volts, I can't
> wait to start building. Thanks Craig!
> Jim



5882 Wed, 25 Aug 1999 17:16:47 -0700 [alt-beam] Newbie question alt-beam@eGroups.com mr_squishee@hotmail.com Hi,
I'm new to BEAM and stuff like this in general and what I wanted to
know is, How do you reverse a motor?
Thanks,
Steven M

Home