I wonder what the simplest solution to get the Tank and Sump float switches to have LEDs independently is.
I wonder what the simplest solution to get the Tank and Sump float switches to have LEDs independently is.
I wonder what the simplest solution to get the Tank and Sump float switches to have LEDs independently is.
Could do what household switches do: put the LED and resistor in parallel with the float switch. When the switch is closed the voltage across the LED is zero so it is out. When the switch opens the voltage appears across the LED and it lights up.
To the PCB and what tautech wrote, I don't think it's an awful design, far from it for a first timer.
Things that you should always consider when making PCB:
- What is the manufacturing method. Are you gonna use company (f.e. I use AllPCB even for my prototypes and with something that I am able to do within few hours myself. Just because of the lazynes and the quality vs. price/time spend)
- Are you going to solder it by hand or do you have something better.
- How are you gonna mount that board (you are missing mounting holes, which is good to have even if you don't use them later)
If you are making single sided PCB and you are planning to solder it by hand, you need bigger angular rings (around pins of each device). Those tiny ones are almost impossible to drill through and then solder without ripping them of the board. Drill sizes should be just enough to put those components thru, It will be hard to solder if you have too much space around the leg.
On the other hand, if the PCB is going to be double sided (even if you don't have anything but the pads on the other side), you can get away with tiny holes - because the solder is going to fill the space inside the pad. In this case, it's good to make those holes a bit bigger in diameter so you have space between the leg and plated hole.
If you would to use SMDs, there is a big difference in the footprints for different methods of assembly.
The problem with that is that his relay probably works with 20mA (or at least get into "weird" state). He would have to use low current LEDs.
I never called the design 'awful', instead saying that my mentor would do so and I can tell you that really makes you focus on creating a better layout and taking more attention to detail. I hope the OP can see this too.
Cool simulations
On the other hand, it would be much easier with the reversed polarity floaters (when the water level reaches max, they conduct):
http://tinyurl.com/ydcm9lj3
(the 100k should be something like 1M and 100n at least 100u, which will give you delay of about 2 minutes)
Why not use a double pole relay and put one pole in series with your float switches. Put a button in parallel with the whole switch chain. That will pull in and stay in when you press the button, and if either float switch opens up the relay drops out and stays dropped out. No transisors, no semiconductors. You could wire it such that the contact that drops out powers the led when the pump is inactive.
Things that you should always consider when making PCB:
- Sage PCB advice
It's quite ok. I have thick skin, and of course my noob PCB is going to be flawed. I really only designed it to see if I even could design a potentially functioning circuit board. I have no intention of sending any design off for building without being 100% satisfied that a prototype would even work. In fact, if I ever get that far I'll be sure to post a picture here for intense scrutiny.
1. Holy moley I was looking for a circuit simulator just like this to play around with. I trawled all sorts of places and couldn't find anything that wasn't behind a paywall or otherwise crazily complex.
2. Hysteresis isn't a bad idea, and a slow turn on would actually reduce the relatively rapid on/off switching problem quite a bit. I really should have been more clear in stating that a latched error state is better since if it happens, then manual input is going to be needed anyway (ie. add more water or clear the drain blockage).
...I added some normal state indicator LEDs (green). If I were to use superbrights (which is what I have): Vf 3-3.2, If 20mA, that would require a lower value resistor - but would that interfere with the mosfet at all?
I really like this idea because it's simple and therefore robust. I think if that can be integrated with Mr Kev's design #3 that would satisfy all the requirements. One question - is it safe to be switching AC240V on one pole, and 9V on the other? That seems uncomfortably close in proximity. I suppose a second relay could run from the DPST though.
2. Then you want a R-S flip flop (or mono stable flip flop). You can do it with that relay (as someone else mentioned it before), or even with those transistors, since it's really easy. Also, if you are OK with having only "floater OK"signalization, it could be done something like this: http://tinyurl.com/yd9hqhqn
Hitting the "restart" pushbutton will switch on pump, and if any floater gets open, it will switch off and stay switched off untill you hit the "restart" button again (it's held by small current throught relay and third diode).