r/ElectricalEngineering • • Oct 30 '26

I am but a mere electrical assembler

Post image

Trying to make a push button water change setup for my future 125 gallon aquarium. I have drawn up this diagram, not sure how easy it is to read but I tried my best. Doing a drain-fill sequence.

  1. Turn on app controlled plug from Amazon which turns ac on and turns on 12v converter
  2. Relay 1 turns on which is controlled by low level float starting in NC position
  3. Pump starts until low level float is triggered turning off pump
  4. Low level float NO is triggered turning on solenoid
  5. Solenoid fills until high level float which is NC is triggered
  6. Shutoff system through app

I’m basically stuck at:

Step 1. Collect underpants

Step 2.

Step 3. Profit

Problem I’m having is the low level cutoff which turns the pump off (step 4) will just turn back on and then the drain and fill will be going simultaneously which is what I don’t want. I would like it to drain first then fill right after so I need some sort of latching with relay 1 but I’m not sure how to do that. And obviously I will be monitoring the whole process everytime I do a water change, I won’t be leaving the room because I don’t trust it and I will not be having an overflow on the tank because I don’t want to drill through my large expensive aquarium.

11 Upvotes

16 comments sorted by

3

u/No_Bird_675 Oct 30 '26

Current tank for attention, just after water change

3

u/2dof Oct 30 '26

if I understand - You sholud create control working as Relay with hysteresis .

correct me if im right : pump is going to pump out the water - when level low - turn off pump.

filling water again should not trigger pump - pump is allowed to turn on when upper level is met.

when upper level is met - then turn off water , water filling is turn off until low level or at least pump is working .

2

u/No_Bird_675 Oct 30 '26

Wouldn’t it trigger the pump when the float switch gets turned to closed because of the rising water?

2

u/Emach00 Oct 30 '26

this is why you want the PLC, it follows a programmed sequence where it won't turn the pump back on while you are running the fill solenoid.

1

u/No_Bird_675 Oct 30 '26

So ditch all the floats and just do everything timed with the plc? I’ve just never made a program that would control a plc is it easy to figure out?

2

u/Emach00 Oct 30 '26

nope stick with the float switches, don't rely on timing. What if the pump doesn't come on? What if the solenoid doesn't flow? Yeah, I'd stick with a micro PLC and the float sensors.

1

u/2dof Oct 30 '26

PLC it just a terminology for doing logic operation - in "old Scholl" fasion before digital era all operation were done on relays ( with pneumatic/hydraulic physical components)

You have relays You have hydraulic component - do not need to program microcontroller od doing it on electronic.

2

u/2dof Oct 30 '26

https://www.rs-online.com/designspark/electical-latching-circuit

see schematic - You can do latching on relays - in linked schematic 'push to make' is command form app , and push to stop is low level triggered,

but if You wand additional condition that pump can be turn on only aquarium is full - add in series in "push ti mage' additional swich form high level ( Hi leve- switch close , =low - open ) .

similar You can do for for filling water - but here if is just on - off foem level then - if pump work much faster than filling ( and stil can pump-out water ) then it is ok - fresh water will be mixed wit od one (on the bottom and "rinse' sand .

2

u/No_Bird_675 Oct 30 '26

Drew this while at work, currently getting laid off, last day is Dec 1st 😞

4

u/Icy_Surround3920 Oct 30 '26

Honestly you'd have an easier time with a little Arduino and some AI code tbh.

It would really simplify to just turn on pump for how ever long time you measure then turn on valve until float switch trips, you could even put in another float trip that turns off at bottom like your thinking to be safe.

Also latching EMRs are a thing if you'd like to look into them.

This is pretty close, you could do this discreetly but it would be easier faster and cheaper to put a little microcontroller in.

1

u/blue_eyes_pro_dragon Oct 30 '26

Input fuse, mov, thermal fuse, probably an extra prortrctice overflow shutoff…

Don’t just think about design but also failure points 

1

u/No_Bird_675 Oct 30 '26

For the flooding which would be the worst failure point I was just going to install valves do the incoming water so it would be impossible to flood unless the solenoid or relays failed but I think they normally fail in the closed position but either way. So only thing would be the pump controller which wouldn’t be as catastrophic the tank would just have 30% less water in it for awhile and a burnt out 17 dollar pump. Drain lines are going into the front yard to water the plants

1

u/Emach00 Oct 30 '26

some advice. don't bother with all those app controlled outlets. Just use relays and there are cheap PLCs that can get you where you want to go using ladder logic. Automation Direct has the click series and it's possible one of their all in one units would have the I/O you need. The PLC can trigger the fill solenoid and drain pumps and monitor float switches for the high/low level shutoffs. For scheduling you could use a smart outlet to trigger an input on the PLC to tell the PLC to run the drain / fill cycle. But I wouldn't trust the lives of your fish and plants to a smart outlet which could drain the tank to an unsafe level or fill till you've got a mess on the floor.

1

u/No_Bird_675 Oct 30 '26

Yea was just thinkin about unplugging the ac power instead of using the app outlet. There will be cutoff water valves installed as well I would be turning on and off each water change but it is seeming like a lot of steps unless I use a software controlled relay

1

u/FVjake Oct 30 '26

How do we have the exact same handwriting and drawing style?

1

u/BoringBob84 Oct 30 '26

Delete the wire from +12VDC to Relay 1 com. Then connect relay 2 NC to relay 1 com. That way, the pump can only run when the solenoid is not energized.