Jump to content

Traffic light ver2 on based pic 16f877A, can set time for leds via buttons system


minhrung

Recommended Posts

In previous versions Traffic light project can only function control LEDs and display count, can not set a time for each to be led by hand. In this version, we absolutely can set the time for the system via the button lights easily.

traffic-light-set-time.thumb.jpg.01fdc85

To understand this project faster, you can review the following basic project:

Basically this project like project "Simulation of traffic lights - Traffic light", but here there is a system update installed part time. Which means that, you absolutely can set the time for the easily led system through push buttons.

traffic-light-set-time-button.thumb.jpg.

  • Button (+): increase 1 function unit (number).
  • Button (-): function reduction unit (s)
  • Set Red Led: when you use the button (+), (-) to select the time and use this button to set the time for the red LED.
  • Set Yellow Led: set time for yellow LED.
  • Set Blue Led: set time for yellow LED.
  • Enter: the completion of the set time for the LED, press the Enter key to system operation.

When you want to reset the parameters when pressing button (Reset), at which the program will start from scratch and you can reinstall the time.

|| code C and simulation proteus file

Link to comment
Share on other sites

  • 5 years later...
On 11/12/2015 at 9:33 PM, minhrung said:

In previous versions Traffic light project can only function control LEDs and display count, can not set a time for each to be led by hand. In this version, we absolutely can set the time for the system via the button lights easily.

traffic-light-set-time.thumb.jpg.01fdc85

To understand this project faster, you can review the following basic project:

Basically this project like project "Simulation of traffic lights - Traffic light", but here there is a system update installed part time. Which means that, you absolutely can set the time for the easily led system through push buttons.

traffic-light-set-time-button.thumb.jpg.

  • Button (+): increase 1 function unit (number).
  • Button (-): function reduction unit (s)
  • Set Red Led: when you use the button (+), (-) to select the time and use this button to set the time for the red LED.
  • Set Yellow Led: set time for yellow LED.
  • Set Blue Led: set time for yellow LED.
  • Enter: the completion of the set time for the LED, press the Enter key to system operation.

When you want to reset the parameters when pressing button (Reset), at which the program will start from scratch and you can reinstall the time.

|| code C and simulation proteus file

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...