Skip to content

alexemanuelol/Arduino_RaspberryPi_Bluetooth_Communication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino_Bluetooth_Communication

Bluetooth communication between two arduino uno/ nano

Door module

  • When connected to the raspberry pi via bluetooth, the raspberry pi will send "0x1" indicating that it want to start a connection
  • When Arduino Nano detects this event it will enter listen mode for the sensor and send "0x2" when the door opens, "0x3" when the door closes.
  • "0x4" can be sent from the raspberry pi to check if the bluetooth connection to the Arduino Nano is still present (Only when Arduino Nano is in "waitForConnectionEstablished" mode).
  • "0x4" can also be sent from the Arduino Nano to see if the connection is still present (This happens every 10 seconds).

Raspberry Pi Bluetooth Controller

Requirements

sudo apt-get install libbluetooth-dev
sudo apt-get install python-dev
sudo pip install PyBluez

HC-05 - Bluetooth Module

HC-05 - Bluetooth Module link

HC-05 Datasheet

Setup HC-05 for BT communication here.

Software for Breadboard design

Fritzing Electronic Design

About

Bluetooth communication between an Arduino and a Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published