Step 1: feeding +12v to your float switch without even a series resistor means that sparks will fly if you get a short to ground at the float switch.
-Thanks for the advice.
Step 2: using a regulator to step 12v down to 5v is overkill. If you don't want to use an optocoupler as I suggested, use a voltage divider.
- I am so new to this my head is exploding from taking it all in, wiki is helpful etc.....I understand your way is more economical....but for the moment i thought this might be a simpler(easier) solution for me, tho looking on the web I'm getting my head around some of it now....maybe hope for me yet,lol.
Step 3 - Good advice again - thanks.
There seems to be multiple ways of doing this project and everyone's input is fantastic,I have set up a bench mount mega to test and prototype before i get the parts and instal.
I have a switch mimicking a float switch, i have a breadboard and leds.
My aim is to have the leds run on after switch momentary on ( float switch )is activated and using the internal counter/timer for example 5 mins or more, mimicking solenoid open.
After i got this bit sorted I'll look at 2 level switches....low and high to keep the liquid between them.
I've been looking for sketches that do this...can't find any and looking for something i could modify....might be out of my league at the moment.
I am having trouble understanding all of this....not giving up tho...I'll keep googling till i find the solution....any help greatly appreciated.
This code stuff is hard to learn...am getting lost in it a bit...any guidance there?????once again i appreciate everyone's input.