Lack enclosure smart system

Easy to manage "smart" system for Lack enclosure. Contains LED lightning, temperature & humidity sensor and exhaust fan
6
28
0
670
updated October 22, 2024

Description

PDF

My “smart” system for Lack enclosure contains:

  • power module - has 3 power switches (for LED lightning, microcontroller and PWM fan)
  • the “brain” module - fits NodeMCU v2, OLED screen and AHT21 sensor

Things you'll need:

  • NodeMCU v2 (with CP2102 interface)
  • 0.96" OLED display 128x64px (based on SSD1306)
  • AHT21 temperature & humidity sensor
  • LM2596 DC-DC Step Down Converter
  • 3x 10x15mm power switches
  • DC socket female 5.5mm 2.1mm
  • 12V power supply (output power you should count for your LED strips with some reserve for ESP etc.)
  • 12V LED strip
  • 12V PWM 4-pin fan (I used Arctic P12) - but make sure you use fan which at low PWM values has 0 RPM!
  • Few meters of copper wires (I used 0.75mm for 12V line and smaller ones for 5V, 3.3V and data) - measure how long cables from power section to sensor section you need
  • one at least 2kΩ resistor 
  • 4x M2x3mm, 4x M2x4mm, 1x M2.5x4mm, 2x 2.5x3mm screws
  • 4 x 25mm screws
  • some soldiering skills and lots of patience ;)

Print settings:

  • Both boxes require supports (preferably tree supports as normal ones are hard to remove, with 7mm brim for better adhesion)
  • 50% infill
  • Ironing for covers

 

Assembly:

Firstly soldier everything (3x power stitches, 1x dc socket, 1x LM2596) in power section (U4, U5, U6, U7, U8 on schematics). Wires from 2 switches (for fan [U6] and LED [U5]) as well as wires from LM2596 [U4] should go through a small hole at the top and have about 1.5m length (but measure for yourself!). You can run this 5 wires as you wish and run them through small hole at top left back corner in enclosure (the STL for that piece you can find in my enclosure model - you can use your own as well). Next you can soldier everything in the sensor section as it is at the schematics. The data pins in the ESP should be as it it shown, but 3.3V and GND lines you can soldier as it is easy for you (3.3V is 3.3V no matter which one, same with GND). Be careful as the space is quite tightly designed!

 

Flashing the firmware:

  1. Install CP2102 drivers if you're using windows (macos and linux should work without this step). 
  2. Download NodeMCU PyFlasher from github (Releases · marcelstoer/nodemcu-pyflasher (github.com)).
  3. Download my firmware file (https://etherq.eu/firmware/firmware.bin).
  4. Plug in ESP with the MicroUSB port at the back to your computer.
  5. Run PyFlasher, select serial port and firmware [firmware.bin] file (rest options you can leave default) and Flash NodeMCU.
  6. ESP should reboot automatically. Disconnect it from computer and enjoy working system!

 

Once flashed it should work and automatically update itself from my website. If something goes wrong at some point you can just reflash it with above steps.

 

The fan shouldn't go off until temperature inside enclosure reaches 40 degrees Celsius.

I used the hole cutter to make some cool holes for my 120mm fan, you can use it if you have same size fan.

I bought everything from Aliexpress. If you have any questions or suggestions feel free to DM me!

 

Tags



Model origin

The author marked this model as their own original creation.

License