Hi guys ,
i have two arduinoes connected via Bluetooth the first one( master) has a six temperature sensors and i want to send the reads of the sensors to the second arduino (slave) i need the code to send reads and receive reads via a bluetooth
Hi guys ,
i have two arduinoes connected via Bluetooth the first one( master) has a six temperature sensors and i want to send the reads of the sensors to the second arduino (slave) i need the code to send reads and receive reads via a bluetooth
google it you will find many code/sketches just altered it according your need
It doesn't matter which is master and which is slave. The code is essentially serial.print and serial.read like any other serial, and bluetooth is immaterial. This means you may not even need bluetooth to test your programme, the serial monitor would suffice. The real work is in getting the two bluetooth devices to connect, which is all about bluetooth configuration rather than Arduino code..
http://www.martyncurrey.com/arduino-to-arduino-by-bluetooth/#more-2922
Nick_Pyner:
It doesn't matter which is master and which is slave. The code is essentially serial.print and serial.read like any other serial, and bluetooth is immaterial. This means you may not even need bluetooth to test your programme, the serial monitor would suffice. The real work is in getting the two bluetooth devices to connect, which is all about bluetooth configuration rather than Arduino code..Arduino to Arduino by Bluetooth – Martyn Currey
Phillipe Cantin: HC-05 Bluetooth link with zero code
this is made for one sensor i need a code for six sensors or how to modify this code
Nonsense. The links I alluded to are about linking two bluetooth devices together and hence, although not necessarily, linking two arduinos. This has nothing to do with sensors, single or multiple, but it would handle either situation with no problems. As I said, this is amatter of configuration. Any references to data transmission are simply examples and, if you have more than one reading, you just need to repeat the process for the others.
If you need information about reading the six sensors, I suggest you start a new thread in the sensors forum. Being a bit more forthcoming about what sensors you want to use would be helpful.
Nick_Pyner:
Nonsense. The links I alluded to are about linking two bluetooth devices together and hence, although not necessarily, linking two arduinos. This has nothing to do with sensors, single or multiple, but it would handle either situation with no problems. As I said, this is amatter of configuration. Any references to data transmission are simply examples and, if you have more than one reading, you just need to repeat the process for the others.If you need information about reading the six sensors, I suggest you start a new thread in the sensors forum. Being a bit more forthcoming about what sensors you want to use would be helpful.
thanks man