Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top