3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.


Arduino stoplight web server

Step 3Build optional test circuit

Build optional test circuit
«
  • IMAG0076.jpg
  • IMAG0077.jpg
This step is not required, but as noted in the previous step, it's a lot easier to troubleshoot problems with the arduino and the code if you set the web server part up first.  But then you need some way to see if it's working.

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:

  1. Run a jumper wire from the associated pin to a 180 ohm resistor.
  2. Connect the other end of the resistor to the anode (positive, long wire) of an LED.
  3. Connect the cathod (negative, short wire or flat side) of the LED to the ground line.
  4. 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 StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
18
Followers
5
Author:mkanoap
He's just this guy, you know?