The circuit also had a switch from the +5v supply to a SPST (single pole, single throw) microswitch, the other side was connected to a 10k pull-down resistor, to avoid the problem of the flip-flopping voltage we had last time, and this was connected to both pin 5 and ground, thus keeping it at digital 0. We used the same code as last time, so here are some photos of the board taken in the lab.
Once it was connected, the code uploaded, and the board initialised, the program worked as expected, once the button was pushed, the LED began to flash.
No comments:
Post a Comment