This is an ESP8266 NodeMCU V3 LoLin break-out PCB I've created for use with Home Assistant. I created this layout to allow for various functions; a garage door opener or retrofitting to a 'dumb' alarm system to integrate existing PIRs into your smart home setup.
The board will accept a +12VDC, 1A input via a 2.1MM centre positive jack. This voltage is regulated down to +5VDC via the onboard AMS1117-5.0 linear regulator to feed power to the two +5V relays and the NodeMCU V3.
The board also accommodates the following sensors:
DHT22 - Temperature and Humidity sensor
HC-SR04 - Ultrasonic distance sensor
Aside from the above, a LM339N is also available onboard and powered by the +12VDC input. This can be used to integrate your existing alarm system, to make use of the PIRs as binary sensors for motion detection without affecting the functionality of the original system. See here for more information.
Pin out as follows:
Pin | Function | Comment |
---|---|---|
D0 | N/A | Not used |
D1 | Z1 or DHT22 input | Only single input allowed |
D2 | Z2 or other input | Input/output |
D3 | Z3 or other input | Input/output |
D4 | Z4 or other input | Input/output |
D5 | HC-SR04 (Trig) | Ultrasonic distance sensor (if used) |
D6 | HC-SR04 (Echo) | Ultrasonic distance sensor (if used) |
D7 | Relay #1 | Relay #1 trigger |
D8 | Relay #2 | Relay #2 trigger |
See here for pin reference.
Integration to Home Assistant can be done using the esphomeyaml library.
This design was created using Eagle 7.3.