HC12 WITH SERVO

I m a little bit confused . I am making an rc plane and I need to control an 120 degree servo with two buttons
When button1 is being pressed the motor should go to 120
When button2 is being pressed the motor should go to 0
And when no button isbeing pressed the motor should stay on 60 ° but instead it goes full right no matter what button I press . Is there an issue with the arduino servo library and the HC12 and what can I do about it ?

what button?
what servo?

You might want to start by assuming that the Arduino librarys can get the basics right such as reading buttons and moving the servo from one end of its travel to another when given the right commands.

That you cannot get that to work would suggest an error in your code or wiring.

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html

Can you please tell us your electronics, programming, Arduino, hardware experience?

Is there an issue with the arduino servo library and the HC12 and what can I do about it ?

What makes you think there is, and have you tried it?

Where are the buttons, on the TX?

Thanks.. Tom.. :slight_smile:

ieee488:
what button?
what servo?

And where is the code that you are using to drive them? Both transmitter and receiver code please.

Before worrying about the Arduino libraries it would be as well to check that the way you are trying to use them is correct.

Steve