Common Arduino 180° servo power on motion problem

Hi guys! I'm try to use common 180° servomotors (blue common 3 wire type, Tower Pro is the brand) to move some parts on my railroad layout. I have no problem to manage motor and moving software, ok. The problem is the POWER ON: when board (and motor) is powered, the motor make always a fast movement (too fast) about 10-15° degree, before to start controlled motion. I try to power motor after board, or connect the control wire after power on but the problem remains. The spurious motion is so fast that could damage connected mechanism... have you meet this issue using these servos? I tried different servos but all presents this issue! Thanks to everyone for any ideas!

The servo will "home" to 90 degrees at start/power-on. In your code, try to command the servo to go to your desired position (the position it is resting) before "servo.attach()"

Thanks. I tried but the problem is the same! When I power on, the motor make a fast move always. This is a great problem for any mechanism! The risk is leverage damage due to uncontrolled move. This is a feature of cheaper blue servos?

For a test, remove the servo.attach(); command. I belive that is when the servo starts movement.