Skip to content

This turn signal system is designed to control the indicators of a vehicle using a microcontroller. It utilizes LED lights to represent left and right turn signals. The system incorporates a button interface to activate or deactivate the signals, and it features a blinking functionality.

Notifications You must be signed in to change notification settings

Dzenit110/Turn-Signal-System-Simulation-for-a-Car-PIC16F877A

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Turn-Signal-System-Simulation-for-a-Car-PIC16F877A

This turn signal system is designed to control the indicators of a vehicle using a microcontroller. It utilizes LED lights to represent left and right turn signals, allowing for clear communication of directional intentions to other drivers. The system incorporates a button interface to activate or deactivate the signals, and it features a blinking functionality that adheres to standard signaling protocols. The microcontroller continuously monitors the button states and manages the timing of the LED blinks to ensure visibility and safety on the road.

Features

  • Microcontroller interface for controlling LEDs based on input from PORTA.
  • LED control based on switch-case logic for different input states (0-6).
  • Macro function to handle specific LED blinking patterns.
  • Infinite loop for continuous input monitoring.

Code Explanation

  • Initialization: Sets up ADC and interrupt settings.
  • LED Control: Turns on or blinks LEDs based on input.
  • Delay Handling: Uses delay_ms() for visual confirmation of state changes.

Usage

  1. Connect LEDs to PORTB of the microcontroller.
  2. Input values can be provided to PORTA.
  3. The program will react according to the defined logic.

User Interface Examples

zmg1
Figure 1: Display when blinking left (Simulation of the front and rear turn signals on the car left)



zmg2
Figure 2: Display when we want to activate all four turn signals (Simulation)


🧰 Languages & Tools

About

This turn signal system is designed to control the indicators of a vehicle using a microcontroller. It utilizes LED lights to represent left and right turn signals. The system incorporates a button interface to activate or deactivate the signals, and it features a blinking functionality.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published