Take the 2-minute tour ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

I was playing with getting my servos to be on dedicated power, separate form the Arduino entirely, but obviously controlled by the Arduino. I originally had the ground of the Arduino joined with the - of the battery, but to my surprise my Arduino continued to control the servos when I remove the ground wire entirely from the Arduino.

I was under the impression that all electricity must form a complete circuit, and be a closed loop. But my Arduino can obviously send a signal to a component that has no return path to itself.

I feel like I'm missing something fundamental about a electricity. So my question is:

Why does this work?

arduino setup

share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted

The return signal is probably the other wire's servo. This only works when the control pulses to both servos are not in sync. Pull one signal wire off the breadboard and both servos will stop working.

You need to interconnect grounds or you will get strange effects sooner or later.

share|improve this answer
    
Are the I/O-pins connected to GND when in OUTPUT mode and not outputting? This would make sense, and would mean this answer is correct. –  Friend of Kim Apr 13 at 12:50
    
@FriendofKim In any output mode through protection diodes in the microcontroller an in OUTPUT node through the driver transistor. –  jippie Apr 13 at 14:04
    
Yep, it doesn't work with just one servo, which I didn't think to try. Thanks! –  Alex Wayne Apr 14 at 4:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.