The parts i'm using:
A2212/6t 2200KV brushless motor
T-rex 450 V2 ESC
12V AC-DC adapter, 2A
So this is my code:
#include <Servo.h>
Servo esc;
void setup()
{
esc.attach(9);
Serial.begin(9600);
}
void loop()
{
esc.write(0);
Serial.println("0");
delay(5000);
esc.write(100);
Serial.println("100");
delay(5000);
/*esc.write(20);
Serial.println("0");
delay(5000);
esc.write(20);
Serial.println("20");
delay(5000);*/
}
When i run a arduino program with only esc.write(100);, it doesn't work, but after that, when i upload this program, this program works for a few seconds.
The first time it writes 100, it works for a few seconds, after that, the ESC restarts. Doesn't matter which value i give it.
Then, when the value is 0, it beeps fast. When the value is 100, it gives a beep with 2 beeps following it.
It's a bit complicated, but i hope that i explained it good.
Thanks
How are you powering the ESC? It appears that combination uses about 30 amps at full throttle. If you are powering it with that AC - DC adapter, you are a bit short on the current capability.
MarkT
May 14, 2016, 1:14pm
3
2A supply? No chance. Think 5A to 30A as the sort of currents involved with RC motors.
Thanks, going to buy a LiPo battery then. Thanks!
Hi,
Have you got a link to the ESC manual?
Each time I try for the ESC model you quote, I get a helicopter.
Also specs on the motor.
Thanks.. Tom..
Hi, i got a 2200 mah, 11.1V, 30c discharger battery, but it still isn't working. This is how i connected it:
. This is the code i'm using
#include <Servo.h>
Servo esc;
void setup()
{
esc.attach(9);
esc.writeMicroseconds(1500);
Serial.begin(9600);
}
void loop()
{
esc.write(0);
Serial.println("0");
delay(5000);
esc.write(100);
Serial.println("100");
delay(5000);
/*
esc.write(20);
Serial.println("0");
delay(5000);
esc.write(20);
Serial.println("20");
delay(5000);
*/
}
Whenever it ouputs 0, the motor starts beeping fast. Whenever it outputs 100, the motor beeps once, followed by two fast beeps.
Thanks
Zapro
July 9, 2016, 5:55pm
8
You need to initialise (arm) the ESC before you can use it. If the throttle starts out outside its calibrated area, it will not work.
// Per.
MarkT
July 9, 2016, 6:35pm
9
Get a cheap servo tester so you can experiment with working out the arming sequence.
This sort of thing: BestDealUK Servo Tester CCPM Consistency Master Checker 3ch 4.8-6v for sale online | eBay
I just load up the "Knob" example for servos to test ESCs or servos. You do need a pot to make it work.
jbums
June 11, 2017, 4:18pm
12
I had the same issue with the following parts:
ESC: RioRand 30A Brushless Motor Speed Controller RC BEC ESC Amazon.com
Motor: RioRand 30A Brushless Motor Speed Controller RC BEC ESC Amazon.com
Loading the knob example worked. Thanks, justone!