Im controlling a servo with some flex-sensors (variable resistors). This is working but the servo is making weird movements and has a mind of it's own, but after 10 seconds it's normal again. Then i tried with the sweep program of arduino itself and saw it happened again. Is there any solution to this by coding with the arduino or do i have to use a stabilized power source. I use an external power source because the servo's need around 1 amps.
do i have to use a stabilized power source.
Yes, and don't forget to connect all the grounds.
The most common problem people have with servos is insufficient power. If sweep is failing, that's a likely cause. Flaky ground connection is another possibility.
Edit: Far too slow
dodomanen:
Is there any solution to this by coding with the arduino or do i have to use a stabilized power source. I use an external power source because the servo's need around 1 amps.
If you're already using the sweep program and its still making weird movements then the code is not the problem nor you can't fix it with codes. I think the problem is the connection to your external power supply, base on my experience servo also tends to jitter when they're not connected properly to the external power, make sure that the ground of the servo is connected to the power supply and also the GND pin of the arduino if that did not solve the problem maybe your external power isn't sufficient enough to drive the motor