Go to file
Eduard Iten a77298b3a6 Implement VND7050AJ supply voltage reading function
- Added devicetree overlay for VND7050AJ with GPIO and ADC configuration
- Created custom devicetree binding for VND7050AJ valve controller
- Implemented valve_get_supply_voltage() function with proper pin control:
  - RST=HIGH to enable VND7050AJ
  - S0=1, S1=1 for supply voltage sensing mode
  - SEN=1 to enable MULTISENSE output
  - ADC reading on PA0 (ADC1_IN1) with 12-bit resolution
- Fixed supply voltage calculation (VCC/8 per datasheet)
- Added comprehensive debug logging for all steps
- Tested and verified ADC functionality
- Current reading: 5.1V (may be limited by hardware power supply)

Files modified:
- software/lib/valve/valve.c: Main implementation
- software/apps/slave_node/boards/weact_stm32g431_core.overlay: DT config
- software/apps/slave_node/dts/bindings/vnd7050aj-valve-controller.yaml: DT binding
- software/apps/slave_node/src/main.c: Test code
- software/apps/slave_node/prj.conf: ADC driver enablement
2025-07-04 08:54:47 +02:00
.vscode feat(refactor): Restructure project for improved modularity and clarity 2025-07-03 16:58:43 +02:00
docs feat(modbus): Add supply voltage register and display in tool 2025-07-03 18:47:48 +02:00
hardware Hardware updated 2025-06-30 13:52:33 +02:00
software Implement VND7050AJ supply voltage reading function 2025-07-04 08:54:47 +02:00
.gemini_commit_message.txt fix(valve): Correct VND7050AJ initialization and pin configuration 2025-07-03 19:04:20 +02:00
.gitignore added gitignore to ignore build dirs 2025-06-13 07:48:18 +02:00
README.de.md docs: replace svg logo with png version 2025-07-02 09:22:37 +02:00
README.es.md docs: replace svg logo with png version 2025-07-02 09:22:37 +02:00
README.fr.md docs: replace svg logo with png version 2025-07-02 09:22:37 +02:00
README.md docs: replace svg logo with png version 2025-07-02 09:22:37 +02:00

README.md

Logo

🇩🇪 Deutsch | 🇬🇧 English | 🇫🇷 Français | 🇪🇸 Español

Modular Irrigation System

This project implements a smart, modular irrigation system controlled via Home Assistant.

Documentation

The detailed documentation can be found in the docs/ directory:

  • Concept: Describes the system architecture, the components used, and the basic design decisions.
  • MODBUS Registers: Defines the register map for communication with the slave nodes.
  • Project Plan: Contains the development and implementation plan.

Quick Start

  • Hardware: The KiCad files for the hardware are located in the hardware/ directory.
  • Software: The Zephyr-based firmware for the slave nodes is located in the software/ directory.