wiraputra
New Member
Hello,
I would like to ask a question about BLDC controlling here. I have an EMAX CF2822 DC motor and a Hobbypower 30A ESC. I would like to make it spin first, but it just didn't work out. The system wasn't intended for radio control or quadcopter use, it is for another purpose so I connected the ESC pins directly to the microcontroller. The overall scheme is attached here
And the AVR code for the program is as follows, I use Timer1 for PWM mode for the motor control:
(I only include the program after while(1) first. If you want the full code to be uploaded, I will upload it later, but I don't think the problem is in any other part of the code)
while (1)
{
// Place your code here
for(t=0;t<=255;t++)
{
OCR1A=t;
}
}
The problem is after I turned on the power it only beeped. A google search indicated that if the motor only beeps, the ESC doesn't receive a signal.
The main question is, how I get the motor work first, not only beeping but also rotating properly.
Any kind of help are welcomed. Thanks a lot!
I would like to ask a question about BLDC controlling here. I have an EMAX CF2822 DC motor and a Hobbypower 30A ESC. I would like to make it spin first, but it just didn't work out. The system wasn't intended for radio control or quadcopter use, it is for another purpose so I connected the ESC pins directly to the microcontroller. The overall scheme is attached here
And the AVR code for the program is as follows, I use Timer1 for PWM mode for the motor control:
(I only include the program after while(1) first. If you want the full code to be uploaded, I will upload it later, but I don't think the problem is in any other part of the code)
while (1)
{
// Place your code here
for(t=0;t<=255;t++)
{
OCR1A=t;
}
}
The problem is after I turned on the power it only beeped. A google search indicated that if the motor only beeps, the ESC doesn't receive a signal.
The main question is, how I get the motor work first, not only beeping but also rotating properly.
Any kind of help are welcomed. Thanks a lot!