Forum >Wireless temperature sensor (LM35) with Bluno / Bluno Beetle
Bluno General Arduino

Wireless temperature sensor (LM35) with Bluno / Bluno Beetle

userHead davytam 2015-11-27 05:53:12 7162 Views5 Replies
Hi All,

I'm a very beginner on Arduino. Just would like to put a LM35 temperature sensor onto the Bluno Beetle, and link it to the Bluno, so that the Bluno can read the temp. info from Beetle and control the output.

I've both Bluno and Beetle on hand. Anyone could teach me how to do?

Many thanks.

Regards,
Davy
2015-12-02 02:04:52 Great! I am so glad it helped you!

Thanks for your feedback! Feel free to post here whatever you want! :)
userHeadPic Leff
2015-12-01 07:16:34 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.
userHeadPic davytam
2015-11-30 18:56:23 Hello there,

Sorry for the late reply! And welcome here, arduino is very easy to understand and play with! Enjoy it! ;)

There is some questions of yours:


In your second post:

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?

Yes, as you have see the LINK led was ON once you set them in this way and power on both.


2. Need to use "serial.print" at the Beetle with temperature sensor and "serial.read" AT command at the Bluno, right?

Yes, one of them use Serial.println(analogRead(0)) to send the data, another one use char incomingData = Serial.read(); to receive it.


3. Any good fixing method of LM35 onto the beetle other than soldering? Any screw type fixing recommended?

Soldering is the best reliable way to connect the wire firmly, except that you could also just twist the wire into the hole. Why not connect it to Bluno if possible? Then you can use Jumper Wire to connect them.


4. Any small battery which is capable to power up the beetle where it would be assigned as wearable device?

Sorry, I searched out our store that only the 7.4V lipo batteryis compatible , for Bluno beetle which requires 5-8V as power supply. But it's too big.



In your third post:

It read the value send from Beetle, but also itself. Why?


Sorry, I am not sure I understand your question, as long as you set the two BLE devices baud rate (by AT command) and code Serial.begin(***); to be the same, they can comunicate very well!
userHeadPic Leff
2015-11-30 07:25:05 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?
userHeadPic davytam
2015-11-29 03:45:57 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.
userHeadPic davytam