ArduinoDriver icon indicating copy to clipboard operation
ArduinoDriver copied to clipboard

Servo motor functions

Open SamYergeau opened this issue 8 years ago • 5 comments

Hello,

I would like to suggest adding a way to control servo motors with this library.

Usually, with an Arduino, one would simply use the "Servo.h" library to control a servo motor. However, when using this library, one must recreate the whole PWM functions since a servo motor is expecting a 40Hz frequency which isn't really obtainable by using analogWrite commands.

I beleive it could help greatly to have such a function :) (if there already is one and I simply couldn't find it, I'm sorry and could you please point me in the right direction?)

SamYergeau avatar Jul 24 '17 14:07 SamYergeau

Hi, I also plan to use servo. I hope that ToneRequest or something similar will do the trick. Sounds like pwn command... Please let me know, if there is better way for low level servo handling for now.

Thanks, Dima

var driver = new ArduinoDriver(ArduinoModel.UnoR3, true); driver.Send(new ToneRequest(8, 200, 1000));

dimakan avatar Aug 28 '17 05:08 dimakan

Found much better solution :) Connecting full function secondary arduino allows any usage. First arduino connected by USB to pc provides control signal and secondary handle complex hardware with all libraries! This is more flexible, as one cannot duplicate all the arduino libraries in c#.

Hope it helps

dimakan avatar Aug 29 '17 23:08 dimakan

i'm trying to do the same think. I don't know how i can make servo control through arduinodriver.

Oluntridao avatar Feb 26 '18 15:02 Oluntridao

i'm trying to do the same think. I don't know how i can make servo control through arduinodriver.

have you find a way to control the servo motor?

mikalting avatar Nov 30 '18 08:11 mikalting

Switched to Firmata: https://github.com/SolidSoils/Arduino

Thanks, Dima

On 30 Nov 2018, at 10:05, mikalting [email protected] wrote:

i'm trying to do the same think. I don't know how i can make servo control through arduinodriver.

have you find a way to control the servo motor?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

dimakan avatar Nov 30 '18 10:11 dimakan