On here you'll find ALL the code used in my smart system. Everything has been hand crafted for my needs so if you use this code, please remember to edit names etc for your use case.
Each device, iteration of code and layout is seperated and linked back to the original post. I will try to keep it all looking tidy and if you see anything wrong that could help me - please let me know!
Main Relay Control - Embedded ESP8266 8 Way Relay
Water System Control - Embedded ESP8266 8 Way Relay
Roof Light Control - Embedded ESP8266 8 Way Relay
Heating System Control - Embedded ESP32 8 Way Relay
Fan Controller - Custom design circuit - Header to 8 Way Solid State Relay
Electric Panel - Custom design circuit - Header to 4 Way Relay (Isolated due to van wiring connection)
Sensor PUKs - Custom design circuit - Custom 3D printed PUK
Batteries (x4) - Custom design circuit - UART connection to BMS
Victron - UART connection direct to ESP8266
Cab Door Security - Completely custom security lock - distance sensor, temp sensor and rfid access!!
NOTES -
This section of the site is set permanently as a dark background to make the code easier to read and differentiate.
Any parts of the code that would need to be modified will be set in YELLOW!