- Arduino Leonardo
- USB Bluetooth Dongle 4.0
- direct-current motor
sudo apt-get install bluez bluez-tools
hciconfig
hcitool scan
bluez-simple-agent xx:xx:xx:xx:xx # the bluetooth device you want to pair
In /etc/bluetooth/rfcomm.conf:
rfcomm 0 {
bind no;
device xx:xx:xx:xx:xx;
channel 1;
comment "Serial Port";
}
sudo rfcomm0 connect 0