Question about Arduino Nano Every and Button, LED + Serial

So, I am trying to setup a small bench setup to develop my code and I was using the example code for Digital -> Button as an initial boilerplate.
However things are not really working as I would expect and I am not sure what is going on.

It seems that either the Led, the button, or both, seem to affect the behaviour of the microcontroller ?! E.g. freezing it ?

e.g., uploading the Digital->Button example code to the board, the LED starts HIGH even if the button isn't pressed and it goes to LOW when the button is pressed but it seems it only happens because the board freezes when the button is pressed.
Why I think the board freezes is because when I add a serial interface to check the button/led state in the Serial Monitor window, then the serial interface also freezes.
I was thinking that perhaps the Led Pin would interfere with the serial interface somehow, so I tried to connect another pin (3) to a PWM relay but that is also having a strange behaviour where the relay is only triggered if I quickly press and release the button ....

Can someone perhaps shed some light ?


Read the forum guidelines to see how to properly post code.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

Post a schematic of the wiring. Include all components, their part numbers/values and power supplies. Hand drawn, photographed and posted is fine.

What is a PWM relay?

@haevaristo, your topic has been moved to a more suitable location on the forum. I'm not sure why you think that this relates to avrdude, stk500 or boot loader?

Its an RC Relay .. its on/off is controlled via a PWM. Typically used in RC applications.


So... it occurred to me last night that perhaps the button on the Arduino Nano Every is connected to the RESET pin !?

I guess that would explain it.

1 Like