Skip to content

A buzzer that sounds when a button is pushed in a different room. A way to let my wife, who is breastfeeding, wake me up to get the baby while in another room.

License

Notifications You must be signed in to change notification settings

Roco-scientist/Bluetooth_Maids_Buzzer

Repository files navigation

Bluetooth Maids Buzzer

Still a work in progress

Purpose

The puprose of this git repo is to create a bluetooth buzzer that sounds when a button is pressed in a different room. This will be done by connection two microcontrollers/raspberry pi with a bluetooth protocol, where when a button is pressed on one end it sends a signal through the bluetooth and a buzzer turns on at the other end.

  • Start with connecting a STM32F3DISCOVERY microcontroller to a Raspberry pi 0 W (I have both in hand)
  • Transfer to STM32F401 black pill microncontrollers after they arrive

Index

Requirements

  • Raspberry pi 0 w
  • STM32F3DISCOVERY
  • 2x STM32F401 black pill (likely overkill and will work with blue pill STM32F103)
  • 2x HC-05 bluetooth boards (1x HC-05 and 1x HC-06 will work too)
  • USB serial converter for programming HC-05: Available here
  • Momentary switch/button
  • Misc electronics; wires, soldering gun, resistors etc.
  • Working openocd and gdb-multiarch for flashing STM devices

Only two microcontrolles/raspberry pi's will be needed to get this to work

Setup

Bluetooth: HC-05 or HC-06 setup

Initial setup

  1. Connect HC-05 TX to RX of USB to serial device
  2. Connect HC-05 RX to TX of USB to serial device
  3. Connect HC-05 5v/gnd to USB to serial device
  4. Hold HC-05 button down then connect the USB to a computer device

If done correctly, the bluetooth will slowing blink once every two seconds. It is in AT mode

Connect to minicom
sudo minicom -D /dev/ttyUSB0 -b 38400
Within minicom each command needs an enter, then ctrl-j
Replace new_name and 0000 with your choice

Slave setup:
Change buad rate to 115200 with 1 stop bit and no parity. Set AT+ROLE=0. 0: slave, 1: master
Also take note of the address. This will be needed for the master
The adress may be missing leading 0's. should be ####:##:######

AT
AT+VERSION
AT+ADDR
AT+UART=115200,1,0
AT+NAME=new_name
AT+PSWD="0000"
AT+ROLE=0



Master Setup:
Change buad rate to 115200 with 1 stop bit and no parity. Set AT+ROLE=1. 0: slave, 1: master
Replace <slave_address> witht the address found, but replace the colons with commas

AT
AT+VERSION
AT+UART=115200,1,0
AT+NAME=new_name
AT+PSWD="0000"
AT+ROLE=1
AT+CMODE=0
AT+BIND=<slave_address>

About

A buzzer that sounds when a button is pushed in a different room. A way to let my wife, who is breastfeeding, wake me up to get the baby while in another room.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published