Hardware setup - HomeKidd/ESP8266-HomeKit-Water-Leak-sensor-Elgato-Eve-Water-Guard GitHub Wiki
Since these projects are involve some soldering I highly recommend to buy a soldering iron before starting assemble it! Personally I'm using a 10$ one from Aliexpress, but since I have to solder SMD parts for the PCBs I've ordered a Soldering station like in the picture 😄
Soldering Iron
Soldering Station 1
Soldering Station 2
Hot Air Soldering Gun
USB TTL adapter
NodeMCU or Wemos D1 Mini
Jumper cables
Water Leak Sensing cable
Water Sensing Cable 1
Water Sensing Cable 2
-
Leak Sensor is connected to
GPIO12
andGND
. If you are using Wemos D1 mini,GPIO12 is D6
! -
Siren is connected to
GPIO14
andGND
. If you are using Wemos D1 mini, I2C pins areGPIO14 is D5
! -
Red LEDs are connected to
GPIO5
andGND
. -
This sensor also has an option for resetting to factory default. Long pressing for 10 seconds a button connected to
GPIO0 and GND
will reset the sensor!
I've designed a simple PCB for a 3D printable case. The design isn't the smallest one, but for reason: ESP8266 may heat up enough for distracting the DHT22's temperature measurement!
You can download the PCB Gerber files from here.
Prefix | Value | Package |
---|---|---|
R1 | 10K Ω | SMD 0805 |
R2 | 10K Ω | SMD 0805 |
R3 | 4.7K Ω | SMD 0805 |
R4 | 10K Ω | SMD 0805 |
R5 | 10K Ω | SMD 0805 |
C1 | 100nF | SMD 0805 |
C2 | 10uF | SMD 0805 |
C3 | 10uF | SMD 0805 |
C4 | 100nF | SMD 0805 |
C5 | 100nF | SMD 0805 |
D1 | SS14 | SOD123 |
U1 | AMS1117-3.3 | SOT223 |
Reset | Tactile 90 degree button | SMD 3x6x3.5mm |
Serial | 2.54mm 4P header | (optional) |
H1 | 5V power | old microUSB female cable |