69Views3Replies
Servo?
Whenever I connect an arduino to power (which has servos connected to it) the servos always go to the 90 degrees position first and then go through the code. Any way to prevent this from happening?
Whenever I connect an arduino to power (which has servos connected to it) the servos always go to the 90 degrees position first and then go through the code. Any way to prevent this from happening?
Comments
Best Answer 3 years ago
Use the right servo library or define that the last position is used without the reference run to set them into the neutral position.
Answer 3 years ago
How do I do the second one?
Answer 3 years ago
Depends on the library.
http://playground.arduino.cc/ComponentLib/Servo
There are some solutions posted in the Arduino Playground that do the sweep once and from there the position is kept in the EEPROM.
Keep in mind that when you power the Arduino and servos that they need to know a position, without that the position needs to be established by a sweep.