Go Down

Topic: controlling esc with an arduino (Read 304 times) previous topic - next topic

pitmanst

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

MAS3

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.

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

MarkT

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: [Select]

Servo servo ;

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


[ untested code ]

but ESCs do vary.
[ I won't respond to messages, use the forum please ]

zoomkat

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=
Google forum search: Use Google Advanced Search and use Http://forum.arduino.cc/index in the "site or domain:" box.

Go Up