25
u/krtezek Jun 09 '21
Just out of curiousity, could you flip the adapter in the socket:
-see if this causes any noticeable difference to the sensor readings
If there is any heat coming from the electronics, it might tip the temp some fractions of a degree.
11
6
u/rseery Jun 09 '21
Lolz. I built a temp/pressure /humidity logger with an Arduino and a BME280. I had the sensor on a proto board wired to the Arduino and it was working well. I decided to make it a little neater by sticking the little proto board to the back of the Arduino board. Suddenly the temp is crazy high. Surprising heat from the back of the board!
4
u/AnyRandomDude789 Jun 10 '21
Also, the BME280 tends to suffer from self heating if you don't fix the reading mode to 1hz/weather station. ;)
2
u/rseery Jun 10 '21
Yes, I had read that as well. It’s a long-term display so I only hit it like once every 5 minutes or so.
2
u/AnyRandomDude789 Jun 10 '21
Did you set the config though? I'm not sure what most libraries default to.
2
u/rseery Jun 10 '21
I used Adafruit_BME280.h. The code hits the sensor, massages the data, plots the graph, waits 6 minutes and does it again.
5
u/5c044 Jun 10 '21
Heat travels along the wires in my experience. can calibrate in code though. Indoors it's a small temperature range a simple offset may be acceptable. Those sensors are not that accurate anyway so calibration will improve accuracy regardless.
Using deep sleep between readings helps a lot. For esp01 some fine soldering is needed to connect gpios required for wake I think
With bme280 and others with humidity the humidity may be off too as temp is used for humidity.
2
u/krtezek Jun 10 '21
Well, my old engineering prof demonstrated that you can detect the heat rising from a hand held below the sensor, using a 1-wire sensor and reading the uncalibrated data.
The sensors can detect very miniscule fluctuations of temperature, and it's basically up to the protocol (and internal adc accuracy) to be able to extract that out.
2
Jun 10 '21
This is how I work around that issue. I deep sleep and then take a reading on wake up. I considered writing polling code for the ULP on the ESP32, but found that taking the reading the instant it wakes up was sufficient and did not require assembly code!
Initially I was connecting to wifi and such before taking the reading and the few seconds it took were definitely enough to throw off the temp/humidity readings when trying to pack them close.
3
u/big_red__man Jun 09 '21
I don't think that sensor is accurate to fractions of a degree
3
u/matty_lean Jun 10 '21
I was surprised about the quality of these sensors when I read Robert‘s home experiment report(s): https://www.kandrsmith.org/RJS/Misc/Hygrometers/calib_many.html
Or maybe I should say: I wouldn’t be surprised if the board produces more than a tenth of a degree heat.
2
u/derpickson Jun 09 '21
DHT22 technical document states that it has an accuracy of +/- 0.5 Celcius which I doubt would cause it to detect a change based on its orientation near the other electronics (to an extent).
3
u/dgriffith Jun 10 '21
Is that accuracy or precision?
Because if it's accuracy and not precision, it might very well be able to reliably and repeatably detect a 0.1 C change in temperature, just with a consistent offset to the actual temperature.
So with an accuracy of 0.5 deg C, it might report a change of 20.0 to 20.1 when the actual temperature changes from 20.5 to 20.6.
11
u/Congenital_Optimizer Jun 09 '21
That's some mighty fine dead bug work there. Going to epoxy it or mount it some how?
6
u/cheats_py Jun 09 '21
I was thinking about 3D printing a case for it but I have been looking into the epoxy options as well. Would look aesthetically better!
2
u/bobsyourson Jun 09 '21
Gotta 3d print a housing for this bad boy .. or hack a container from the container store
2
u/cheats_py Jun 09 '21
Yup, I wana make the design a little better first, maybe all in line or something. I do have a 3D printer so that was my idea all along but I do like the epoxy idea as well.
3
u/haemakatus Jun 09 '21
+2 for functional
-1 for aesthetics
1
u/cheats_py Jun 09 '21
Lol I wasn’t really trying to make is very aesthetically pleasing, I wanted a proof of concept and it worked! This is my first dead bug style project, I’m making another sensor and will be taking design into consideration as I do want it to look dope!
1
u/AnyRandomDude789 Jun 10 '21
Where did you source the copper for the wires/solid interconnects?
2
u/cheats_py Jun 10 '21
A spare coaxial cable that I had to chop the tip off of cause I couldn’t get it out of the wall plate LOL. It’s 18awg tho so a little to big, I’d rather have 20.
1
u/AnyRandomDude789 Jun 10 '21
American wire guage confuses me. It's the wrong way up! Bigger is smaller?!
2
6
3
u/seewhaticare Jun 10 '21
You don't have kids or pets.
1
u/cheats_py Jun 10 '21
Jokes on you, I have a couple large breed dogs! The picture makes this look massive but it’s not. My second version is gona have more design consideration.
1
u/BigPingLowIQ Jun 09 '21
How much did it cost?
1
u/cheats_py Jun 09 '21
Maybe like 3-5$, I bought all parts bulk. The most expensive part is the esp module.
1
u/BigPingLowIQ Jun 09 '21
That's really cheap, I could buy the parts in bulk to make one for each room in my house. I have wanted to do this for a while.
1
1
u/remag75 Jun 09 '21
Can you lick it for science?
3
u/cheats_py Jun 09 '21
Already did LOL, Well kinda, it was unplugged and I wanted to see if any of the components were hot and due to the lack of sensitivity on your hands I couldn’t feel much so I decided to use my lip lol. The esp gets a tiny bit warm.
2
1
u/mrded Jun 09 '21
It won’t work as it will get hot from the usb power. (Speaking from experience)
1
u/cheats_py Jun 10 '21
But nothing gets hot…. Regardless I can use a cord also to give it some distance from the power supply.
1
u/987warthug Jun 10 '21
Nice but have you tried to rotate the ESP board 180 degrees so that it doesn't stick out as far?
1
u/cheats_py Jun 10 '21
I was thinking about that but I wasn’t sure how much space I was gona need between the power source, plus having it this way just lined up so perfectly with the voltage regulator and temp sensor for power, ground, and gpio
3
u/kornerz Jun 10 '21
Here's my implementation of the same concept: https://i.imgur.com/bbJeRqI.png
Server room environment monitor, DHT22 temp/humidity + wet floor sensor. Sends data straight to Zabbix monitoring system.
3
u/dex206 Jun 10 '21
I love how all of our homebrew IOT builds look like mad sci-fi gear. It's so aesthetically pleasing.
3
u/NoTearsOnlySmellz Jun 10 '21
Now repeat after me: "Function over form! Function over form! Function over form!"
1
u/myths_dark1 Jun 09 '21
Schematics please
3
u/cheats_py Jun 09 '21
If you Google “esp8266 temperature sensor” you will get lots of tutorials. For this I used the wiring example for the adafruit tutorial: https://learn.adafruit.com/esp8266-temperature-slash-humidity-webserver
2
2
1
u/No-Living-7927 Jun 10 '21
Mine is a little bit more. https://www.dropbox.com/s/030bwh2kehbh72f/20210610_094412.jpg?dl=0
2
1
Jun 09 '21
[removed] — view removed comment
2
1
u/AnyRandomDude789 Jun 10 '21
What's the benefits of tasmota over Arduino code and libraries?
I've also heard of the H4plugins firmware which is waaay faster in booting and attaining WiFi/IP than the standard firmware with Arduino/tasmota
2
Jun 10 '21
[removed] — view removed comment
1
u/AnyRandomDude789 Jun 10 '21
How do you customise what libraries it uses for sensors etc?
1
16
u/cheats_py Jun 09 '21
I made an ESP-01 temperature sensor. It sends data to my MQTT broker which posts the data to my internal site. The idea is to have one inside and one outside that will also trigger some colored LEDs depending on the temp. This will help me visualize if I should open up the windows to cool off the house. I also want to take up Freeform/Dead Bug circuit design as a hobby so this was my very first attempt. You may ask why I soldered to the top of the esp module and that’s so Its still easily programmable! Let me know what you folks think.
Parts:
ESP-01s
DHT22 temp&humidity sensor
USB type A Male breakout
LD33V 3.3 V regulator
10k resistor