[SOLVED] SensebenderMicro restarts/crashes triggered by D3
-
I have a weird problem with a sensebender micro.
Loaded the standard sensebender sketch and all works fine.
Then I added a switch between 3.3V and D3 and initialized this with:
setup()
...
pinMode(MOTION_PIN, INPUT);
digitalWrite(MOTION_PIN, HIGH);
...Now comes the weird part:
Whenever I press the D3 button, the sketch restarts. No matter if I sleep with interrupt or without etc.
If the serial console is NOT attached, it looks like the sketch continue to run.I would assume some power issue, but for this test the board is powered over the USB-serial converter with 3.3V and everything else is working with or without opening the serial monitor in the Arduino Application.
Any idea what I am doing wrong?
According to this thread (https://forum.mysensors.org/topic/1573/my-generic-room-senser-sensebender-with-motion-and-light) I have tried to put a 25k resistor between D3 and ground, but without difference.
-
@t3chie Shot in the dark, but you're not accidently shorting Vcc and Gnd by pressing the switch?
-
@Yveaux Thanks for that - I checked my cabling again and discovered a "hairline connection" between D3 and DTR. It is working better now.
-
@t3chie said in SensebenderMicro restarts/crashes triggered by D3:
It is working better now.
You mean the issue has been solved?
-
@Yveaux Yes, it works now.