Skip to main content
Topic: Play Bluetooth with Arduino (Read 1945 times) previous topic - next topic

Play Bluetooth with Arduino

Play Bluetooth with Arduino

http://iteadstudio.com/produce/play-bluetooth-with-arduino/

Quote
First , put the BT shield stand on Arduino board – the BT shield has a serial port Bluetooth module (Slave) on it. The BT shield have 3 pins connect with Arduino board : State , RX and TX. With the State LED and State pin, we can get the connection status of the BT shield , when the Bluetooth serial port channel is not build , the State LED will alternating light and off , and if the serial port is opened , the State LED will be on. The State pin will be the same mode as the LED .

Quote
Here we make a example how to use the Arduino with the Bluetooth module to send data to PC.

In this code , we use the interrupt to check the State pin, if the state pin level from high to low , then we consider that the module still in the standby mode, so wait for connecting. If the State pin maintain more than one second of high level, we consider that the Bluetooth channel has build and we can sent the data to serial port.