-
1Hardware Build
Step 1: Print enclosure, solder headers and DHT 22 sensor onto PCB, connect OLED screen and assemble sensor.
# Parts List
*3D printed enclosure (https://www.thingiverse.com/thing:2539897)
*OLED screen (http://amzn.to/2xR4iQP)
*NodeMCU breakout board (https://goo.gl/U2fY7y)
*NodeMCU ESP8266 dev board v0.9 (http://amzn.to/2hd6RJk) or 1.0 (http://amzn.to/2ymAkak).
*DHT-22 sensor (http://amzn.to/2ymmODK)
*headers (http://amzn.to/2fNe81C)
*solid hook-up wire, 22awg (https://amzn.to/2voliAb)
# Build Procedure
Initial Build
1. Print enclosure and cover
2. Solder left/right inner headers onto the OSHPark carrier board (15 pins each)
3. Solder DHT22 sensor onto board, with openings facing out
4. Stick NodeMCU board onto carrier board, USB connector facing opposite from DHT22
5. De-pin OLED screen (cut the black plastic holding pins together, remove pins one by one) <- alternatively, you can use breadboard wires (http://amzn.to/2fDGqeJ) with connectors on each end if you don't want to de-pin, but you'll have to bend the OLED screen pins to the side.
6. Cut seven (7) short (~2 inch) lengths of hook-up wire and strip on each end.
7. Connect/solder OLED screen to carrier board as follows:For SPI OLED:
Board Wire Color OLED 3v3 Red VCC Gnd Black Gnd D10 Orange Res D9 Gray DC D8 White CS D7 Yellow D1 D5 Brown D0 For I2C OLED:
Board Wire Color OLED 3v3 Red VCC Gnd Black Gnd D10 Blue SCL D9 Green SDA # Final Assembly:
1. Stick OLED screen onto mounting posts (ensuring the screen is within the enclosure opening) and use a soldering iron to melt the posts over it.
2. Put NodeMCU carrier board in, ensuring it fits snugly (DHT sensor is tightly within its opening, USB connector is visible)
3. Put enclosure cover on, and secure with small screws (or glue in place)
-
2Programming
Step 2: Program sensor with Arduino code, configuring Wifi/MQTT and other configuration settings.
-
3Configuration
Step 3: Test MQTT connection/data output, configure openHAB for sensor data input and charting, and calibrate sensor to HVAC thermostat.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.