ICP 2 - marajant/CS5590-IOT-Robotics GitHub Wiki
IOT ICP2
Wiring
Video_part1 Video_part2 we used the Arduino micro-controller along with it's IDE to create a wifi monitored heartbeat senso. we began by connecting each one end of our 3 LED's to a resistors in order to reduce the power going to it, following the resistor was a ground wire to complete one path of our circuit. The other end of each resistor was connected to a digital output pin on the Arduino in order to control the on/off state of each LED. The last circuit component to be added was a momentary push button switch connected to its resistor then to ground, the other end was connected to a 5V supply to provide it power. there was also a an input line connected between the switch and the resistor in order to digitally read the switch when it was actuated.
Code
we then wrote delays to turn the LED's on and off in order to simulate a stop light with the green and red lED remaining on for 1000ms and the yellow light with 250ms.