Skip to main content

Reply to "Semaphore and 555 Timer Circuit"

Originally Posted by nvocc5:

Hi rtr12

 

If you have a method for the traffic lights I would like to look at that as well. That is a few project down the road but if I need to get the part I can order them now. Since RS is more or less out of business you just can not go to them and get the parts that you are missing.

The traffic signals gunrunnerjohn posted are the same as mine. I will check to make sure. I believe that is the working model as well. I will look for the flasher this afternoon. The one Bobby Ogage posted it probably a good one from Dale H, but the picture of the schematic is missing?

 

I would recommend Digi-Key for your electronic parts. Very reasonable pricing and shipping. They also accept small quantity orders. I get the parts in a day or two via USPS.

 

Model Railroad and Misc Electronics Here's a good site for some learning, there are a lot of 555 timer circuits here and the ones I have tried have worked. Lots of good information on other things here as well. He also offers circuit boards for some of the projects he has listed.

 

Model Train Circuits There is an alternating flasher circuit here, among many other things of interest. I have not tried any of these circuits.

 

Simple LED Flasher Circuits I believe this is the one I was thinking of from my post yesterday, there is one using a 555 timer. I don't think I ever got around to trying it so far?

 

Here is the Arduino Traffic Signals. I don't have a wiring diagram, but It's really simple. I set it up and took some pictures. Here is the code, I will post the Arduino file and pictures below.

 

The resistors used on the Arduino breadboard are 330 ohm.

------------------------------------------------------------------------------------------

/*   Traffic_Signals

    Operates Red. Yellow & Green LED's as Traffic Signals

This example code is in the public domain.

   */

 

// Pin 13 has an LED connected on most Arduino boards.

// give it a name:

int greenled = 8;

int yellowled = 9;

int redled = 10;

 

// the setup routine runs once when you press reset:

void setup() {    

// initialize the digital pin as an output.

  pinMode(greenled, OUTPUT);

  pinMode(yellowled, OUTPUT);

  pinMode(redled, OUTPUT);

}

 

// the loop routine runs over and over again forever:

void loop() {

  digitalWrite(redled, LOW);      // turn off red LED

  digitalWrite (yellowled, LOW); // turn off yellow LED

  digitalWrite(greenled, HIGH);  // turn on green LED (HIGH is the voltage level)

  delay(10000);          // green LED for 15 seconds

  digitalWrite(greenled, LOW);   // turn off green LED by making the voltage LOW

  digitalWrite(yellowled, HIGH); // turn on yellow LED

  delay(2500);          // wait 5 seconds

  digitalWrite(yellowled, LOW);  // turn off yellow LED

  digitalWrite(redled, HIGH);     // turn on red LED

  delay (10000);          // wait 15 secongs

}

 

DSCF7260

DSCF7261

DSCF7262

DSCF7263

DSCF7264

Attachments

Images (5)
  • DSCF7260
  • DSCF7261
  • DSCF7262
  • DSCF7263
  • DSCF7264
Files (1)
Last edited by rtr12

OGR Publishing, Inc., 1310 Eastside Centre Ct, Suite 6, Mountain Home, AR 72653
800-980-OGRR (6477)
www.ogaugerr.com

×
×
×
×
×