Posts

Showing posts with the label wemos

Comparison between temperature and humidity sensor types

Image
I've been running a Wemos D1 mini in a Frankenstein-like configuration over the past few weeks, with the aim of testing a few different temperature and humidity sensors. I've been trialling the following sensor types: DHT22 DHT11 BME280 SHT30 The breadboard with the sensors looks like this: You can see some graphs of a recent sample of readings from Grafana here: I'm actually a bit disappointed with how much variation there is between these sensors. Overall, I'm more confident in the readings from the DHT22 sensors, based on comparisons with some other temperature sensors I have in the house. The BME280 and SHT30 don't appear to be as accurate as I had hoped. The DHT11 is doing a reasonable job at the temperature readings, but the humidity is probably over-reading.

PIR Sensor with Wemos D1 Mini and Tasmota

Image
I ordered a couple of these AM312 PIR sensors from Banggood recently, to test using them in a multi-function sensor with Tasmota . There is some good information on configuring Tasmota with these sensors , and the manual can be found here . You can see an image of the sensor below, along with pin assignments. Thanks to the creator of this image; unfortunately I can't find the original source to offer credit, but am happy to do so if you reach out to me! These PIR modules simply behave as a switch. To experiment, I've simply connected the OUT pin to D2 (GPIO4) on a Wemos D1 Mini module, and have configured the LED on D4 (GPIO2) on the Wemos to turn on when the PIR sensor is triggered, as a visual indicator. You can see the setup on a small breadboard here. The configuration is Tasmota is here. Note that the LED is on D4 (GPIO2) but needs to be pulled high to turn the LED off, and pulled low to turn the LED on. Hence, the need to invert the signal using RelayX...