Shop OBEX P1 Docs P2 Docs Learn Events
Traffic signal control — Parallax Forums

Traffic signal control

rinnerinne Posts: 1
edited 2007-03-30 14:40 in BASIC Stamp
I am working on a demand based traffic signal. I have not used this processor before. I would like to progam for a major North South traffic flow and a minor East West traffic flow. I am using a switch to advise whether there is a car waiting at the East West light. Any Ideas?

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-03-30 02:18
    Go for it. The stamp need to look for the switch and do what you want when it sees it. Write some code and test it. As a traffic light it can set in the loop until a time runs out or the switch change is sensed

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-03-30 14:40
    Traffic light simulation was one of the first things we did in our microcontroller class in college. I have to admit that I was impressed by some of the cool concepts students came up with to improve traffic flow. You definitely should start with a flow chart. It will help you break down functional blocks for the code. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.