Müller Spray Controll with motor valves

Added Section Controll to an Müller Spray Controll S terminal with an ESP32 connected to AOG via Wifi / UDP. The sprayer is equiped with five sections and motor valves. This means the polarity of motor must be changed. Therefore ten relais were added in terminal box. The signals for orignal sections LEDs have cut on original pcb and connected after added relais, so they do Show the real state. Also added an switch for Auto/Manual mode. This switch also powers relais only in Auto mode, by interrupting GND. Manual section switch feedback is returned to ESP. Code is based on MTZ8302. Only smaller adjustments were made (some negations).

One line was added, avoiding “double turn Off = On” when using manual switch in Auto mode.
last lines in relay.ino should look like this:

for (byte i = 0; i < SCSet.SectNum; i++)
{
if (bitRead(RelayOUT[0], i) == LOW) {
//add for mueller teminal: if switched of by hardware switch → turn relais on, or it would be double off → on!
if ((AutoSWVal) && (SectSWVal[i] == LOW)){digitalWrite(SCSet.Relay_PIN[i], HIGH);}
else
{digitalWrite(SCSet.Relay_PIN[i], LOW);}
}
else {
digitalWrite(SCSet.Relay_PIN[i], HIGH);
}

202003081426081000

20200308_151619 20200308_151641 20200308_151528 20200308_151552 20200308_151504

Video:

5 Likes

I like what you have done with this sprayer control. Is it possible you can post the code you are running? I am working on a switch box for a sprayer as well but am having trouble with it communicating with AOG

Here is some code you might be able to use.
https://github.com/SK21/AOG/tree/master/Version400/RateControl/RateControlNano

2 Likes

Modified original post.

Good morning. Does anyone have photos from this thread?