Skip to content

Smart accident detection with STM32F4, Bluetooth, and LCD for instant alerts.

License

Notifications You must be signed in to change notification settings

SanjaiPG/stm32-rf-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STM32 RF Link

This project demonstrates a simple accident detection and notification system using STM32F4 microcontrollers. It consists of two main modules:

  • Master: Detects button presses, toggles an LED, and beeps a buzzer.
  • Slave: Detects an accident signal, displays a message on an I2C LCD, and sends a notification via Bluetooth (HC-05).

Features

  • Accident detection using GPIO input.
  • Visual notification on an I2C LCD display.
  • Wireless notification via Bluetooth HC-05 module.
  • Audible alert using a buzzer.
  • Simple master-slave communication logic.

Hardware Connections

Master (master.c)

  • Button input: PA0
  • LED output: PC13
  • Buzzer output: PB8

Slave (slave.c)

  • Accident input: PA1
  • LCD I2C: PB6 (SCL), PB7 (SDA)
  • Bluetooth HC-05: PA2 (TX), PA3 (RX)
  • Status LED: PC13

How It Works

  • Master: Toggles an LED and beeps the buzzer when the button is pressed.
  • Slave: When an accident is detected (PA1 high), it:
    • Turns ON the status LED (PC13).
    • Displays "Accident detected. EMERGENCY" on the LCD.
    • Sends "Accident detected. EMERGENCY" to the HC-05 Bluetooth module.

Usage

  1. Connect the hardware as described above.
  2. Flash master.c to one STM32F4 board and slave.c to another.
  3. Power both boards.
  4. Press the button on the master to simulate an event.
  5. The slave will display and send the accident message when triggered.

Software Used

Modules Used

Schematic Diagram

Master

Project Screenshot

Slave

Project Screenshot

About

Smart accident detection with STM32F4, Bluetooth, and LCD for instant alerts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages