When discovered by S4A, Arduino Nano, starts moving a servo attached to it

120 views
Skip to first unread message

Lucia Tamez

unread,
Aug 3, 2017, 6:28:49 PM8/3/17
to S4A Community Mail List
Hi there,

I am new to S4A and Arduino IDE. 

I uploaded the S4Afirmware16 to the nano, opened S4A and as expected, after a few seconds the nano is discovered by S4A, it shows changes on the analog pins, and since I have a servo plugged into D4, immediately it starts rotating.

I haven't yet added a single line of code into S4A.

The nano works well with Arduino software IDE.

Any suggestions? What am I missing or doing wrong?

Thanks for your help!

Lucia

rand...@gmail.com

unread,
Aug 16, 2017, 12:38:52 PM8/16/17
to S4A Community Mail List



What kind of servo motor are you using? If it is a continuous rotation servo, then you will need go adjust a small potentiometer (aka "variable resistor", "pot") that should have an access hole into which you can put a tiny screw driver to make this adjustment. Move the pot adjustment a little one way and then a little the other way to find the point where it no longer moves when nothing is out put to it. I had to do this for a RC Car project which used 2 Parallax Continuous Rotation Servo motors so that the motors would quit moving when told to stop. As I recall, sending a value of like 115 stops the motor, while 113 makes it go CCW and 117 makes it go CW under Arduino C. Maybe I got CW and CCW values reversed.

If you are using a "standard" servo motor, one where you need to specify an angle value betwee 0 and 179, then I don't know what might be causing your problem.

philipw...@gmail.com

unread,
Aug 17, 2017, 7:27:33 AM8/17/17
to S4A Community Mail List
I had the same problem but because the values returned change the whole time, it will let the servo move slightly. Put in a capacitor on your breadboard, that will delay the reaction with a few milliseconds which will stop the vibration..

I used it on arm with two servos and potentiometers..

Hope it helps!

Reply all
Reply to author
Forward
0 new messages