Controlling brushless dc motor with off chip PWM+hbridge

This is a special forum devoted to educators using Adafruit and Arduino products for teaching.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rmdsouza
 
Posts: 3
Joined: Fri Nov 28, 2014 10:35 pm

Controlling brushless dc motor with off chip PWM+hbridge

Post by rmdsouza »

Does your 16 servo chip device include h-bridges?. Is there a device that includes a free running PWM chip which send its output to a h-bridge and the PWM is controlled from an arduino. I am also looking for direction control.

User avatar
adafruit_support_bill
 
Posts: 88089
Joined: Sat Feb 07, 2009 10:11 am

Re: Controlling brushless dc motor with off chip PWM+hbridge

Post by adafruit_support_bill »

Does your 16 servo chip device include h-bridges?.
No, the 16-channel PWM board does not include H-Bridges.
Is there a device that includes a free running PWM chip which send its output to a h-bridge and the PWM is controlled from an arduino.
Yes. Our motor shield uses the same PWM chip coupled with 2 dual H-bridges to provide a total of 4 reversible DC motor control channels.

You can stack up to 32 of these boards for a total of 128 PWM controlled H-bridges on an Arduino.

https://www.adafruit.com/products/1438

User avatar
rmdsouza
 
Posts: 3
Joined: Fri Nov 28, 2014 10:35 pm

Re: Controlling brushless dc motor with off chip PWM+hbridge

Post by rmdsouza »

How about changing the direction. Do you need a separate digital out from arduino or is it taken care inside the pwm duty cycle bits. Do you have sample code that does hi directional dcmotor control

Thanks
Roshan

User avatar
adafruit_support_bill
 
Posts: 88089
Joined: Sat Feb 07, 2009 10:11 am

Re: Controlling brushless dc motor with off chip PWM+hbridge

Post by adafruit_support_bill »

They are full H-bridges so by definition they have direction control. All is controlled via i2c. Only 2 Arduino pins are necessary. Example code is included in the library.

https://github.com/adafruit/Adafruit_Mo ... V2_Library

User avatar
rmdsouza
 
Posts: 3
Joined: Fri Nov 28, 2014 10:35 pm

Re: Controlling brushless dc motor with off chip PWM+hbridge

Post by rmdsouza »

This is super good. Do you guys have MATLAB SIMULINK blocks for Arduino Mega + Motor Shield V2?. If yes, that would be great!. I am about to revamp our Control Systems Lab and go with Arduino Mega + Motor Shield V2. What you already have is great for our Mechatronics lab. Can you also suggest brushless DC motors with speed (analog electrical tachometer) and position (encoder or potentiometer, preferably and encoder with chip on the motor so that I only have to poll it.) that will work with this combo?

Thanks in advance.
Roshan

User avatar
adafruit_support_bill
 
Posts: 88089
Joined: Sat Feb 07, 2009 10:11 am

Re: Controlling brushless dc motor with off chip PWM+hbridge

Post by adafruit_support_bill »

Mathworks has a supprt package to interface their software products with the shield:
http://www.mathworks.com/help/supportpk ... ld-v2.html

Brushless DC motors require a brushless motor controller. We don't support brushless motors with the V2 motor shield.

www.pololu.com has a very good selection of brushed DC motors and encoders, many of which will work well with the shield.

Locked
Please be positive and constructive with your questions and comments.

Return to “For Educators”