Skip to content

Instantly share code, notes, and snippets.

@RideLikeTheWind
RideLikeTheWind / arduino_bluetooth_connection.ino
Created December 2, 2019 21:34 — forked from geoom/arduino_bluetooth_connection.ino
Arduino bluetooth connection by python script on Mac OS X (yosemite)
// first make "pairing" with HC-06 devise
// view devises list by running 'ls /dev/tty.* in terminal, you can see /dev/tty.HC-06-DevB on the list
// then go to arduino editor, and choose your devise bluetooth under the 'Tools > Serial port' menu
// Now open the serial monitor (Tools > Serial monitor).
// You should notice that the red led of the bluetooth module has stopped blinking. That means we are connected!
// Now when you send a “1” the led on the pin 13 should turn ON, and if you send a “0” it should turn off.
void setup() {
// initialize serial: