Hello Sir,
I am starting to understand more of what you were describing to me. Look
here:
import Adafruit_BBIO.GPIO as GPIO
import time
Master_Pin = "P9_21"
ln1 = "P9_22"
ln2 = "P9_12"
if __name__=="__main__":
GPIO.setup(Master_Pin, GPIO.OUT)
GPIO.output(Master_Pin, GPIO.LOW)
GPIO.setup(ln1, GPIO.OUT)
GPIO.setup(ln2, GPIO.OUT)
GPIO.output(Master_Pin, GPIO.HIGH)
GPIO.output(ln1, GPIO.HIGH)
GPIO.output(ln2, GPIO.LOW)
time.sleep(5)
GPIO.output(Master_Pin, GPIO.HIGH)
GPIO.output(ln1, GPIO.LOW)
GPIO.output(ln2, GPIO.HIGH)
time.sleep(5)
print "I love your body Larry!"
GPIO.output(Master_Pin, GPIO.LOW)
GPIO.output(Master_Pin, GPIO.LOW)
GPIO.cleanup()
Thank you again for your help.
Seth
On Saturday, May 5, 2018 at 11:21:12 AM UTC-5, Dennis Lee Bieber wrote:
>
> On Fri, 4 May 2018 22:01:02 -0700 (PDT), Mala Dies
> <[email protected] <javascript:>> declaimed the following:
>
> >Okay Sir,
> >
> >I am going to set up one motor first, get that one motor working, and
> then
> >use similar software to run both motors. Thank you for the pointers. I
> was
> >unaware of each motor needing three wires from the BBB to the motor
> driver
> >for forward, reverse, and backwards.
> >
> The three wires are one for enable, and two together that control
> direction (it is not one wire for forward and one for reverse -- High/Low
> is one direction, Low/High is the other direction, and when High/High OR
> Low/Low it is STOP).
>
> Consider if you connected the motor directly to a battery -- one
> wire
> is + the other is -; to reverse the motor direction you have to swap the +
> and - leads... That's what the High/Low vs Low/High combination is doing
> --
> telling the controller to swap the power through the driver transistors.
> The Enable acts like a power switch in-line with one of the wires.
>
> https://en.wikipedia.org/wiki/H_bridge (the controller IC is smart enough
> to prevent the short-circuit condition)
>
>
> --
> Wulfraed Dennis Lee Bieber AF6VN
> [email protected] <javascript:>
> HTTP://wlfraed.home.netcom.com/
>
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/3ceca9e8-2faa-465f-8ccc-1a1c2cac1f3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.