Then you are both drawing too much current from the Arduino and overdriving the transistor.
Basicly, i will have to control like 16 servo motor (but only one at once), and i'm planning to had input from moisture sensor (like 16 of teem) so the number of pin used is limited.
Why do you need to switch the servos' power anyway?Just servo.detach() and the servo library will stop commanding it. I've never measured the current draw of a servo.detach()'d servo: I suppose there may be some current drawn by the electronics, but negligible compared to the current drawn while it's moving and even when it's idle but servo.attach()'d.(I'd measure it for you but my best dmm is out on loan and the cheap one I have at hand doesn't measure current.)
#define REFRESH_INTERVAL 20000 // minumim time to refresh servos in microseconds
Hi,If you read the forum instructions again, you will find out how to attach and display you images.Tom...
Hi,Have you got a power supply for the servos?The UNO cannot supply the current needed to operate them under load.Tom.. PS, Your pics were bigger than 1M each which is the upload limit.