tsumaru720
Posts: 2
Joined: Mon Jul 09, 2018 12:24 pm

Wireless temp sensors

Mon Jul 09, 2018 12:31 pm

Hi All

Looking for a bit of help/advice. I've got a Pi Zero and a couple of DS18B20 1-wire temp sensors connected up in parallel and its working great.

Ultimately I want to split off the temperature sensors and have them running wirelessly somehow connecting to the pi. I might be being naive but I was hoping i could provide the sensor some power (battery pack/mains with suitable parts) and hook the data wire into something that'd transmit wirelessly - essentially replacing the wire with something wireless. I believe the signal is digital, so i was hoping for something simple to just squirt the signal from a transmitter to a reciever.

Ideally I want to keep multiple sensors for this too, so like have 3 or 4 dotted around, available wirelessly to my pi to poll as if they were locally connected.

Does anyone have any experience with this kind of thing?

Thanks

MarkDH102
Posts: 265
Joined: Fri Feb 13, 2015 3:18 pm

Re: Wireless temp sensors

Mon Jul 09, 2018 12:52 pm

Check out this thread :

viewtopic.php?f=63&t=182721&p=1162961#p1162961


My system consists of a MASTER pi0w connected to a small serial LCD (240*320 pixels) and to an ATMEGA 328 microcontroller via 2 I/O lines (and power).
The microcontroller is connected to a BME280 and a RFM12B wireless chip.
The whole lot is powered off a normal Pi 5V PSU.
I then have 4 other little ATMEGA328 veroboard (home brew) running on its internal 8MHz crystal with RFM12B and BME280 all powered by 2 * 1.5V AA 2500mAh batteries. They transmit every 15m and the batteries last over a year (20uA in sleep). My maximum transmission distance is 75m (down the garden in the Summerhouse).

User avatar
DougieLawson
Posts: 33352
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Wireless temp sensors

Mon Jul 09, 2018 2:44 pm

Wemos.
http://www.esp8266learning.com/wemos-mi ... xample.php

You, easily, can get a Wemos publishing MQTT messages on your WiFi network that are brokered by Mosquitto, RabbitMQ or HiveMQ running on your Raspberry. Anyone who needs the data subscribes to the MQTT topic.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

tsumaru720
Posts: 2
Joined: Mon Jul 09, 2018 12:24 pm

Re: Wireless temp sensors

Tue Jul 10, 2018 10:26 am

DougieLawson wrote:
Mon Jul 09, 2018 2:44 pm
Wemos.
http://www.esp8266learning.com/wemos-mi ... xample.php

You, easily, can get a Wemos publishing MQTT messages on your WiFi network that are brokered by Mosquitto, RabbitMQ or HiveMQ running on your Raspberry. Anyone who needs the data subscribes to the MQTT topic.
Thanks for that, the wmos looks interesting - can you give any more info on how to actually use it? It looks to basically act as a 1wire to serial converter? In your example, how do you get it connected to wifi and pushing data somewhere?

Thanks

User avatar
DougieLawson
Posts: 33352
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Wireless temp sensors

Wed Jul 11, 2018 4:11 pm

It can work as a 1-wire to WiFi connector. If you run an MQTT publisher on the Wemos it's easy to capture those published messages on any other IoT device (as a MQTT subscriber).
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

Return to “Automation, sensing and robotics”

Who is online

Users browsing this forum: No registered users and 5 guests