My robot works only if i hold my finger close to the reset button

Subject title says it all. This is the most confusing thing I have ever seen in electronics in my whole life, and I am an electronics engineer. The servo works fine with other programs, but not here. Here, it works ONLY IF I hold my finger over the etched connections in the arduino board to the I/O pints. It does not help changing from servo1 to servo2. I have an arduino mega. Is it broken, somehow, or am I in for a Nobel Prize here?

You probably have incorrect wiring or code that somehow interfaces with a floating pin.

Hi,
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Also a picture of your project, thanks.

Tom.... :slight_smile:

Got proper decoupling ?

Is reset correctly pulled up and vcc decoupled?