Skip to main content

Replies sorted oldest to newest

Kris,

A model number would help, and you can also Google it to find more info.

 

As far as the 555 timer goes, I don't see the connection with the traditional semaphore unless it was used to limit on-time for a smaller display layout that might leave the train setting on the activation device for extended periods.

However, on a larger loop it could be used to hold the RED indication for a longer period after a short train passed.

 

These are usually used with an under-track contactor or an insulated-rail.

This document shows typical hook-up instructions Lionel #159

But look up your particular model.

 

Dave

 

> Be aware that the #82 is larger Standard Gauge.

 

> The 7-light requires a two-position contactor or a relay to function properly.

MTH 7-light document

 

----------

Something else you should be aware of if you have not seen these in person, you are working with three different sizes & two different gauges.

#82 is Standard Gauge, as mentioned

#15x versions are traditional O-gauge size

7-light MTH is a finer proportioned O-scale product

 

Dave

 

Last edited by Dtrainmaster

I have a traffic signal circuit using a 555 timer and a 4017 counter from a couple years ago. I got it off the internet, but had to modify it to get it to work properly. Not sure my schematic is the working model (don't remember if I updated it or not?). Might be something to play with anyway.

 

I have since gotten an Arduino which made the traffic lights much easier. That might also make your project easier? The traffic signal circuit I had was continuous (repetitive cycles), but maybe someone here would be able to make it a one shot device with minor modifications?  

Last edited by rtr12

My Arduino circuit and code was also for traffic lights. It greatly simplified the other method using a 555 & 4017 that I was fiddling with. That's all I have really fiddled with so far using an Arduino though. I have some other sensors for Arduino which I got to try and learn more, but have yet to attempt to do anything with them.

 

I have not tried it, but I think something similar to the traffic signal could be adapted to signaling with an input from some type of train position detector rather than just using timed sequencing for the lights. I think you could probably make it fairly simple or even more detailed either way, depending on input sensors, locations and quantities used.

HI rtr12

 

I am using the old fashion isolated track method, nothing fancy. No IR just the isolated track and DC relay to trigger the gates and banjo and other stuff.  If I could plug something in to that and have the flashing light that would be great. Or have a Arduino that acts as a dc relay and activates flashing lights when the train cross the isolated track.

Sorry, I thought you were talking about signals, like red, yellow, green when a train passed. I may have something for flashing lights around here somewhere? It seems like that is something I have fiddled with before when I was messing with the traffic lights. So, you have 2 lights and want them to alternately flash when a train passes your isolated rail?  

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

Dear gentleman

 

Thank you so much for all the information.

 

Bobby Ogage I have been talking to Dale H via e-mail. Here is the one who gave me the information on the wig wag circuit. But I still thank you for your time and look forward on your advise.

 

John I know I always can count on you to whip out scheme in no time, if you do not have we know we are all  in trouble. After studying it I have some question in regards to the values of the ohms and 12 VDC power supply.

 

rtr12 Wow that is a lot of information to study, thanks I will look it over. I like your Arduino Traffic Signals layout. Let study that as well. Thanks for the links for the electronics.

 

 

The power supply will probably be no more then 100ma to run this, it's basically lighting eight LED's and since they're parallel/serial, you'll have maybe 60-70ma for the LED's.  The rest of the circuit doesn't take much power at all.

 

The IN914 would be the standard axial lead one, and the 4017B would be the DIP package.

 

I'm not sure what cap you're asking about.

 

Here are the parts I used to make the traffic light circuit. I did this all on a bread board that I also got from Digi-Key.

 

Parts are all from Digi-Key, except the DC power supply which was from ebay and resistors were probably from Radio Shack. GRJ's power calculations would probably be plenty, I already had purchased a bunch of the 1 Amp power supplies on ebay.

 

Digi-Key

Item         Digi-Key Part #

1N914 Diode         -  1N914FS-ND

4017B Counter      -  568-3080-5-ND

555 Timer         -  296-1411-5-ND

10uf CAP         -  P1187-ND

1MEG Trimmer Pot -  T93YB-1.0M-ND

 

ebay

Power Supply - AC/DC to DC Converter 1 Amp - From Ebay - Here's a link

 

The resistors used were all 1/4 watt.

 

I tried this again last night but it isn't working. My wife was talking to me the whole time so I probably have something missing or improperly connected. I will check it again later today. The 12 VAC note got me wondering, I'm sure that should be VDC. Will report back later. Arduino is definitely MUCH easier! 

Last edited by rtr12

That note is a typo. It is definitely VDC. Also, I'm guessing probably better left coming from the output of the 555? I will delete it and fix the schematic. It's working now. Once you get all the jumpers in the right place it works.

 

I found a drawing that I think was the original that started it all. I don't think I was ever able to get it to work and ended up with the posted one instead. Here is a link to it 

 

Two more questions for GRJ,

 

1.) It seems like on first power up both the Red and Yellow LEDs on the N/S lights come on. Turning the power supply down to 0 (not cycling power) and then back up to 12 VDC fixes the problem.

 

2.) On my working schematic of this I have a 100k resistor drawn in between the feed to the 1M pot and pin 14 on the 8017. This doesn't seem to make any difference in the operation of anything? 

 

Any ideas on these? I don't remember this from fiddling with this before?

 

Here's a revised drawing with parts list. 

Attachments

Can you post the TinyCAD file for that one?

 

I suspect the counter is coming up with odd outputs, there is no reset with the circuit.  I'd tempted to connect a .1 uf cap to the supply and reset, and a 10K resistor from the same junction to ground.  That would give you a power-on reset.  I think if you left it run for a spell, that would all work itself out.

 

Don't know why you'd need the 100k.

 

Last edited by gunrunnerjohn
Originally Posted by gunrunnerjohn:

Can you post the TinyCAD file for that one?

 

I suspect the counter is coming up with odd outputs, there is no reset with the circuit.  I'd tempted to connect a .1 uf cap to the supply and reset, and a 10K resistor from the same junction to ground.  That would give you a power-on reset.  I think if you left it run for a spell, that would all work itself out.

 

Don't know why you'd need the 100k.

 

Certainly, here it is.

 

I will try letting it set for a while and then add the new cap and resistor and see what happens.

 

It was a couple of years ago I was fiddling with this and I have no idea what the 100k was there for? I don't remember the two N/S LEDs on start up either, it was all working before, or so I was thinking?

 

 

Attachments

The 4017 has a quirk where it can power up in an "illegal" state which probably explains the unusual LED combination you describe.  As the datasheet says,

 

Automatic counter code correction is provided by an internal circuit: following any illegal
code the counter returns to a proper counting mode within 11 clock pulses.
 
So you can wait 11 pulses of the 555...or you can apply a power-on reset pulse as GRJ suggests to the reset pin of the 4017.

Breadboard I got was a Digi-Key part #438-1048-ND

 

Thank you stan2004, will give it a try. I thought 555 at first, then was thinking 4017, then was totally unsure as the 4017 reset pin was going to the negative side?

 

Ok, tried it and it works so far, if I got it right (no fire or smoke anyway). Of course it wasn't acting up when I went back to change things. Here's a revised diagram, if you see any mistakes please let me know. I had a ceramic cap that I used here, no idea where it came from, probably ebay? I just picked one from Digi-Key to add to the parts list.

Attachments

Last edited by rtr12

The 4017 has a so-called "active high" reset which means you briefly apply a positive supply voltage level signal.  That's what GRJ's suggestion does.  When you initially apply power the capacitor is discharged so there's no voltage across it.  Hence the 4017 reset pin sees 12V and the chip resets (and clears any illegal states).  Then the capacitor starts charging via the resistor so the 4017 reset pin soon sees a low-voltage on its reset pin causing the chip to exit the reset condition, and it starts counting based on the clock pulses from the 555.

 

The 555 has a so-called "active low" reset which means you briefly apply a low level (i.e., ground) signal to reset it. So in you schematic, this pin is connected "high" and the 555 is never in the reset condition.

 

Typically, in schematic drawings, you indicate an active-low pin by either designating the pin name with a bar over it or by inserting a small circle on the schematic symbol of that pin:

 

ogr 555 active low reset

Attachments

Images (1)
  • ogr 555 active low reset

The connection of the cap to the power was what threw me as the 555 reset was going to power and the 4017 was going to ground, but it seemed to be the 4017 that was acting up. Anyway, good learning experience.

 

After stan2004's post I went back and read the 4017 data sheet and his note about the counter getting mixed up was right on the front page. Not that I would have figured out the meaning of it all, had he not explained it prior to my reading it.

 

Also, I am taking it that you got the new schematic with the reset added and didn't post a revision to it, so I did get it right?

 

 

Perhaps stating the obvious but the 4017 Reset function (in addition to clearing any "illegal" states) puts the count back to 0 where the Q0 output is high.  In your circuit this puts Red on the E-W direction.

 

To add some interest to your layout, if your intersection is near a grade-crossing you could have your train-detector (ITAD, isolated-rail, etc.) reset the 4017 to immediately stop E-W traffic going to the RR crossing.  I don't know if there is a standard but I see this behavior on traffic signals next to RR crossings near me.

 

Depending on how you do block detection, it could be as simple as a 10 cent transistor and a couple resistors but no more than, say, 50 cents using an opto-isolator chip.

That is a good idea, the RR crossings here do that as well. There were two intersections like this right by our old home of 35 years before we moved a little further west in 2013.

 

I get the idea, not sure I know how to accomplish it, but will give it a try. Something to fiddle with anyway. Will post back here with results one way or the other. Don't go away, in case I get stuck...

 

Thanks to both of you for all the help so far.

nvocc5,

 

I can't find the jumpers I got, but here is a link for some similar ones on ebay.

 

Male to Male breadboard jumpers 

 

These might be easier than the ones that come with the bread board if you get one. Just thought you might like these better, I did? The one set that comes with the BB might not always be enough either?

 

I also found a Knight Rider (the talking car from the '80s) flasher if you are interested. Something else I have tried that I found on the internet. Probably no good for rail roads, but if you want more to play with it might be fun. 

Last edited by rtr12

It's truly sad that the US averages about 6 collisions per day at RR crossings with several hundred fatalities each year

 

http://oli.org/about-us/news/collisions-casulties

 

The numbers seem to be on a downward trend perhaps in part because of better coordinated signaling technology.  Thus, I think it's worth $1 in parts and effort to include this in your layout if appropriate.

 

Again, it depends on how you trigger you crossings, but a general solution would be an opto-isolator which "shorts" the capacitor when a train triggers your crossing gates/signals/flashers.  I suggest the LTV-8141 opto-isolator only because GRJ showed it in one of his circuits, DigiKey sells it (64 cents qty 1), and if you're only going to "stock" one opto-isolator in your stash it's a good one to have for O-gauge applications.  So by applying, say, 12V (AC or DC) to the opto-isolator thru a current-limiting resistor, the capacitor is discharged which resets the 4017 and the E-W traffic gets the red light as long as the train is present.

 

ogr ltv8141 reset trigger

Attachments

Images (1)
  • ogr ltv8141 reset trigger

I had no idea there were that many collisions at crossings? The numbers have really dropped since 1981. In the 35 years we lived by those crossings I can only remember one collision with a motor vehicle. A lady ran off the road on to the track and the car got stuck. Luckily a police car came by or saw her go off the road and the policeman helped her get out of the car just before the train came through. From the report on the news it sounded like they didn't get out of there any too soon, it was a close call.

 

Back on track now. Thanks for the drawing revisions, I will try it out. The opto-isolator sort of looks like a relay. Would a plain old relay work there as well? I am guessing the opto-isolator is just a lot cheaper and much smaller than a relay? Never the less I am going to get some of the ones you suggest as I don't have any and have never fiddled with them. Let's see now, there must be something else I need at Digi-key while I'm there...

Originally Posted by rtr12:

..The opto-isolator sort of looks like a relay. Would a plain old relay work there as well? I am guessing the opto-isolator is just a lot cheaper and much smaller than a relay? Never the less I am going to get some of the ones you suggest as I don't have any and have never fiddled with them.

Right.  When the opto-isolator is triggered, the transistors on the output side effectively "shorts" the capacitor like a relay would.  The key is the voltage across that cap is always of the same polarity (more positive on the "top" side) so a transistor works since transistors are, in-effect, DC devices.  Also, the currents involved are quite small, measured in milli-Amps, so the "puny" transistor in an opto-isolator is adequate; you do not need the Amp level switching capacity of a relay.

 

And, yes, if you like to fiddle with electronic parts or just want to learn more about what goes on under-the-hood you definitely need to add opto-isolators to your bag of tricks.  That is, since O-gauge uses AC for track and accessory power while all the new-fangled electronics uses DC, you will frequently need to bridge that gap which, in one way of thinking, essentially means using (opto) isolators to allow the two systems to inter-operate.

 

Dear gentleman

 

This is one on the main reason I love this forum the free follow of information and great depth of knowledge that is being shared. I appreciate that you were able to help rtr12 with the traffic light problem. I also learned something  new this about electronics. I will place the order with Digikey later today unless you folks want to add some else to the circuit.

 

 

Dear rtr12 and all

 

Since you talked about the crossing gates and accidents. The Metro North accident happened 2 miles north of where I live. It is a sad to hear that seven people lost their lives in that accident. That is the deadliest accident that Metro North has had in it history. I hope that the NTSB can learn from this accident and implement some kind of new safety system so this does not happen again in the future,

Originally Posted by nvocc5:

Dear gentleman

 

This is one on the main reason I love this forum the free follow of information and great depth of knowledge that is being shared. I appreciate that you were able to help rtr12 with the traffic light problem. I also learned something  new this about electronics. I will place the order with Digikey later today unless you folks want to add some else to the circuit.

 

 

It is a great place! This is where I learn as well, as you can see, thanks to stan2004, gunrunnerjohn and many others too.

 

For your parts order, I just realized I didn't have any LED's listed. I'm not sure I have ever gotten any from Digi-Key, but I am sure they should have them. I got some assortments of red, green, yellow and clear at Radio Shack quite a while back. I have gotten some at Jameco and also on ebay. They are just the plain old 5mm ones. I also have some assortments of 3mm that I think came from RS as well, but I can't remember for sure. Anyway don't forget the LED's.

 

It's good to have extras of all this stuff too, mine sometimes go bad. I have no idea how this happens, but usually some circuit study and moving a jumper or two will make the next ones last a lot longer.   It's still good to have extras.

 

I got the Knight Rider circuit off the internet too (like the traffic signals), but it seems like it also needed a little fiddling to get working? Neither the traffic signals or the Knight rider circuits were my design (I'm not that smart). They were both found on the internet and I just fiddle with them a little to get them working and made a new diagram.  

Originally Posted by gunrunnerjohn:

That whole circuit, including the opto for holding it in reset, would be nice to put on a circuit board.

 

I don't know if it had the opto-isolator in it, or the reset, but it sure seems like I have seen these in kits somewhere? Quite similar anyway. I don't know enough to do this on my own, or without you guys helping me.

 

I need to start keeping track of where I find these things, I will look around and see if I can find anything on them. I tried a few different variations and I couldn't get them to work as they were. After some fiddling, jumper checking and head scratching I got them to go, usually with some very minor changes.

Ok, here is a couple of the Knight Rider circuits. The jpg diagram was from the internet and I have it marked as 'Works' with no notes or scratch outs on the original print out I have. I have not tried this one again yet.

 

The TinyCad and pdf file I also had marked as working. This also originated on the internet, but I can't find the original file of it? Anyway, I couldn't get the original to work and changed a few things. This was also a couple years ago and unfortunately any memories of what was changed have faded. The notes are not mine, they were on the original diagram I had, but can't find now.

 

The bad news is I tried this one last night and so far it is not working. Will fiddle with it more today. I probably have something mis-wired, missing jumper or something? I will report back if I get it fixed and post a new diagram if there are any changes. Or will be back asking GRJ and stan2004 for more assistance.

Attachments

Last edited by rtr12

It really did walk a couple years ago when I did this, but has since stalled out on my latest attempt yesterday. Had to be something I goofed up.  

 

Circuit Breaker - While I was looking for the PCB's I thought I had seen for the traffic lights I found this. What do you all think of it? Looked interesting, but I don't know enough to tell anything about it. I have done some of the circuits on this website and they have all worked, so I think this guy is pretty good. He also offers PCB's for a few other items including a single traffic light. Sorry, I am easily distracted sometimes...

Last edited by rtr12

Sounds fine, but John and Stan will be a lot more help if something goes wrong.   I tried the Knight Rider again the other day and still did not get it working. Weather is supposed to turn bad again here starting tomorrow. I will try it again and see if I can figure out what I did wrong? It worked a couple years ago? I still have not tried the one from the internet again, may try that too.

 

I also ordered some stuff from Digi-Key on Wed evening, got it today. That's a great place! Anyway, I got the Opto-isolators Stan was explaining above so will see how that goes too.

Sharp eye Stan, that will certainly screw up the 555 circuit!

 

Here's the corrected files, the input file for TinyCAD and a graphics file for printing for those of you that don't have TinyCAD (which is free, FYI)

 

Edit: Added the missing ground that Stan so generously pointed out.

 

 

Attachments

Last edited by gunrunnerjohn

So in looking around in eBay for 555 timer modules, I came across this $1.27 (free shipping) module that has a 555 and 4017 in the same configuration as the Traffic Signal controller and the Knight Rider circuit.  Yes, you'd have to be handy with the soldering iron to modify the 10 outputs with the diodes and actual LEDs but it may be a way to save some time wiring up the 555 and 4017 portion of the circuit.  It probably runs fast for a traffic signal so the 1uF capacitor C1 would need to be increased.  Just a thought.

 

http://www.ebay.com/itm/New-NE...;hash=item4ad99b4138

 

ogr ebay 555 4017

 

 

One more thing on the 555.  Usually, if pin 7 (Discharge) is used for a basic oscillator, then the 500K pot goes to pin 8 (Vcc) rather than to pin 3 (output).  But there are zillions of ways to hook up the 555 - but I'd double-check that connection.

 

Knight Rider Car Flasher Circuit

Attachments

Images (2)
  • ogr ebay 555 4017
  • Knight Rider Car Flasher Circuit
Last edited by stan2004

Thanks for all the help guys (I need all I can get), I found the pin 1 and cap in wrong place error last night and I think my 555 timer circuit is still the culprit. Your last two posts (stan & grj) look promising. I haven't fiddled with it again yet today, but those suggestions are going to be coming up this afternoon. I must also check out the link stan posted, might have to have one or two of those. I am weak, I can't resist these things...

 

I think I must have copied from something else in the Tinycad drawing and never finished revising it? I was doing this about the time we started looking for a new house and moved a couple years ago. I can't find my original that I started with though.

So many circuits, so little time! I discovered something else a while ago.

With power on at 9vdc, I pulled 33k the resistor off of the 555 pin 3. It started working with just me holding the resistor and the other end still connected to pin 14 on the 4017. It was a bit fast, but at least I'm hot on the trail. Maybe I'll just discard the 555 and hold the resistor, a human timer...

Actually I think the only thing that was wrong was the cap on pin 1 instead of where it belonged, after pin 2 & 6. Pretty sure the real problem was my poor eyesight (cataracts they won't remove yet, maybe in a couple months) and I just had a jumper in the wrong spot and didn't (or couldn't) see it. (Not knowing what I am doing may figure into the equation as well. ) Must have checked those 555 jumpers at least a dozen times.

 

I did 2 things yesterday, tried a new 555 chip then took all the jumpers off the 555 and re-did them. I also changed the power to the 500k pot from pin 3 directly to power supply as Stan posted above. I now think the other 555 is fine though, never saw any magic smoke.

 

I am going to take it all apart later and re-do it to make sure my drawing is correct now, but I think yours where you moved the cap is also correct. I will try powering the pot from pin 3 again and see what happens when I re-do it later. 

Here is a clean file of everything, parts and revisions. For some reason the TinyCad files print funny now, won't all fit on one page. They are fine if you print from the pdf.

 

The Knight Rider did work with power to the pot from pin 3 of the 555, but I changed it to the main power source just to be on the safe side per Stan's post above.

Attachments

Last edited by rtr12

I found the comment curious when I saw the component.

 

FWIW, when you're drawing something like this and you know the right component is, say a 10k pot, and you're using a 500k because you have one in the junkbox, I'd still make the schematic indicate the correct value.  Most folks that are going to try to duplicate it should know that you can use a larger one and simply not use the full range.

Once you get the Arduino working, here's what you need for the project board.  $4.39 and free shipping.  It loads with the mini-USB and is small enough to embed in rolling stock or locomotives.

 

Arduino Nano V3.0

 

 

In looking, here's one even cheaper with no cable, no big loss, $2.97

 

Xtwduino Nano V3.0

 

 

nano

Attachments

Images (1)
  • nano
Last edited by gunrunnerjohn

Thanks for the kind words, he's home (yesterday afternoon) and doing better. May not be for long, but he is home where he wants to be. He refused further treatment (open heart surgery among other things). At 86, I would be doing the same thing he is. From my experience with others I have known, intervention like this at this age usually makes things worse and the end result is the same, possibly much sooner too.

 

Now I need to go order some of these latest gadgets just posted... 

Last edited by rtr12

Here are the revised flasher drawings. I think 10k was satisfactory for the trim pot. That seemed pretty slow to me. If anyone wants it slower, they can use something larger.

 

If you order any trimmer pots, make double sure you check the number of turns needed for full scale. Some are 20 turns and some are 220 degrees (don't ask how I know that).  

Attachments

Here is some Arduino code for the Knight Rider Flasher. 330 ohm resistors were used for the LEDs.

 

/*   Knight Rider Flasher   Operates LED's in Sequence as in the Knight Rider car in the TV Show

     This example code is in the public domain.  */

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

  // give it a name:

  int redledA = 8;

  int redledB = 9;

  int redledC = 10;

  int redledD = 11;

  int redledE = 12;

  int redledF = 13;

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

void setup() {

  // initialize the digital pin as an output.

  pinMode(redledA, OUTPUT);

  pinMode(redledB, OUTPUT);

  pinMode(redledC, OUTPUT);

  pinMode(redledD, OUTPUT);

  pinMode(redledE, OUTPUT);

  pinMode(redledF, OUTPUT);

}

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

void loop() {

  // Flash LED 1

  digitalWrite(redledA, HIGH);   // turn on red LED 1 (HIGH is voltage level)

  digitalWrite(redledB, LOW);    // turn off red LED 2 turn off other LED's by making voltage LOW

  digitalWrite(redledC, LOW);    // turn off red LED 3

  digitalWrite(redledD, LOW);    // turn off red LED 4

  digitalWrite(redledE, LOW);    // turn off red LED 5

  digitalWrite(redledF, LOW);    // turn off red LED 6

  delay(150);          // redled 1 for 150 miliseconds (1000 miliseconds = 1 second)

  // Flash LED 2

  digitalWrite(redledA, LOW);    // turn off red LED 1

  digitalWrite(redledB, HIGH);   // turn on red LED 2

  digitalWrite(redledC, LOW);    // turn off red LED 3

  digitalWrite(redledD, LOW);    // turn off red LED 4

  digitalWrite(redledE, LOW);    // turn off red LED 5

  digitalWrite(redledF, LOW);    // turn off red LED 6

  delay(75);          // redled 2 for 75 miliseconds

  // Flash LED 3

  digitalWrite(redledA, LOW);    // turn off red LED 1

  digitalWrite(redledB, LOW);    // turn off red LED 2

  digitalWrite(redledC, HIGH);   // turn on red LED 3

  digitalWrite(redledD, LOW);    // turn off red LED 4

  digitalWrite(redledE, LOW);    // turn off red LED 5

  digitalWrite(redledF, LOW);    // turn off red LED 6

  delay(75);          // redled 3 for 75 miliseconds

  // Flash LED 4

  digitalWrite(redledA, LOW);    // turn off red LED 1

  digitalWrite(redledB, LOW);    // turn off red LED 2

  digitalWrite(redledC, LOW);    // turn off red LED 3

  digitalWrite(redledD, HIGH);   // turn on red LED 4

  digitalWrite(redledE, LOW);    // turn off red LED 5

  digitalWrite(redledF, LOW);    // turn off red LED 6

  delay(75);          // redled 4 for 75 miliseconds

  // Flash LED 5

  digitalWrite(redledA, LOW);    // turn off red LED 1

  digitalWrite(redledB, LOW);    // turn off red LED 2

  digitalWrite(redledC, LOW);    // turn off red LED 3

  digitalWrite(redledD, LOW);    // turn off red LED 4

  digitalWrite(redledE, HIGH);   // turn on red LED 5

  digitalWrite(redledF, LOW);    // turn off red LED 6

  delay(75);          // redled 5 for 75 miliseconds

  // Flash LED 6

  digitalWrite(redledA, LOW);    // turn off red LED 1

  digitalWrite(redledB, LOW);    // turn off red LED 2

  digitalWrite(redledC, LOW);    // turn off red LED 3

  digitalWrite(redledD, LOW);    // turn off red LED 4

  digitalWrite(redledE, LOW);    // turn off red LED 5

  digitalWrite(redledF, HIGH);   // turn on red LED 6

  delay(150);          // redled 6 for 150 miliseconds

  // Flash LED 5 - Reverse Direction

  digitalWrite(redledA, LOW);    // turn off red LED 1

  digitalWrite(redledB, LOW);    // turn off red LED 2

  digitalWrite(redledC, LOW);    // turn off red LED 3

  digitalWrite(redledD, LOW);    // turn off red LED 4

  digitalWrite(redledE, HIGH);   // turn on red LED 5

  digitalWrite(redledF, LOW);    // turn off red LED 6

  delay(75);          // redled 5 for 75 miliseconds

  // Flash LED 4

  digitalWrite(redledA, LOW);    // turn off red LED 1

  digitalWrite(redledB, LOW);    // turn off red LED 2

  digitalWrite(redledC, LOW);    // turn off red LED 3

  digitalWrite(redledD, HIGH);   // turn on red LED 4 

  digitalWrite(redledE, LOW);    // turn off red LED 5

  digitalWrite(redledF, LOW);    // turn off red LED 6

  delay(75);           // redled 4 for 75 miliseconds

  // Flash LED 3

  digitalWrite(redledA, LOW);    // turn off red LED 1

  digitalWrite(redledB, LOW);    // turn off red LED 2

  digitalWrite(redledC, HIGH);   // turn on red LED 3

  digitalWrite(redledD, LOW);    // turn off red LED 4

  digitalWrite(redledE, LOW);    // turn off red LED 5

  digitalWrite(redledF, LOW);    // turn off red LED 6

  delay(75);              // redled 3 for 75 miliseconds

  // Flash LED 2

  digitalWrite(redledA, LOW);    // turn off red LED 1

  digitalWrite(redledB, HIGH);   // turn on red LED 2

  digitalWrite(redledC, LOW);    // turn off red LED 3

  digitalWrite(redledD, LOW);    // turn off red LED 4

  digitalWrite(redledE, LOW);    // turn off red LED 5

  digitalWrite(redledF, LOW);    // turn off red LED 6

  delay(75);                // redled 2 for 75 miliseconds

  // Flash LED 1 Go Back to Top - ReStart

}

Last edited by rtr12

Thanks, I was just over there this morning, my wife is staying with him until Thursday when her sister relieves her. He is doing pretty good for his condition. The hospital got us in touch with Hospice and they are great, got all the stuff he needs, hospital bed, walker, oxygen, etc. They make it all very easy. They really are a lot of help during times like this.

 

Let me know if those Arduino projects work out for you. They are pretty basic. The Arduino is a lot easier than using all the IC's and component parts, at least for me anyway. There is a whole lot more you can do with the Arduino than what I have posted here.  

Last edited by rtr12

Dear rtr12

 

My mother in law turned 65 last July 4th. Two weeks later she was not feeling well and three months later she had passed on of cancer. It is a tough time on the whole family. We were shocked because she was so young. We are still grieving over her passing. So I know how hard it can be on everyone. My mother in law lived in Europe and they did not has Hospice like they do here.

That was pretty fast and she was still pretty young at only 65, that would be much harder to deal with especially when it was so unexpected. Takes a long time to get over that, it's a big adjustment for everyone. Cancer can be bad too, I hope she didn't suffer with it. I am kind of surprised that Europe doesn't have something like Hospice? I thought they were way ahead of us in many things and that sure would have been one of them. Hospice is a great organization if you ever need them, I have been really impressed with them.

 

My father-in-law has had this condition for a few years now and he is much older, so this wasn't totally unexpected. Fortunately for him, (and the family) he has been getting around quite well up until they started trying to repair him recently. That has only made things worse.

Kind of surprised about the waiting list too? Unfortunately it will just take a long time to make the adjustments of losing a loved one so suddenly. One has to do a lot of mental processing. My grandmother died at age 87 in 1976 and out of all my family members that are gone (including my parents), I still think about her the most.

 

One thing the Europeans are ahead of us on is passenger trains. I bet that would really be something to see over there. I have never been there, wanted to go when I was younger. I travelled a lot for work (4 state area around where we live), now that I'm retired I no longer want to travel since I don't have to.

Last edited by rtr12

I made that suggestion to slow down the eBay 555+4017 module for a traffic-light application.  Aren't you using this for the Knight-Rider where the lights advance more quickly?

 

I suggest you apply power to the module as-is and see if the LEDs advance at a suitable speed for what your want.  It appears that you have some speed adjustment with the on-board trimpot.

 

As for mods, for the Knight-Rider don't you want the lights sweeping back and forth?  To get this effect you probably need to add some diodes after the 4017 as shown in the schematics earlier in this thread.

Dear Stan

 

Never mind I goofed. I am building a new Knight Rider circuit from scratch based on rtr12 design. I tried the Chinese part and did not like the way it looked and worked.

 

Dear rtr12

 

Was the February 15, 2015 9:40 PM posting of the design the final out come or was there a final revision? I already ordered the parts I was missing from Digikey. I realy want to get this project going. As Gunrunnerjohn stated "stop designing and start build it" more or less.

 

I believe it is with one exception. The only other change that was made (I think) was making the 500k ohm pot a 10k ohm pot per GRJ's later suggestions. I fiddles with that a little more and came up with the 10k ohm pot being a smaller range that is probably all that would be needed. The 500k ohm pot will work, it is just a bit larger range than is actually needed as GRJ pointed out. It was also all I had at the time. I will post the revised schematic here.

 

I believe the traffic signal schematic is correct with stan2004's suggestion of the opto- coupler relay added. I will post my current schematic of that one also just in case. Since Stan's post and the schematic revision I ordered some of the opto-couplers, but I have not tried them with this circuit and crossing gates yet.

Attachments

Last edited by rtr12
Originally Posted by nvocc5:
I am building a new Knight Rider circuit from scratch based on rtr12 design. I tried the Chinese part and did not like the way it looked and worked.

 

Whatever works for you, but out of curiosity what about how it looks and works don't you like. 

 

In any event, not that anyone else on OGR has expressed interest but I see you can also buy an un-assembled kit. This makes it a lot easier to modify the circuit to perform the traffic-light or Knight-Rider circuits since you don't have to remove tiny surface-mount components...you just don't install them in the first place!

 

555 4017 ebay modules

Attachments

Images (1)
  • 555 4017 ebay modules

Dear Stan

 

The original item for $1.27 just did not work correctly and I just gave up. I did see the other that you are suggesting. But I do not have the knowledge base you have. I will also value your expert knowledge and wisdom on this topic. I will give the new design a try and see what happens.  Could you modify this design for traffic lights as well or do you suggest something else?

Add Reply

Post

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

×
×
×
×
Link copied to your clipboard.
×
×