Bluetooth to arduino

Posted by user1833709 on Stack Overflow See other posts from Stack Overflow or by user1833709
Published on 2012-11-18T15:08:36Z Indexed on 2012/11/18 17:01 UTC
Read the original article Hit count: 201

Filed under:
|
|
|
|

My current project includes an Arduino Uno attached via USB to a laptop. The laptop is there is receive messages via bluetooth (I realize I could connect a bluetooth modem directly to the arduino but this project has to come in under budget). What I'd ideally like to do is write a program that continually checks whether the laptop has been paired to a bluetooth transmitter (my phone) and sends this to the arduino. Do you think should write a program that checks the bluetooth state and writes a 0 or 1 to a text document, and then use something like Gobetwino to read from the text document? I could probably figure out how to continually read from the file, but I don't know enough about bluetooth to know how to check whether it's paired or not, computer-side. Something that writes directly to the arduino instead of a text document would be my preference, but I don't know where to start. I'm using an Android phone and Windows 7. If you need more info about the setup, just ask. Does anyone have any experience with this?

© Stack Overflow or respective owner

Related posts about android

Related posts about Windows