SonOff basic WiFi module testing DS18B20 Tasmota V514

462 views
Skip to first unread message

pete c

unread,
Jun 21, 2018, 2:43:28 PM6/21/18
to sonof...@googlegroups.com
Here making my SonOff basic WiFi module a combo garage door open close, button, temperature sensor and PIR sensor device using Mosquitto.

I cut the 120VAC going to the relay and using the relay for a button.

I have added terminal posts for VCC (2), Ground (2), GPIO 1, 3, 4 and 14.  I used the traces for the RF module for the extra VCC and Ground.

Button, door open (GPIO 1), door closed (GPIO 2) work fine.

Testing one DS18B20 connecting it to either GPIO 4 or GPIO 14 with one 10k resistor between VCC and DQ.

My temperature values are way off.  Tested with a few DS18B20s,  (here also have two Node Reds / OWFS / MQTT doing two 1-wire networks).

This is using the sonoff bin version 5.14

Program Version 5.14.0
Build Date & Time 2018-05-15T15:29:54
Core/SDK Version 2_3_0/1.5.3(aec24ac9)

Console shows:
DS18B20 Temperature 38°F
6:35:40 MQT: GarageDoor1/SENSOR = {"Time":"2018-06-21T16:35:40","DS18B20":{"Temperature":38},"TempUnit":"F"}

Inside home testing and actual temperature is around 70 °F

On a lark uploaded the sonoff-tasmota sonoff-allsensors.bin to the Sonoff basic wifi device I see a good value for temperature.

DS18S20 Temperature 71°F
16:41:19 MQT: GarageDoor1/SENSOR = {"Time":"2018-06-21T16:41:19","DS18S20":{"Temperature":71},"TempUnit":"F"}

Wondering if anyone else is using V5.14 of the Sonoff -Tamota firmware and a DS18S20 1-wire sensor and if it is working correctly for you?

sonoffMods-1.jpg
Message has been deleted

Philip Knowles

unread,
Jun 22, 2018, 12:01:18 AM6/22/18
to pete c, SonoffUsers

I have several Sonoffs using 5.14 (using allsensor and 'normal' - allsensor is supposed to be for multiple DS18B20s). All work perfectly but I'm measuring in C. It may be a coincidence but your measurement is 32 degrees out - I'm wondering if it's doing the divide by 5 multiply by 9 but forgetting to add 32. Try using C units and see if you are getting around 21C. The transmission to the Sonoff is digital in C so it must be the calculation which is incorrect - Theo will fix it if you raise as an issue


On Jun 21, 2018 7:50 PM, "pete c" <pcal...@gmail.com> wrote:
Here are pictures of my hardware modifications:


--
You received this message because you are subscribed to the Google Groups "SonoffUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/sonoffusers.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/8fe7e74b-b95c-4683-9489-29b775220d59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pete c

unread,
Jun 22, 2018, 12:45:00 AM6/22/18
to SonoffUsers
Thank you Philip,

Yup at setting of C degrees it shows 3.7 degrees C.

Using the allsensors does work. 


Philip Knowles

unread,
Jun 22, 2018, 1:07:50 AM6/22/18
to pete c, SonoffUsers

Interesting that's 38F. On a TH10 I couldn't get allsensors to work correctly with only one DS18B20 but it's fine for the one with 5. That temperature isn't a default error temp. I presume it changes if you hold it in your hand? I would have used a 4k7 resistor but I can't see that having any effect. Might be worth trying classic.bin.
Just been on github and Theo now on V6 so might ne busy in next few days updating 14 Sonoff/ESP-01s


--
You received this message because you are subscribed to the Google Groups "SonoffUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/sonoffusers.

pete c

unread,
Jun 23, 2018, 12:29:21 PM6/23/18
to sonof...@googlegroups.com
Fixed.

Using a modded version of the SonOff Basic Wifi module bin.  It is now a mixture of the 5.13 and new 6.XX stuff slowing moving to the 6.XX version.



Program Version    5.9.13c
Build Date & Time    2018-06-22T22:27:54

Originally modded the SonOff basic Wifi module cutting out the 120VAC going to the relay switch to make it a low voltage switch (button) and soldered on the GPIO4 wire such that it is a multi function device for the garage door.  It is hard wired to the GDO button, open door sensor, closed door sensor and now a 1-wire sensor.  Adding a tiny PIR to it this week.



Here been tinkering with 1-Wire stuff for a while such that I have AAG 1-wire temperature and combo sensors, Midon temperature and combo sensors, Hobby Boards temperature, temperature and humidity and temperature, humidity and light plus a bunch of Maxim DS18B20 sensors.

Tested with one AAG and one Midon temperature sensor board and then the two of them connected.

08:03:20 MQT: GarageDoor/SENSOR = {"Time":"2018-06-23T08:03:20", "Switch1":"On", "Switch2":"On", "DS18x20":{"DS1":{"Type":"DS18S20", "Address":"10A04713000800D9", "Temperature":71.7}, "DS2":{"Type":"DS18S20", "Address":"10A52F47000800CB", "Temperature":71.7}}, "TempUnit":"F"}

DS18S20-1 Temperature 71.8°F
DS18S20-2 Temperature 71.7°F

08:11:29 MQT: GarageDoor/SENSOR = {"Time":"2018-06-23T08:11:29", "Switch1":"On", "Switch2":"On", "DS18x20":{"DS1":{"Type":"DS18S20", "Address":"10A52F47000800CB", "Temperature":75.2}}, "TempUnit":"F"}

DS18S20-1 Temperature 73.4°F

-pete


GarageDoor.jpg
Reply all
Reply to author
Forward
0 new messages