Go Down

Topic: Float Switch Circuit Advice (Read 1 time) previous topic - next topic

GentlemanBean

#10
Jun 11, 2012, 03:13 am Last Edit: Jun 11, 2012, 04:49 am by GentlemanBean Reason: 1
Thanks everyone for your help.

I added a couple of LEDs to indicate error condition and pump status.

Here is the finished PCB.




Also attached svg.

dc42

From your Fritzing diagram, it looks to me that you've connected the switch between +5v and one of the Attiny input pins, but you have no pulldown resistor. Either add a pulldown resistor from the pin to ground, or else connect the float switch between ground and the pin, then you can enable the internal pullup resistor.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

GentlemanBean


Either add a pulldown resistor from the pin to ground, or else connect the float switch between ground and the pin, then you can enable the internal pullup resistor.


Thanks I have modified my switches to use ground instead of +5v. Thanks for catching that.

Updated breadboard and pcb layout below:




Go Up