programming esp32-wrover with DHT22 (AM2302) humidity and temperature sensor

Referring to the original material at ESP32 with DHT11/DHT22 Temperature and Humidity Sensor using Arduino IDE | Random Nerd Tutorials

The reference is straight forward; however, it is not for the esp32-wrover.

Based on the from the reference, using educated guess without reading the specification, it is a hindsight that the original wiring will not work.

Original wiring on the breadboard for the ESP32-wrover, spoiler this is wrong for many reasons

It didn’t work, was getting the error “Failed to read from DHT sensor!” from the sample code.

DHTPIN were used is 4, which I had wrongly assumed it to be the physical pin number. Little did I know that, the reference is referring to GPIO4 instead of the physical pin number.

Based on the reference, ESP32-wrover spec sheet page 9, the physical pin 4 is the SENSOR_VP.

Continue reading

Preparing IoT projects for cheap

IoT starter kit using the ESP32-WROVER-IE

I had recently embarked on a small project inspired by ex-colleagues. One of the largest obstacles for a hobbyist is the cost of starting an IOT project.

The project was reignited after encouraging from a friend. I am amazed after learning from him that I can get an arduino with wifi and BLE; ESP32-wrover-ie . The primary appeal is the module cost MYR32 (at the time of the blog post). Its price will be able to allow hobbyist like me to create IoT that will act as a DAQ (Data AQuisition) device, that I can use the data to try out weather forecast modelling using BiLTSM; that will be another story hopefully in near future.

The customed model kit bundle are as following:

Continue reading