I have made my first IoT project using MKR1000.
My project calculates the time between two consecutive LOW on digital pin 1.
And send that duration to server.
My problem is in hardware of the project, if I manually switch between Gnd and 5V on breadboard, the project runs fine but If I use a DPDT push button to toggle the digital pin between HIGH and LOW each time I press the push button MKR1000 resets itself.
How does a power change on a digital pin activates Hardware reset?
what can I do to solve this?
I don't have a proper schematics.
But i can explain it to you.
I have connected one terminal of DPDT switch to Gnd and other to 3.3V.
And my digital pin is connected in the middle.
So when I push the button then MKR1000 gets a hardware reset.