Memorial day is 05/25/2015 – Orders will ship out on May 26th. There will not be any deliveries or shipping on Monday. Any order placed after 11am ET on Friday May 22nd will not start to ship out until Tuesday May 26th.

Adafruit 16 channel bldc control
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Adafruit 16 channel bldc control

by Stefan Fruhwirth on Wed Oct 23, 2013 1:13 pm

Hello,

I have a problem with the adafruit 16 channel board to control a brushless bldc 720 controller.
The bldc motor run only in full power mode.
What is wrong, Have anyone an idee?

But the standard servo with 180° work fine

with regards

Stefan
Stefan Fruhwirth
 
Posts: 4
Joined: Wed Oct 23, 2013 12:57 pm

Re: Adafruit 16 channel bldc control

by adafruit_support_bill on Wed Oct 23, 2013 1:17 pm

Do you have a link to a spec for the controller?

adafruit_support_bill
 
Posts: 37483
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit 16 channel bldc control

by Stefan Fruhwirth on Wed Oct 23, 2013 1:26 pm

this is the link

http://learn.adafruit.com/adafruit-16-c ... spberry-pi

#define SERVOMIN 160 // servo travel limit (160/4095 * 20ms = 0.8ms pulse)
#define SERVONEUTRAL 300 //servo neutral position (300/4095 * 20ms = 1.5ms pulse)
#define SERVOMAX 440 // servo travel limit (440/4095 * 20ms = 2.2ms pulse)

this are my defines
Stefan Fruhwirth
 
Posts: 4
Joined: Wed Oct 23, 2013 12:57 pm

Re: Adafruit 16 channel bldc control

by adafruit_support_bill on Wed Oct 23, 2013 1:31 pm

That is our PWM controller. not a BLDC controller. You mentioned a "brushless bldc 720 controller". Where is the spec sheet for that?

adafruit_support_bill
 
Posts: 37483
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit 16 channel bldc control

by Stefan Fruhwirth on Wed Oct 23, 2013 1:40 pm

Stefan Fruhwirth
 
Posts: 4
Joined: Wed Oct 23, 2013 12:57 pm

Re: Adafruit 16 channel bldc control

by adafruit_support_bill on Wed Oct 23, 2013 1:44 pm

Can you post a photo of how you have it connected? - And the code you are using.

adafruit_support_bill
 
Posts: 37483
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit 16 channel bldc control

by Stefan Fruhwirth on Wed Oct 23, 2013 1:51 pm

the connection is correct

Controll the Carson Servo
//Servo Carson, funktioniert schon
servoControl.set_PWM(fd, 0, 0, SERVOMIN); //ganz links 500
sleep(1);
servoControl.set_PWM(fd, 0, 0, SERVONEUTRAL); //neutral 1300
sleep(1);
servoControl.set_PWM(fd, 0, 0, SERVOMAX); //ganz rechts 2100
sleep(1);
servoControl.set_PWM(fd, 0, 0, SERVONEUTRAL); //neutral
sleep(1);


I am using the library "wiringPi" in combination with a raspberry pi

but the bl controller 720 doesnt work correct with the 16 channel board

void Servo::set_PWM(int fd, int channel, uint16_t on, uint16_t off){
//"Sets a single PWM channel"
wiringPiI2CWriteReg8(fd, LED0_ON_L+4*channel, on & 0xFF);
wiringPiI2CWriteReg8(fd, LED0_ON_H+4*channel, on >>8);
wiringPiI2CWriteReg8(fd, LED0_OFF_L+4*channel, off & 0xFF);
wiringPiI2CWriteReg8(fd, LED0_OFF_H+4*channel, off >>8);
}

if I set the pwm by the bldc controler to 1350, the motor go in full power
set_PWM(fd, 15, 0, 1350); but under this, the motor isnt running, and i dont can control the power
have you an idee?
Attachments
20131023_194634.jpg
connect
20131023_194634.jpg (77.39 KiB) Viewed 143 times
Stefan Fruhwirth
 
Posts: 4
Joined: Wed Oct 23, 2013 12:57 pm