Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Servo motor functions #22

Open
SamYergeau opened this issue Jul 24, 2017 · 5 comments
Open

Servo motor functions #22

SamYergeau opened this issue Jul 24, 2017 · 5 comments

Comments

@SamYergeau
Copy link

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?)

@dimakan
Copy link

dimakan commented Aug 28, 2017

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
Copy link

dimakan commented Aug 29, 2017

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

@Oluntridao
Copy link

Oluntridao commented Feb 26, 2018

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

@mikalting
Copy link

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?

@dimakan
Copy link

dimakan commented Nov 30, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants