Hi i am new to the forum can someone give me some wiring and programing help to connect an IRF520 Mosfet switch and Arduino uno or any other smaller Arduino to activate the solenoid and the dumps for a a hydraulic system.
The green wire on the 3 prong switch connects to the solenoids, the white wire is the 24v wire that activates the solenoids from the 36v battery bank when the switch is pushed up or down the switch is spring loaded it returns back the center every time it is let go and the black wire connects to the dump the dump is there to return fluid back to the hydraulic pump and the solenoid is what activate the pump to raise the cylinders.
Already in the Hydraulic system a switch is connected to the 24v in the 36v battery bank the switch makes the Hydraulic system go up and down if you hit the switch up it activate the 3 solenoids to raise what ever the cylinders are connected to raise it up and if you hit the switch down it activate the dump to lower what ever is connected to the cylinders the dump return fluid back to the the pump tank if you hold momentary switch and rock it back and forth what ever is connected to cylinders and the goes up and down.
What I want to with the Arduino uno or Nano I would prefer to use the Arduino Nano because its smaller than the Arduino uno is if I don't want to rock the switch switch back and forth I can just push a button that makes it go back and forth for a few seconds or a minute then stop.
Essentially you want to replace the self centering toggle switch with mosfets controlled by a program that executes when a button is pressed?
What are the three 24v solenoids i/o connected to? They all turn on/off together?
You would need two MOSFETs and other components to replace the toggle switch controlling inductive loads.
What 24v device is the dump wire connected to?
More information saves having a guessing game as I personally don't know what the Hydraulic system involves.
A google search on the image:
This diagram illustrates a 36-volt system specifically designed for hydraulic pumps, often used in lowrider vehicles or heavy machinery.
The setup uses three 12-volt batteries connected in series to achieve a total voltage of 36V, creating distinct 12V, 24V, and 36V power points.
The pump receives high-voltage power (36V) for operation, while a separate "dump wire" (often 24V) is used to activate the hydraulic release valve.
Proper grounding is essential for this system, with the negative terminal of the first battery serving as the main ground point.
And an image search:
https://www.layitlow.com/threads/switch-wiring-q.184799/?utm_source=google&utm_medium=organic
Bit of search for the dump pump.
https://forceamerica.com/understanding-dump-pumps
@robotbuilder Thanks for your reply but I am not seeking a way to control the hydraulic system by replacing the center off toggle switch what I want to do is connect an Arduino to the switch panel already connected to the system so one push of a button using the Arduino can control the front and rear cylinders to go up and down for a few seconds or one minute.
The wire for the 3 solenoids is connected to the switch when the switch is pushed up there is a pole inside of the switch that makes a connection to the bottom side of the switch the wire from that pole of the switch goes to the solenoids and when the switch is pushed down the pole inside of the center off switch now moves up to that pole of the switch, the dump wire goes to that pole of the switch so the car can go down.
Switch pushed up pole goes down to activate the solenoids switch pushed down pole goes up inside of the center off toggle switch to activate the dump to make the car go down.
Again I want to do is connect an Arduino to the switch panel already connected to the system so one push of a button using the Arduino can control the front and rear cylinders to go up and down for a few seconds or one minute.
Ok it is to do with a car suspension system. Over the last 8 months I have been helping a friend renovate an old '70s car although unlike him I am not a car man myself. We often turned to ChatGPT for help. You might get better results then here as I notice a lack of responses to your query. Keep in mind AI can give you incorrect information with full confidence it knows what is doing!! This forum does not paste text diagrams very well but you will find chatGPT does. I would have to copy paste using the text icon for each example which I haven't time to do.
This is a copy paste of output when I copied your question to ChatGPT.
Good luck with your project 👍
OK thanks i check chatgbt to see if it can show me a picture of the Arduino with wires going to it are connected to the switches panel and also power for the Hydraulics switches run on 24v to activate the solenoids then higher volts like 36v to 48v or higher go to the out put of the solenoid also known as a relay to power up the motor.





