/Car-Black-Box.X

This project logs critical vehical events such as gear shifts with current speed, time of event, Collision. The system is designed to provide transport managers with valuable insights into vehicle performance and driving behavior.

Primary LanguageC

Video Walkthrough

For a complete walkthrough of how the Car Black Box project works, including its functionality, interface, and event logging capabilities, check out the video linked below:

video.mp4

This video provides a detailed demonstration of the system in action, showing how to:

  • Navigate through the main menu

  • View, clear, and download logs

  • Set the system time

  • Change the password

  • Capture real-time events and access them securely.

    Car Black Box

Abstract

In today's fast-paced world, many drivers often ignore traffic rules and regulations in their rush to reach their destinations. To address this issue, we propose implementing a Car Black Box that logs critical activities and events related to vehicle usage. This system aims to track how a vehicle is handled, enhancing accountability and efficiency.

The Car Black Box will monitor vital parameters such as gear shifts, current speed, time , Collision. It also provides password-based access for transport managers to view or download logs to a PC as needed.

Requirements

Default Screen

  • Operation Mode: Displays current time, vehicle speed, and the latest occurred event.

Login Screen

  • User Interaction:
    • Access via UP or DOWN keys prompts for a password.
    • Password consists of 4 key presses, represented as "*" symbols.
    • Incorrect entries prompt re-entry (maximum 3 attempts every 15 minutes).
    • Incomplete key presses (3-second pause) revert to the Default Screen.

Main Menu

  • Options:
    • View Log
    • Clear Log
    • Download Log
    • Reset Time
    • Change Password
  • Navigation:
    • UP/DOWN keys for selection.
    • Long press of UP Key enters the selected menu.
    • Long press of DOWN Key logs out.
    • Idle for over 5 seconds logs out.

View Log

  • Display:
    • Shows all captured events with an index, event signature, event time, and speed.
    • Scrolling with UP and DOWN keys.
    • The system captures events in real-time even while viewing logs.
    • Long press of UP Key returns to the main menu; long press of DOWN Key logs out.

Clear Log

  • Clears logged data stored in the external EEPROM.

Download Log

  • Downloads logs to a connected PC.

Change Password

  • Prompts the user to enter a new password and confirm it.
  • Updates the password in EEPROM if the entries match.

Set Time

  • Displays current time with the seconds field blinking for changes.
  • UP Key increments time; DOWN Key selects the field.
  • Long press of UP Key returns to the main menu.

Event Capture

  • Captures and stores required events in real time.
  • Event format: "EVENT SIGNATURE" "EVENT TIME" "SPEED AT THE EVENT".

Prerequisites

  • Embedded C programming
  • I2C protocols

Level

  • Medium

Design

  • Detailed design documents can be found in the docs folder.

Source

  • The code is located in the src folder.

Sample Output

  • Sample output demonstrating functionality is available in the output folder.

References

Contributing

Contributions are welcome! Please read the CONTRIBUTING.md for guidelines on how to contribute.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.