RC India
Welcome Guest, please login or register.
 
Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools Topic Tools 
Read
« on: June 26, 2012, 05:21:05 PM »
Skriptkid
Heli Lover
Active Member
**

Reputation Power: 1 
Skriptkid has no influence.
Offline Offline

City: Bangalore
State: Karnataka
RC Skills: Beginner
Posts: 2
Join Date: Jun, 2012




Hey,
I have a brushless motor and ESC, which I'm trying to control using an Arduino Uno for my first quadrotor project. And I'm failing miserably, which is why I'm here. I tried connecting the Arduino to the ESC and using the Servo library, but it didn't work. I even tried sending 10 pulses of width 1ms, with an interval of 20ms, but that didn't work either. All I get are three continuous short beeps on power and then short single beeps. I'm probably not able to even arm the ESC. This is the motor I'm using(Emax CF2822): http://www.yinyanmodel.com/En/ProductView.asp?ID=58 This is the Red Brick ESC's manual(Mine's the 20Amp Aircraft one, with Ni-MH and LiPo Auto-detect. Table 1.1): http://www.hobbyking.com/hobbyking/s...2X53414X39.pdf It's meant for an RC receiver and I have no idea how I can emulate one through my Arduino. All in all, I'm totally blank. If anybody could please help, I'd be real grateful. It'd be great if I could get the Arduino code also.

Thanks a lot. Smiley
Logged
 

Read
« Reply #1 on: June 26, 2012, 05:58:31 PM »
RotorZone
Forum Administrator
Forum Hero

*****

Reputation Power: 8 
RotorZone has no influence.
Offline Offline

City: Bangalore
State: Karnataka
RC Skills: Advanced
Posts: 607
Join Date: Mar, 2009

RotorZone.com



Should work with the servo library.  Try this sequence.

Send 1.9ms pulse using servo library.
Powerup ESC.
Wait 10s. This should give ESC enough time to initialize.
Send 1ms pulse.
Wait 1s.
Send 1.5ms pulse.
Logged

 

Read
« Reply #2 on: June 26, 2012, 06:00:03 PM »
faisal00813
Heli Lover
Active Member
**

Reputation Power: 1 
faisal00813 has no influence.
Offline Offline

City: Nanded
State: Maharashtra
RC Skills: Beginner
Posts: 27
Join Date: Mar, 2011



I had the same problem...
I had china made esc and motor....
My esc was armed 127 pwm signal out and motor started at around 135..

Check these values....they might be of help. Smiley
Logged
 

Read
« Reply #3 on: June 26, 2012, 06:21:38 PM »
Skriptkid
Heli Lover
Active Member
**

Reputation Power: 1 
Skriptkid has no influence.
Offline Offline

City: Bangalore
State: Karnataka
RC Skills: Beginner
Posts: 2
Join Date: Jun, 2012



@RotorZone Tried. No success Sad. I'm using a 9v pp3 battery. Do you think that might be on of the problems? Also, this is the code I tried:

#include <Servo.h>

Servo esc;
int j;

void setup()
{
  esc.attach(9);
  esc.writeMicroseconds(1900);
  delay(10000);
  esc.writeMicroseconds(1000);
  delay(1000);
  esc.writeMicroseconds(1500);
  delay(3000);
}

void loop()
{
  for(j=0; j<180; j++)
  {
    esc.write(j);
    delay(20);
  }
  for(j=180; j>=0; j--)
  {
    esc.write(j);
    delay(20);
  }
}

@faisal00813 : I'll try that Smiley
Logged
 

Read
« Reply #4 on: June 26, 2012, 10:37:02 PM »
RotorZone
Forum Administrator
Forum Hero

*****

Reputation Power: 8 
RotorZone has no influence.
Offline Offline

City: Bangalore
State: Karnataka
RC Skills: Advanced
Posts: 607
Join Date: Mar, 2009

RotorZone.com



9v battery is good for only very light loads. ESC might be going into low voltage cut off.  If you have a multimeter you can confirm that.

Hope you are powering up esc and arduino simultaneously.

Get rid of the stuff inside your loop. You can  add the sweep later once you confirm it is working

If it is still not working, post a pic showing your connections clearly.
Logged

 

Read
« Reply #5 on: June 26, 2012, 10:40:34 PM »
RotorZone
Forum Administrator
Forum Hero

*****

Reputation Power: 8 
RotorZone has no influence.
Offline Offline

City: Bangalore
State: Karnataka
RC Skills: Advanced
Posts: 607
Join Date: Mar, 2009

RotorZone.com



If you don't have a battery pack, try with a 12v lead acid battery. You should have one around in a UPS,car or bike. Post pic of your connections before that.
Logged

 

Pages: [1]   Go Up
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Controlling two servos with same signal
Radios and Receivers
Swapnil 13 7178 Last post June 04, 2011, 12:19:45 PM
by Swapnil
controlling of quadcopter problem
Multirotors
nehasha187 10 6829 Last post May 11, 2012, 06:56:02 PM
by satyagupta
30 Arduino Projects Evil Genius:- Great book to start Arduino Projects
Multirotors
rcpilotacro 5 9024 Last post July 05, 2012, 10:23:44 AM
by xxkrishxx
brand new simulator, emax motor 1100kv, 20 amp esc(from hk),arduino,servos delhi
For Sale
roby 5 3135 Last post February 17, 2014, 09:51:47 PM
by roby
FC, esc, FPV, frame, motor, arduino, radio « 1 2  All »
For Sale
fxshoppe 25 7726 Last post May 07, 2018, 11:12:13 AM
by fxshoppe