Hi.
I have two bluetooth modules. One master and one slave.
I've managed to get them paired but i don't know how i can test them.
Any one have a simple code that will read an analog pin on a arduino uno, and then sends the value over serial and write it to a servo?
Do you have any suggestions on how to get this to work then? I want the uno to send values to an arduino mega. Do both of the bluetooth devices need to be master?
Do both of the bluetooth devices need to be master?
For some reason, when I read your post, I was thinking that you said something about the bluetooth devices being USB devices. The Arduino is a USB slave, and only talks to USB Master/USB Host devices. Since you were not talking about USB devices, feel free to ignore me.
[quote author=James C4S link=topic=136592.msg1026306#msg1026306 date=1355067832]
What type of profile are the modules programmed to use?
Not sure if i know what you mean. Profile?
[/quote]
Bluetooth is a generic protocol with many "Profiles" that run in the application layer. For example, serial devices have the "Serial Profile" while Audio devices may be a HID (headset) or use A2DP.
You have to know what the device is programmed to act like to know how to use it.
Not all bluetooth devices are interchangeable because of their application specific profiles.
Bluetooth is a generic protocol with many "Profiles" that run in the application layer. For example, serial devices have the "Serial Profile" while Audio devices may be a HID (headset) or use A2DP.
You have to know what the device is programmed to act like to know how to use it.
Not all bluetooth devices are interchangeable because of their application specific profiles.
[/quote]
Ahh, yes ofcourse. No i understand your question. Yes they are both for serial communication. I've managed to pair them to eachother but i need some example serial write/read code to uplode to both arduino's
Hi,
here: http://arduino.cc/forum/index.php/topic,104903.0.html
there's a collection of 3 base guides for using Bluetooth module (especially the low cost HC0*) with Arduino.
They are in italian, but schemes and codes are universal
pitusso:
Hi,
here: http://arduino.cc/forum/index.php/topic,104903.0.html
there's a collection of 3 base guides for using Bluetooth module (especially the low cost HC0*) with Arduino.
They are in italian, but schemes and codes are universal
Hi, thanks for the link, but I only need some serial write/read example code. As I said earlyer iv'e managed to pair the bluetooth modules and the setup is correct.
Now I only need some code to upload to two arduinos so send serial commands between them