C program to sense 2 ldr

Status
Not open for further replies.

kelv234

New Member
hi all,
im a student currently doing a project on water level sensors with my grp. our initial plan is that the 2 LDRs have to be either 1 or 0 to start and stop the motor but only 1 LDR is able to do that. which is hard to start or stop the motor as water will keep on pumping in every time LDR detects light. we used to Analog Digital Conversion in our program but it seems to convert only 1 value. is there any other ways to do it? please advise.

thanks
 
More information required - which PIC are you using, can you post the code so we can have a look at it, motor/pump information (power rating, type, model, etc), how are the LDRs set up to sense the level of water?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…