I'm trying to create an Arduino bluetooth remote that can connect with my Mac (and potentially other devices) and basically transmit a few distinct signals back and forth at the push of a button (or Arduino pushbutton). I want to create a remote to control a web app I've built, basically a controller for a game.
I have an Arduino Uno Rev3 starter kit, an RN-42 bluetooth module & a 1sheeld from Google Play, and a Macbook Pro.
Could anyone suggest good guides or online tutorials that can help me set up the communication from Arduino to my computer? Or does anyone have experience with this and would be able to give me some tips?
It's relatively straightforward.
bind the arduino bluetooth to your mac bluetooth.
use Serial.* print commands. Normally these go to your computer via USB, but if you have the Bluetooth connected it will go over the Bluetooth connection.
the default baud rate of most bluetooth devices is 9600 baud.
So, develop your code the same way as if you were connected via Serial over USB, and it will work without change when you attach the Bluetooth.
Note: Typically USB and Bluetooth will use the same pins, so you can only use one or the other, not both at the same time.