Skip to content

A basic example for setting up Bluetooth communication between a Raspberry Pi and an Arduino Nano using Node.

Notifications You must be signed in to change notification settings

logan-laughery/OctoFerm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BtPiDuino

A basic example for setting up Bluetooth communication between a Raspberry Pi and an Arduino Nano using Node.

Setup

Arduino

Hardware

Raspberry Pi

  • Various steps were taken to get the HC-06 module connecting to the Pi. It seems that setting up a pairing through Bluetoothctl was the most successful (https://bbs.archlinux.org/viewtopic.php?id=170359): $ sudo apt-get install bluez $ bluetoothctl --In bluetoothctl $ agent on $ default-agent $ scan on ...Wait $ pair ...Enter pin $ trust $ quit --bluetoothctl now exited $ sudo rfcomm connect hci0 --In another tty, run 'cat /dev/rfcomm0' and 'echo "test" > /dev/rfcomm0' --to verify bluetooth is working. The results should be output in the serial monitor --of Arduino IDE.
    --THE RFCOMM WILL NEED TO BE STOPPED TO ACCESS THE HC-06 USING Node

Bluetooth Connection With Node On Rasberry Pi

About

A basic example for setting up Bluetooth communication between a Raspberry Pi and an Arduino Nano using Node.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published