I got an ArduinoBT the other day and finally broke it out of its box. EE is my absolute favorite topic … yeah right.
April 04, 2009
Got some communication going between the Arduino and the computer over Bluetooth.
- Connect Arduino to 5V power supply. I used my voltage regulator that I put together a little while ago.
- Open the Arduino 15 program that I downloaded from the Arduino site.
- Connect to the device via Bluetooth. Passcode is 12345.
- Click on Tools | Board | ArduinoBT
- Click on Tools | Serial Port | /dev/tty.ARDUINOBT-BluetoothSeri-1
- Upload a sketch to the Arduino. In my case, it was just an infinite loop that prints “Hello World” through the serial interface. Right before uploading, you have to push the little button on the Arduino. I’m not sure what that does but if you don’t do that, the program won’t upload to the board.
- Once uploaded, open a terminal.
- Issue the command: cat /dev/tty.ARDUINOBT-BluetoothSeri-1 9600 which will print the data to the screen.
- Issue the command: cat /dev/tty.ARDUINOBT-BluetoothSeri-1 9600 > Test.txt which will push the data to a file for logging.
Program
void setup() {
// open the serial port at 115200 bps:
Serial.begin(115200);
}
void loop() {
// print:
Serial.println("Hello World");
// delay 1000 milliseconds before the next reading:
delay(1000);
}
1 Response to “Arduino startup”