Motor shield half bridge
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 9
- Joined: Sun Nov 18, 2012 11:48 am
Motor shield half bridge
I just want to make sure. The motor shield in the link below supports up to 4 bi-directional motors, so it also means it supports 8 uni directional motors in half bridge mode, right. And what would the code for controlling these motors look like
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor shield half bridge
The raw L293D chips could be used that way. But as the shield is designed, a single PWM signal is use for speed control on each pair of half-bridges. So both motors would have to be going the same speed.
-
- Posts: 9
- Joined: Sun Nov 18, 2012 11:48 am
Re: Motor shield half bridge
What if I put a motor.setSpeed() command in between the commands used to control the two motors. For example:
motor.setSpeed(100);
motor.run(FORWARD);
motor.setSpeed(200);
motor.run(BACKWARD);
delay(
...blah blah blah
Would this not run the half bridge motors at different speeds
motor.setSpeed(100);
motor.run(FORWARD);
motor.setSpeed(200);
motor.run(BACKWARD);
delay(
...blah blah blah
Would this not run the half bridge motors at different speeds
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor shield half bridge
No. There is only one pin that controls the PWM signal to both halves of the bridge.
-
- Posts: 9
- Joined: Sun Nov 18, 2012 11:48 am
Re: Motor shield half bridge
Ok thanks. I also have another question, I know it can handle 4.5V to 25V for powering the motors but what about the current, are there limits to what current it can withstand.
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor shield half bridge
The basic shield will handle up to 600mA (0.6A) on each motor channel. See the FAQ for details on how to modify it to handle higher current loads: http://forums.adafruit.com/viewtopic.php?f=31&t=26873
-
- Posts: 9
- Joined: Sun Nov 18, 2012 11:48 am
Re: Motor shield half bridge
Ok, thank you very much
Please be positive and constructive with your questions and comments.