Initial commit

This commit is contained in:
mia 2025-09-18 21:29:58 +02:00
commit 413821ffe9
17 changed files with 490 additions and 0 deletions

27
readme.md Normal file
View file

@ -0,0 +1,27 @@
# ESP Door detector
## Hardware used
- 2x ESP32-C3 Supermini
- 1x Red LED
- 1x White LED
- 1x Generich Reed Sensor
- Resistors:
- 2x about 75Ω, I used the closest I had which was a 220Ω in series with a 100Ω Resistor (using a singe 100Ω Resistor each might also work, tho at lower brightness)
## Software used
- VScode with PlatformIO
## Install / Usage
- You can change the used pins at the top of each `main.cpp`, the defaults are
- **Receiver**
- LED `4`
- **Transmitter/Sender**
- LED `0`
- Reed Sensor `4`
- Upload door-detector-sender to the ESP that will be installed a Door
- Upload door-detector-receiver to the ESP that will be your indicator (for example besides your monitor)
- Test if everything works correctly **BEFORE** soldering the components, I reccomend to use a Oszylloscope to check if the receiving ESP pulses at about 3Hz (300ms) on pin 4
- If everything works correctly, you can then start by twisting together one 220Ω and one 100Ω Resistor
- Now Solder one end of the Resistor-packs to the shorter leg of each LED, then solder the other end to the Ground pin (G) on the ESP
- Continue by soldering the other Leg of each LED to the specified Pin above
- At this State you should be able to plug both ESPs in and see each one shortly blinking at boot. After a few seconds, the Receiver's LED should start to blink at 3Hz. If not, check if each ESPnd for any shorts on the boards