Step 3Build optional test circuit
A few LEDs, some resistors, a breadboard and some jumper wires are all that is needed to set up a test bed for the web server part of the project. Soon you will have the all important blinky lights essential to any electronics project.
In the completed circuit, each of the four outputs (Red, Yellow, Green and the optional auxiliary output) will be turned on and off by controlling pins 14-17. While there are no pins labeled 14-17 on the arduino, it does allow the analog pins to be used as digital pins, numbering where digital pin 13 leaves off. So pin A0 can be treated as pin 14, A1 as pin 15, etc.
To simulate the relays that will control the lights being turned on by the arduino, an LED can be wired in place of each channel. For each color do the following steps:
- Run a jumper wire from the associated pin to a 180 ohm resistor.
- Connect the other end of the resistor to the anode (positive, long wire) of an LED.
- Connect the cathod (negative, short wire or flat side) of the LED to the ground line.
- Connect the ground line to one of the arduino ground (GND) pins.
Repeat steps 1-3 for each of the other control pins.
As soon as the power it applied to the arduino, all three should start blinking, until you set their behavior with the web page. This is to alert on a power outage.
If all is right, you will be able to see the lights turn on and off as you control them from the web page, as described in the previous step.
You can stop here if all you want to do is control LEDs from a web browser.
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|




















































