Jan27
Water level detector with PIC12F683
Firmware v1.0
Hi-tech PICC source code
This is a PIC based water level detector.Why I choose PIC ? First I have a lot of them for my DIY projects,second I want to use this project with 4.5V batteries and PIC Micro has the sleep mode which has very low power consumption,so the life of the battery can be extended.Most of time of this circuit operates in the sleep mode and wake-up from sleep through watchdog time-out every about 2 second.When the CPU Wake-up it will check the sensor probes if the sensor probes submersed in the water it wiil sound Beep,Beep and then go to sleep mode.The sensor probes that I use are solid copper wires.





Jim on 27 Feb 2008 at 1:02 pm #
I’m sorry… I don’t quite understand the function of the capacitor…Bob on 27 Feb 2008 at 7:39 pm #
capacitor C1 just is a decoupling capacitor used to prevent noise caused by other circuit.Jim on 27 Feb 2008 at 7:56 pm #
thanksdennis on 21 Jul 2008 at 2:31 am #
it’s quite interesting to learn with you, but amusing to see pins 234 of the ic hanging.i would like to see a temperature control circuit from your website. between 80-100 degrees celciuos
Arvin on 22 Jul 2008 at 6:09 pm #
I need to make a water level sensor for my wife’s pond. This looks like what I need.I got this link from a Picaxe forum.
Is the program you wrote available for me to look at?
I think I’ll ditch the buzzer and blink an LED. It will run on 3v too so I can just use 2 batteries.
thanks,
arvin
Bob on 22 Jul 2008 at 7:05 pm #
Hi Arvin,I’m sorry about your request.But you can change the source code then complie the source code again follow these steps.
First, look for
#define speaker GPIO2
then add this line
#define LED GPIO3
Second,look for
TRISIO2 = 0; // GPIO2 set as an output
then add
TRISIO3 = 0;
Third,look for
if (input_probe==1)
then change the inner to
speaker = 1; // speaker on 1mS
LED = 1;
DelayMs(50); // delay 1mS
speaker = 0; // speakre off
LED = 0;
DelayMs(50); // delay 1mS
speaker = 1; // speaker on 1mS
LED = 1;
DelayMs(50); // delay 1mS
speaker = 0; // speakre off
LED = 0;
But,I’m not test this change.
Bob