Pages: [1]   Go Down
Author Topic: controlling esc with an arduino  (Read 230 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm trying to use an arduino to control an esc this one http://www.hobbyking.com/hobbyking/store/uh_viewItem.asp?idProduct=6548

is there anyway I can control the speed with the arduino
Logged

The Netherlands
Offline Offline
Edison Member
*
Karma: 35
Posts: 1299
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks like a RC speedcontroller.
If that is the case, it's just another servo to your Arduino.
So connect it like it is a servo and play a bit around to find the correct values.
I see a remark BEC mentioned.
I think that means it can eliminate the use of a separate battery for the RC receiver.
Be sure to connect it correctly so you don't damage your Arduino.
The 3 wire (black, red, white) are GND, 5 volt and a PWM pin.

Logged

Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

0
Offline Offline
Shannon Member
****
Karma: 161
Posts: 10438
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In other words use the Servo library.  All ESCs have arming sequences at start up, which often means holding
the throttle at minimum for a couple of seconds (RC controls park at mid-point, so requiring minimum throttle
means the operator has to deliberately hold the throttle back to arm the ESC).  This equates to something like
Code:
Servo servo ;

void setup ()
{
  servo.attach (servopin) ;
  servo.write (0) ;
  delay (2000) ;
  ...

[ untested code ]

but ESCs do vary.
Logged

[ I won't respond to messages, use the forum please ]

0
Offline Offline
Tesla Member
***
Karma: 114
Posts: 8930
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Previous ESC related post.

https://www.google.com/search?hl=en&as_q=esc&as_epq=&as_oq=&as_eq=&as_nlo=&as_nhi=&lr=&cr=&as_qdr=all&as_sitesearch=http%3A%2F%2Farduino.cc%2Fforum&as_occt=any&safe=images&tbs=&as_filetype=&as_rights=
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Pages: [1]   Go Up
Jump to: