Smart Green House V2 banner

Smart Green House V2

1 devlog
28m 1s

My second Version of the open greenHouse i built in my grandparents home, but now with PCB’s and Zero Rust

Salvador

In V1, the system failed too easily when sensors or cables degraded due to outdoor conditions. Hardware issues often caused total system failure.

For V2, the main goal is robustness and long-term maintainability.

I redesigned the firmware to be hardware-agnostic, separating the core logic (when to water, when to stop, how to fail safely) from the hardware-specific code.

The system is built around a simple state machine (IDLE, WATERING, ERROR) and uses a platform abstraction layer. This allows the same core logic to run on Arduino, bare microcontrollers on a custom PCB, or even as a PC simulation.

Before connecting any real sensors, I implemented a platform stub that simulates humidity readings and pump control. This makes it possible to fully test the logic without hardware and avoid repeating mistakes from V1.

Next steps include selecting the final microcontroller, designing the PCB around the firmware interface, and adding multi-zone watering and failsafes.

As it is the first Version of the code i’ve used AI to help me

Attachment
0