-
You Reply: Thanks Leff.
I've made some changes and it is working now.
1. The central and peripheral now exchanged. The beetle with sensor now assigned as central, and the Bluno as peripheral. In the previous setting, when I try to read the Serial.print using the serial monitor for the receiver (i.e. Bluno), all both the serial.print from beetle and bluno itself will be shown. And also, uploading sketch to Bluno will affect the beetle as well. The exchanged setting is much better.
2. Serial.print() is sending character, not value. I found out finally and use Serial.write() instead.
3. Add delay() for sending / reading data.
Now, it is working fine. Many thanks.
-
You Reply: I've set the Bluno as Central, Beetle as Peripheral. They connected with "link" led on for both units.
The Beetle has uploaded a sketch with serial.print(analogRead(A0)) into the loop.
The Bluno has serial.read() in a sketch when serial.available() true. It read the value send from Beetle, but also itself. Why?
-
You Reply: I've search through the forum and found that:-
1. Need to assign one for Central (master) and the other as Peripheral (slave). So, in my case, which mode for the Beetle with temperature sensor? Central or Peripheral ? and why?
2. Need to use "serial.print" at the Beetle with temperature sensor and "serial.read" AT command at the Bluno, right?
3. Any good fixing method of LM35 onto the beetle other than soldering? Any screw type fixing recommended?
4. Any small battery which is capable to power up the beetle where it would be assigned as wearable device?
Many thanks for all of your help.