i hope i can help others but i think i found the probleme.
i connected pin 2 till 13 on special relais to switch 230v.
when i disconnected all the pins everything works fine !!!!
i connected pin for pin on the board.
when i connected pin 13 the probleme is there again!!
when you put the voltage on the arduino board the led 13 is automatic blinkin a few times.
when i got the relais connected the relais switching a few times to.
i think this will make a connection fault on the usb connection.
so pull the wires on pin 13 off before uploading your sketch!!!
Hi Marcel, thank you for telling us your solution.
Actually you can find out what pins will interfere with an upload.
It is unlikely to be pin 13.
But you can find that out by only connecting pin 13 to your board, if you'd like to hunt for the reason of these troubles.
Pins 0 and 1 are used for serial communications.
If you are using those with a shield, thjs might get you in trouble when attempting an upload.
Also keep in mind that you are limited in the power you consume with your setup, certainly when powering from USB only.
En verder, er is ook een Nederlands deel hier.
Maakt het communiceren een stuk gemakkelijker als het in het Engels wat lastig mocht zijn.
thanks for your reply.
i dont use pin 0 and 1 because that pins are for comunnication.
i run the arduino on a seperate 14v 300mA adaptor.
and i got another 5v 1A usb adaptor for the main voltage of my relais.
i think that that must be enough for this.
if i disconnect pin 13 everything works fine.
if i connect the pin 13 again i got that same massage.