giftiger_wunsch
New Member
Hi,
I'm stuck with what I'd imagine is a very easy to solve problem I am attempting to interface a robotic arm with a rabbit 4000 microprocessor (the details of each aren't especially important, but the board on which the microprocessor is mounted has five 8-bit parallel ports which have a logic high of 3.3V, and the robotic arm has five motors which are powered by 4 D-type 1.5V batteries in series.
I'm planning on using pairs of parallel port bits to activate the motors and decide which direction they should move. It seemed logical to do this with complementary highs and lows between the two bits to activate it in each direction, and either both high or both low to cause the motor to stop. If the bits had an output high enough to power the motors directly, the motor could of course just be connected between the two bits; but I am stuck trying to get my head around how the voltage between the two bits could be used to influence the flow and direction of flow of current through the motor from a battery.
I've thought about using transistors, but I have never used them before and perhaps need a better understanding of them, but from what I understand the input and output circuits need to share either the base, collector, or emitter terminals, and I am unsure how to do this when using two different power sources. I've also considered options involving EX-NOR gates, relays, etc., but I don't seem to be able to come up with a working answer.
If someone could suggest how this might be achieved I would be grateful. Sorry for the long-winded post.
Thanks.
I'm stuck with what I'd imagine is a very easy to solve problem I am attempting to interface a robotic arm with a rabbit 4000 microprocessor (the details of each aren't especially important, but the board on which the microprocessor is mounted has five 8-bit parallel ports which have a logic high of 3.3V, and the robotic arm has five motors which are powered by 4 D-type 1.5V batteries in series.
I'm planning on using pairs of parallel port bits to activate the motors and decide which direction they should move. It seemed logical to do this with complementary highs and lows between the two bits to activate it in each direction, and either both high or both low to cause the motor to stop. If the bits had an output high enough to power the motors directly, the motor could of course just be connected between the two bits; but I am stuck trying to get my head around how the voltage between the two bits could be used to influence the flow and direction of flow of current through the motor from a battery.
I've thought about using transistors, but I have never used them before and perhaps need a better understanding of them, but from what I understand the input and output circuits need to share either the base, collector, or emitter terminals, and I am unsure how to do this when using two different power sources. I've also considered options involving EX-NOR gates, relays, etc., but I don't seem to be able to come up with a working answer.
If someone could suggest how this might be achieved I would be grateful. Sorry for the long-winded post.
Thanks.
Last edited: