Hello Again Mr. Dennis, Seth here.
... * To test one motor you'll need three GPIOs (I'm going to call them EN_A, IN_A1, IN_A2) Initialize: Set all three to OUTPUT mode Set EN_A to LOW (turn off motor controller) Set IN_A1 and IN_A2 to LOW (ensure motor STOP settings) then Set EN_A to HIGH (turn on motor controller, motor still stopped) delay some Set IN_A1 to HIGH (motor should spin) delay some Set IN_A2 to HIGH (motor should stop) delay some Set IN_A1 to LOW (motor should spin in opposite direction) delay some Sent EN_A to LOW (motor should coast to a stop)* This is what you typed out and thank you. I read the literature on the L298 and gave you a photo of the board I am using w/ this L298 dual H-Bridge. I will use what you have given me to produce some software soon. Seth P.S. Three wires! Okay. I will set up three GPIO pins for this specific motor driver. I would have not figured out that I would have needed three wires for this specific board. Thank you, sir. On Friday, May 4, 2018 at 8:45:14 AM UTC-5, Dennis Lee Bieber wrote: > > On Thu, 3 May 2018 19:47:40 -0700 (PDT), Mala Dies > <[email protected] <javascript:>> declaimed the following: > > >Hello Sir, > > > >Just for a test, I ran the software for PWM while I had the LED attached > to > >the BBB. The LED turned on. Do you think it may be the L298 board? > > > > No... I'm going to be somewhat blunt -- I think it is your > understanding of how the motor controller board works. (I'm also assuming > that you have the chip properly wired with the resistors and capacitors > recommended by the spec sheet... AND that the 3.3V HIGH from the BBB is > sufficient to be detected by the controller which was designed to work > with > 5V TTL level signals [TTL High is supposed to be around 2.4V, CMOS High is > 70% of voltage, or 3.5V for 5V supply]) > > In pretty much all of your examples, you were setting both control > pins > for a motor to the same value... And since you never had ENable and both > motor control inputs in the same program the odds are that anything could > be happening... The same value on the control inputs means "STOP" -- so of > course the motor is not spinning (even if you ENabled it). > > > To test one motor you'll need three GPIOs (I'm going to call them > EN_A, > IN_A1, IN_A2) > > Initialize: > > Set all three to OUTPUT mode > Set EN_A to LOW (turn off motor controller) > Set IN_A1 and IN_A2 to LOW (ensure motor STOP settings) > > then > > Set EN_A to HIGH (turn on motor controller, motor still stopped) > delay some > > Set IN_A1 to HIGH (motor should spin) > delay some > > Set IN_A2 to HIGH (motor should stop) > delay some > > Set IN_A1 to LOW (motor should spin in opposite direction) > delay some > > Sent EN_A to LOW (motor should coast to a stop) > > test done > > > -- > 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/5f9de5cb-8f66-4f9e-a2b2-988ea21e657a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
