how to communicate PIC with Liquid Level Sensor ??anyone??

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

how to communicate PIC with Liquid Level Sensor ??anyone??

Postby lolo » Wed Oct 19, 2011 11:42 pm

i have purchase liquid level sensor and PIC combo kit
-how to connect it with the PIC
lolo
Newbie
 
Posts: 8
Joined: Wed Oct 19, 2011 11:33 pm

Re: how to communicate PIC with Liquid Level Sensor ??anyone

Postby hyng » Thu Oct 20, 2011 9:21 am

The sample circuit is shown in the datasheet. Please refer to the Simple Voltage Divider Circuit section. The centre pin is inactive, thus use only 1st and 3rd pin and there is no polarity. Actually it works like a simple LDR (Light Dependent Resistor), LDR changes resistance against light; this sensor changes resistance against liquid level. You can refer to our tutorial of SK40C:Project 9 – Analog Sensor: Light detection using LDR http://tutorial.cytron.com.my/2011/08/10/project-9-%E2%80%93-analog-sensor-light-detection-using-ldr/
User avatar
hyng
Moderator
 
Posts: 292
Joined: Thu Apr 16, 2009 11:35 am

Re: how to communicate PIC with Liquid Level Sensor ??anyone

Postby lolo » Thu Oct 20, 2011 12:38 pm

do i need to build another circuit for this to work?
lolo
Newbie
 
Posts: 8
Joined: Wed Oct 19, 2011 11:33 pm

Re: how to communicate PIC with Liquid Level Sensor ??anyone

Postby yonghui » Thu Oct 20, 2011 12:48 pm

hi,

hyng described the circuit quite clearly,

u will need to buid a basic voltage divider circuit. connect it to the same voltage level as the PIC, then use the ADC module of the PIC to read the voltage from the divider circuit. the resistance of the sensor will change according the the liquid level, thus this cause the voltage over the terminal of the sensor will change according to the liquid level. ADC will read/ sample the voltage level of the sensor and u can get the digital reading from that. u will probably need to read on how to use the adc of the PIC.


regards.
yh
thanks&regards,
yh
yonghui
Professional
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: how to communicate PIC with Liquid Level Sensor ??anyone

Postby lolo » Fri Oct 21, 2011 1:52 am

what exactly component at the circuit do i need?having a trouble here.tq
lolo
Newbie
 
Posts: 8
Joined: Wed Oct 19, 2011 11:33 pm

Re: how to communicate PIC with Liquid Level Sensor ??anyone

Postby robosang » Fri Oct 21, 2011 7:34 am

lolo WROTE:what exactly component at the circuit do i need?having a trouble here.tq

I doubt you understand what is electronics at all :lol: Though I din go into the datasheet pointed by other forumers, looking at what explained by yonghui, it is basically a normal voltage dividing circuit. Googling help me get this at Wikipedia - Voltage Divider.
Image

What component do you need? A resistor as R1, R2 will most probably be the sensor. When R2 changes, Vout changes. From there you get the information.
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: how to communicate PIC with Liquid Level Sensor ??anyone

Postby ober » Sun Oct 23, 2011 10:09 pm

robosang is pointing to right direction. Though there are plenty more of method to use the sensor, if you have microcontroller and the microcontroller have ADC, the simplest method is to use resistor ladder to get voltage divider as shown in the datasheet of the sensor. You can also refer to one of our tutorial, using the LDR, Project 9
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 1 guest

cron