• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Sonoff basic r2

Q&A Forum › Category: Home Automation › Sonoff basic r2
0 Vote Up Vote Down
Larry asked 1 year ago

Is ther a way to monitor temperature using a Sonoff R2 ? What i would like to do is measure temperature and then turn o or off at a given temperature. Example, like a furnace but not using this way, turn on AC at 140 deg  and off at 90 deg

Question Tags: Sonoff
11 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
What chip does your sonoff have?
You can try to create something based on this project: https://randomnerdtutorials.com/esp32-esp8266-thermostat-web-server/
Regards,
Sara

0 Vote Up Vote Down
Larry answered 1 year ago

Esp8285 is the chip id , I have installed Tasmota , so I can access it mobile. 

0 Vote Up Vote Down
Larry answered 1 year ago

Esp8285 is the chip id , I have installed Tasmota , so I can access it mobile. 

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi Larry.
Unfortunately, I don’t have any experience with the ESP8285 chip and I don’t have any tutorials about it.
I’m sorry that I can’t help much on this subject.
Regards,
Sara

0 Vote Up Vote Down
Larry answered 1 year ago

I know if I remove relay I can access GPIO 12 I think and GPIO 2 or 3 is rx , Gpio14 I would have to solder to the chip . But it would be me just hacking and was hoping you had more information .

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

We only have information for this old version of sonoff with ESP8266: https://randomnerdtutorials.com/reprogram-sonoff-smart-switch-with-web-server/
Regards,
Sara

0 Vote Up Vote Down
Larry answered 1 year ago

Thank you, I guess I will hack away a bit. I think I will have to use a 4.7k resistor on Io2 for the DHT11 to read. I tried it on the rx , got nan for reading. 

0 Vote Up Vote Down
Larry answered 1 year ago

Sara;
     The issue of adding a DHT 11 to a Sonoff was pretty simple when I gave it more thought. The sensor required 3.3v and ground, the source pin I attached a wire to the bottom of the board to breakout GPIO2 and connected it to the DHT11. I also flashed the Sonoff with Tasmota  and in configuration I found my ver of Sonoff in my case it was Sonoff Basic (1) , used the pull down box on the GPIO I selected and there it has 2 different call out to DHT11 . I used DHT11 the other not tested is DHT 11_0. Thanks for your support and helpful advice. 

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Ok.
So, is everything working as expected now?
Regards,
Sara

0 Vote Up Vote Down
Larry answered 1 year ago

Well I was able to read temperature quite easily, but unfortunately I couldn’t find a way to make it switch the relay on and off. Too bad , I have been trying to figure out a way to monitor and turn the fan motor on and off at specific temperatures. My wood stove currently use a snap limit switch which is very inaccurate. The switch hysteresis maybe the culprit and that’s why I am attempting this. Problem is it blows cod air. 
 

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Unfortunately, we don’t have any examples for it with Tasmota.
But, I’m sure there should be some examples out there.
https://tasmota.github.io/docs/Thermostat/#configuration-for-standalone-application-or-bypass-of-existing-wall-thermostat (not sure if this is compatible with yours)
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.