• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Easyrelay trafficlights
#1
So I have to make this trafficlight thingy but I cannot seem to get it working correctly

There's 5 lights, 3 for the car-trafficlight (red green orange) and 2 for the trafficlight that shows if you can cross the road by foot

I have 2 parts which I need to combine but its not working Sad The car-part has to be:
5 sec red >> 5 sec green >> 3 sec orange >> back to red
now when there is someone crossing the road (when the light is green for him) then the car-trafficlight needs to stay red untill the foot-trafficlight goes back to red..

that probably sounds confusing but if someone can help me that would be great Big Grin

Here's the car-trafficlight part:
[Image: 51a89f3b9faa3-IMG_20130531_145509.jpg]

and the other part:
[Image: 51a89e93c5941-IMG_20130531_145500.jpg]

I'm not sure if it matters but the easyrelay is a Moeller 700 Series
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

  Reply
#2
Use this:
http://en.wikipedia.org/wiki/Karnaugh_map

For each light: 1x Green
1x Yllw
1x Red

you need one Karnaugh map.

Model your trafficlight cycle as a finit state maschine.
and then apply the Karnaugh map on it.
[Image: compiling.png][Image: aLKA8og_460sa.gif]
  Reply
#3
(05-31-2013, 23:59)Ich1994 Wrote: Use this:
http://en.wikipedia.org/wiki/Karnaugh_map

For each light: 1x Green
1x Yllw
1x Red

you need one Karnaugh map.

Model your trafficlight cycle as a finit state maschine.
and then apply the Karnaugh map on it.
I will give it a try, thanks!
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

  Reply
#4
(06-03-2013, 12:23)iAegle Wrote:
(05-31-2013, 23:59)Ich1994 Wrote: Use this:
http://en.wikipedia.org/wiki/Karnaugh_map

For each light: 1x Green
1x Yllw
1x Red

you need one Karnaugh map.

Model your trafficlight cycle as a finit state maschine.
and then apply the Karnaugh map on it.
I will give it a try, thanks!

If you need the solution PM me. Or i wont get an Notification e-mail Big Grin
[Image: compiling.png][Image: aLKA8og_460sa.gif]
  Reply
#5
The k-map idea was nice but to me it seems quite hard to convert to an actual program.. anyway, I did get it pretty much working Big Grin

the result if anyone cares:
[Image: oasqP.png]
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)