ESP8266 Home Sensor

£12.99
VAT included

ESP8266 Home Sensor module is a wireless ESP2866 (ESP-07) based microcontroller development board which includes a DHT22 temperature and humidity sensor, an LDR light level sensor and a PIR motion detector. Its array of sensors makes it great for monitoring the environmental conditions and occupancy of a room wirelessly.

 

As of 22/05/24 this module is now shipped pre-flased with ESPHome firmware:

Quantity

Description.png


ESP8266 Home Sensor module is a wireless ESP2866 (ESP-07) based microcontroller development board which includes a DHT22 temperature and humidity sensor, an LDR light level sensor and a PIR motion detector. Its array of sensors makes it great for monitoring the environmental conditions and occupancy of a room wirelessly.


As of 22/05/24 this module is now shipped pre-flased with ESPHome firmware:


Home Assistant Compatible -
Although ESP home sensor is fully programmable via its serial interface (requires additional USB adaptor) it comes pre-flashed with custom ESPHome firmware. This means that out-of-the box it is compatible with the home automation system Home Assistant. Simply connect power to the module and use a mobile phone to connect it to your WiFi network via its captive portal page - no programming required.

For a step by step guide please see our blog post here: https://blog.hobbycomponents.com/?p=1256


Home assistant example control panel:

Image



Compatible with the Arduino IDE -
Being ESP8266 based it is compatible with the Arduino IDE (via board manager) and we have provided a simple library with example sketches to interface to the on-board sensors making developing your own sketches as straightforward as possible.

Alternatively the module is compatible with existing Arduino/ESP/MQTT libraries and also off-the-shelf firmware such as Tasmota or ESPHome allowing it to be integrated with home automation software like Home Assistant.
 


Features:

Image



Specifications:

Product code:		
HCDVBD0045
Supply voltage:	
5V (or 3.3V via reg bypass mod - see below) via + & - solder pads or 5V & GND serial header pins
Current consumption (deep sleep):		
2mA (inc module LED)
Current consumption (modem sleep):	
21.5mA
Current consumption (connected to WiFi network):	
215mA peek / ~72mA idle
Interfaces:
+ & - power solder pads, serial programming interface (5V tolerant), program mode button
ESP8266 type: 
ESP-07 
ESP8266 clock:
80MHz
ESP8266 Flash:
8Mbit
ESP8266 Transmit power:
802.11b: 16±2 dBm (11Mbps)
802.11g: 14±2 dBm (54Mbps)
802.11n: 13±2 dBm (HT20, MCS7)
Temperature sensor range:	
-40 to 80oC
Temperature sensor resolution:
0.1oC
Humidity sensor range:
0 to 100 %RH
Humidity sensor resolution:
0.1 %RH
LDR sensor range:
0V = 100%, 1V = Dark
PIR Trigger on time:
~4 seconds
PIR Sensor angle:
100 degree cone
Sensor range:
~3 to 5 metres
Dimensions (LxWxH):
68.8mm x 22.4mm x 18mm


Programming the ESP Home Sensor

To interface this module to your PC you will need an additional USB to serial interface adapter. The serial interface is compatible with both 3.3V and 5V TTL adapters:

https://hobbycomponents.com/usb-interface/586-ch340-usb-to-ttl-serial-adaptor
https://hobbycomponents.com/usb-interface/41-ftdi-usb-serial-port-adapter
https://hobbycomponents.com/usb-interface/396-usb-to-uart-serial-interface-module-adaptor


Image

Connect the USB to serial adapter to the module's serial interface as shown above.

To put the module into programming mode hold down the program button (see image above) whilst plugging the USB adapter into your computer.

After uploading your sketch the module can be put back into run mode by removing and re-inserting the USB adapter or by cycling the module's power.

 


Basic sensor example:

This sketch uses the HCHomeSensor Arduino library to read the sensors and output their states to the serial monitor

  1. #include "ESPHomeSensor.h"
  2.  
  3. // Create an instance of the ESHomeSensor library
  4. ESPHS ESPHS;
  5.  
  6. void setup()
  7. {
  8.   Serial.begin(115200);
  9.  
  10.   // Initialise the library
  11.   ESPHS.init(EN_PIR_INTERRUPT);
  12. }
  13.  
  14.  
  15. void loop()
  16. {
  17.   // Perform a read of the DHT22 (temp & hum)
  18.   if(ESPHS.DHTRead())
  19.   {
  20.     Serial.print((float)ESPHS.DHTTemp() / 10);
  21.     Serial.print(" : ");
  22.     Serial.println((float)ESPHS.DHTHum() / 10);
  23.   }
  24.  
  25.   // Read the LDR level
  26.   Serial.println(ESPHS.LDRRead());
  27.  
  28.   // Read the current PIR state and how many times it has been triggered
  29.   Serial.println(ESPHS.PIRRead());
  30.   Serial.println(ESPHS.PIRTrigs());
  31.  
  32.   delay(2000);
  33. }

3D Printer Case:

ImageImage
Case not supplied with development board

For customers with a 3D printer we have uploaded a custom case to Thingyverse which can be printed out on a standard 3D printer. You can find the STL files here:

https://www.thingiverse.com/thing:6027205

 


Downloads:

For more information including Arduino setup instructions, library, and sketches please see the product forum post here

 

HCDVBD0045
9 Items

Specific References

13 other products in the category