Skip to content

Dual Channel Irrigation controller using Controllino (Arduino Mega + W5100 ethernet), MQTT and Home Assistant - Arduino platformIO

License

Notifications You must be signed in to change notification settings

genestealer/Controllino-Irrigation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Controllino-Irrigation

Controllino Powered Irrigation Controller

Matching Home Assistant Home Automation Hub Configuration

https://github.com/Genestealer/Home-Assistant-Configuration

Info

Richard Huish 2017-2020

Controllino Maxi Ethernet based with local home-assistant.io GUI, relay/digital output for dual irrigation control via MQTT.

MQTT command message with 'on' payload command one of the outputs on.

MQTT command message with 'off' payload command one of the outputs off.

Note: My code is based on my other ESP8266 based projects, so there are may be some ESP nameing used.

Screen shots of Home Assistant interface

Diagram

Diagram

Copy of code header (may be out of date, see code for latest)

GUI: Locally hosted home assistant on network https://www.home-assistant.io/

MQTT: Locally hosted broker on network https://mosquitto.org/

OTA updates: Not supported by default by the ATmega without flashing with custom bootloader and I have not done this.


The circuit:

Controllino Maxi - ATmega 2560-16AU with W5100 ethernet 

https://www.controllino.com/product/controllino-maxi/

CONTROLLINO customized bootloaders https://github.com/CONTROLLINO-PLC/CONTROLLINO_Library/tree/master/Bootloaders/MAXI

W5100 ethernet (Built-In)

12V PoE Active splitter Adapter, to power Controllino

12V Electric Solenoid Valve for Water

Flyback diode: Vishay 50V 1A, Diode, 2-Pin DO-204AL 1N4001-E3/54

Inputs:

Analog Capacitive Soil Moisture Sensor V1.2 https://www.aliexpress.com/item/32832538686

Outputs:

CONTROLLINO_SCREW_TERMINAL_DIGITAL_OUT_10 (2 Amp output) - 1st water valve

CONTROLLINO_SCREW_TERMINAL_DIGITAL_OUT_11 (2 Amp output) - 2nd water valve

(Note: Use could use the relays to switch higher voltages or have galvanic isolation)

Multiple on-board LEDS tos how MQTT connection, ethernet connection, status, etc    Notes:

Example Bill Of Materials:

Edits made to the PlatformIO Project Configuration File:

build_flags = -DMQTT_MAX_PACKET_SIZE=512

Overide max JSON size, until libary is updated to inclde this option knolleary/pubsubclient#110 (comment)

About

Dual Channel Irrigation controller using Controllino (Arduino Mega + W5100 ethernet), MQTT and Home Assistant - Arduino platformIO

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages