Electronics Forums

Electronics Forums > Electronics Forums > Electronics Homework Help > Problems with Logic: Smart people needed

Reply
Thread Tools Display Modes

Problems with Logic: Smart people needed

 
 
Junior Member
Join Date: Feb 2012
Posts: 2
 
      02-09-2012, 09:46 AM
Hello all

I am currently working on an A-level project for my coursework but I am having problems with the logic gate part of my circuit, my teacher suggested asking on an electronics forum. So I Signed up

I am working on a traffic light controled junction, thus far I am using a 555 Astable (you gotta love these things) and a 4510b to produce a sequence. I then need to convert that sequence (using Logic gates) into colours; there are two traffic lights that I want to work in unison.

The sequence stages and the needed colours are as follows:
From left to right (Left being Q1 on the chip, to Q2, Q4 and finally Q8)
Code Colour 1 Colour 2
1000 / Green / Red
0100 / Green / Red
1100 / Green / Red
0010 / Green / Red
1010 / Amber / Red
0110 / Red / Red+Amber
1110 / Red / Green
0001 / Red / Green
1001 / Red / Amber
0000 / Red+Amber / Red


So my problem is getting the colours in this sequence, I am wondering how you would use logic gates to do this? Or even if there are other ways you would do it?
Many thanks
The Chirurgeon
 

Last edited by Chirurgeon; 02-09-2012 at 09:48 AM..
Reply With Quote
 
 
 
 
Senior Member
Raven Luni's Avatar
Join Date: Oct 2011
Location: Scotland
Posts: 201
 
      02-09-2012, 10:27 AM
Greetings,

Interesting way of doing it. My first question would be do you have access to a wider range of components or are those the ones you have to work with?

I'm hesitant to say too much as the coursework is a test of your abilities afterall, but here are a few ideas for you:

- You have a number of reduntant counts. You only need 6. This makes using logic gates much simpler, and you just make the 6 (ie. the 7th count) reset the counter. In addition to controlling the outputs, the logic gates could also be used to pull up or ground different combinations of resistors and capacitors to change the timing of your 555 - so one count for each output state and each has its own timing

To get your head round that, a logic 0 can be considered a path to ground (this can also sometimes be undesirable so take care and use diodes where necessary)
 

 
There must be a relationship between zombies and work. One eats your brain, the other eats your soul.

Last edited by Raven Luni; 02-09-2012 at 10:41 AM..
Reply With Quote
 
Super Moderator
(*steve*)'s Avatar
Join Date: Jan 2010
Location: Mid way between Beijing and the the Ronne Ice Shelf (mind your projection) ...and don't call me Sir!
Posts: 7,330
Send a message via Skype™ to (*steve*)
 
      02-09-2012, 12:14 PM
There's 10 separate states. I'd be looking at a 4017.

If I wanted to alter the timing for each step, I might use a diode and resistor from each 4017 output to inject more current into the 555's timing capacitor.
 
Reply With Quote
 
Senior Member
Join Date: Jan 2011
Location: Derbyshire. UK
Posts: 917
 
      02-09-2012, 01:11 PM
The 4017 Johnson counter is the way to go.
I constructed a sequencer to drive one light using the 4017. The different timing was achieved by using more than one output for each colour.
You may be interested in the circuit.
Attached Thumbnails
Problems with Logic: Smart people needed-sequencer.png  
 
Reply With Quote
 
Junior Member
Join Date: Feb 2012
Posts: 2
 
      02-10-2012, 09:31 AM
Thank you for all of your help with this, I really appreciate it

Quote:
Originally Posted by Raven Luni View Post
My first question would be do you have access to a wider range of components or are those the ones you have to work with?
I have access to a wide range of components, the department will even order things in if they don't have it.

Thank you for suggesting the 4017 as well, I am looking into that as we speak (I think I used it once before)
Also Thankyou for that circuit diagram, I think i see some bits I could use
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Part Needed for APC Smart-UPS SUA1500 Chris F. Electronic Repair 0 05-22-2011 07:03 PM
Re: Ladder Logic help needed Frank Buss Electronic Design 3 03-05-2009 04:55 AM
Re: Ladder Logic help needed Rich Grise Electronic Design 1 02-28-2009 10:18 PM
X-logic L28 MP3/WMA installation problems RMD Hobby Electronics 0 01-19-2005 03:11 AM
Now that smart people talk monitoring.. P A U L Security Alarms 25 10-14-2003 07:08 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98