Mueller SprayControl section control

Use the invert relays option in the hyd lift config page.

Problem is the reading of the switches when spraying manual. No 12v applied to valve, so no 12v to optocoupler te read state of section. This is the problem I am dealing with.

Think I will manage without changing sketch. It is all about how to wire relays I see now.

Well you can change that by removing/adding an exclamation (!) Mark in the code… I would need to see the code to know where tho…

Is it possible to use this code with usb to create the conncetion with computer? I would like to skip the wi-fi part completely and run the esp trough usb. Or does it require editing the code?

So an update from this project. I am stuck… Connection to AOG is working. What I have done so far is I figgered out how the valves open and close. Give 12 volt on the togglepin switch closes the valve. Apply gnd to the according valve wire to the rate computer closes valve in the computer so rate wil be adjusted.

The Main- and Auto switch are working. But I cannot wire everything together that both are working. I put a drawing of my wiring in later. Just draw it for 1 section. Problem is that when AOG switches section off in auto-mode optocoupler 1 is activated and the section is turned off like it does in manually mode. I mean that the section-bar down in the screen turns from green to red. Do I have to split the feed of the 2 optocouplers in seperate circuits and how can I do that?

I would appriciate some tips how to go on, my knowledge of electrics are just basic so I hope an reaction can bring me further.


Unfortunately it requires code modification, I write it WiFi based because of all the people finding USB unreliable compared to UDP

Let’s work in 2 phases, first we will try to make it work in manual and auto without taking care of the rate controller status. Your relay wiring, seems a bit strange. The relay output should only go to the sprayer valve and to the second optocoupler board that we will ignore for now.

Are your valves, reverse polarity? If yes, there should be 2 wires going to section 1 valve. If spraycomputer switch section 1 is on, there is +12v on wire1 and GND on wire2. If spraycomputer switch section 1 is off there is GND on wire1 and +12v on wire2. Is that correct?

If it is correct, you should get the signal from the spraycomputer switch section 1 wire1 (12v when open) and sent to optocoupler1.

You are too late! I had it working almost, but finally on the sprayer my spraycomputer began to flash ans so on. I stopped the project, it did cost me too much time. My valves were not polarity reversed (In fact they are, but there are micro relays on the valves who tace care of it) but 12v applied closes valve. The second optocoupler for ground to ratecontroller I could not get working properly, some send gnd and some did not. solved this by using relays to send gnd to rate. Maybe problems occurd from bad soldering on the toggle switches, don’t know. Have a video of the bench test. I was very exited thought it worked.
But took very very much time, and now I have other jobs to do. Maybe next jear I will try. Here a link to my video. Sign in to your account

I understand your frustration, I also spent more hours on that project that I expected at the beginning. Hundreds of hours! Based on your video, it seems that you have an good starting point yet.
However, I would proceed step by step.

  1. Read the signal from the spray computer (no relay connected, only optocoupler board that reads the signal and AOG displaying the working area.) It seems that you will have to edit the code, modify wiring so that it works with your spray computer scenario (12v = section off)
  2. Add the section relay (forget the rate controller for now) so that ESP32 controls the valves based on the signal from the spray computer switches (step 1) and from AOG in auto mode.
  3. Add the rate controller connection so that it can adjust rate. Wiring depends on how your rate controller get the signal, GND to rate controller pin? Probably no need for optocoupler, but just a relay to disconnect GND signal to rate controller.

Picked up the project again, think I will succeed. Thanks for your help above, I messed relays and rate up. Have to see them as seperated projects I understand now. Only thing I am struggeling with is the ESP32 connection. I use a router now for the ESP wifi signals. Sometimes connection looks lost and Agio pops up in the screen. RC keeps working, but constant Agio popping up is bad. How did you connect ESP to AOG?
Can it be done with wifi directly to phone or tablet?
Use a w5500 ethernet adapter for ESP?

Depending on your whole setup… I don’t use ethernet for autosteer/teensy. So I’m doing a hotspot on my phone and connect the computer and ESP to that WiFi hotspot. The computer and ESP are then on the same network and able to communicate. That’s it.

Tried that today. Was not working, how to set IP adresses tablet and ESP?

Use the esp32 hotspot and an external antenna. Works good. No dropped connections.

I connected ESP to my phone hotspot. But now I have problem with Agio. Subnets are different so I can steer or I can connect to machine, but not both at same time. Is there a solution for this?

You mean an extra ESP32 for hotspot?

I guess your autosteer module connects via ethernet, right? The problem is that, as far as I know, AOG doesn’t support 2 modules (autosteer and machine) to be in different subnet :confused:
So that become an IT problem since you need to figure out how to connect the ESP32, autosteer and computer in the same network. I’m not using autosteer so I’m not facing that issue. You could switch one of the module to USB or setup a home router that connects all together.

Use the same esp32 and create a hotspot. Connect the tablet to the esp32 hotspot. The tablet can still connect over ethernet to the steering module.

I am trying to create an hotspot on the esp32. But I do not know where to begin. I can put simple setup in sketch but then lots of errors, not compiling. Should I change the initwifi (zAOG_sc_comm) or where to begin? I am a noob in programming…

If you are using section control from Matthias (MTZ8302) it’s pretty easy:
after powerup, software will try to find Wifi clients, after timeout (approx. 60 sec) an ESP hotspot will created automatically!