Self Water Level Tank with Datalodgging

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

Self Water Level Tank with Datalodgging

Postby wstay » Mon Oct 29, 2012 6:18 pm

I try using a PIC controller to develop my final year project; the self water level tank system with data logging
Obviously, the input is the liquid level sensor and also planning to control the water level from the PC too.
On the water level tank, May i know what kind of valve or motor or any other devices can i get as an output to allow the water to flow out
On the data logging side, im planning to use Visual Basic to interface with the PIC controller or any other better idea or solution?

I already browse through the product sell in cytron, such as the FYP starter kit,
But I still have doubt;
I have a USB to RS232 converter

What is the must and critical electronic device should I had? Like UART to RS232 or something else?
Thanks a lot.
wstay
Newbie
 
Posts: 10
Joined: Mon Oct 29, 2012 6:10 pm

Re: Self Water Level Tank with Datalodgging

Postby zhenning » Mon Oct 29, 2012 8:56 pm

Hi,
You can make use of fish pump. You can use Visual Basic or labview to control it.

You need:
1. microcontroller development board ( Atmel /PIC)
2. motor / fish pump
3. environment to program ( Arduino/MPLAB)
4. GUI Interface ( Visual Basic / LAbview)

Some of the fish pump can use dc voltage, where you can use battery to power it up. Hook that to your micro controller output with the relevant voltage and current drive through transistor. Labview supports Arduino. Thus, you can directly control it directly. further more, it also provides the GUI. =.=
zhenning
Enthusiast
 
Posts: 351
Joined: Thu Dec 30, 2010 12:32 am

Re: Self Water Level Tank with Datalodgging

Postby yonghui » Tue Oct 30, 2012 12:38 am

i will recommed usb to uart more than usb to rs232.

look at UC00A and UC00B of cytron's product.
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: Self Water Level Tank with Datalodgging

Postby wstay » Tue Oct 30, 2012 11:29 pm

zhenning thanks for the info

yonghui
may i know whats the reason to use usb to uart?

I study mechanical engineering, so quite not much about electronic stuff i know

Thanks :)
wstay
Newbie
 
Posts: 10
Joined: Mon Oct 29, 2012 6:10 pm

Re: Self Water Level Tank with Datalodgging

Postby Brian Griffin » Tue Oct 30, 2012 11:33 pm

wstay WROTE:zhenning thanks for the info

yonghui
may i know whats the reason to use usb to uart?

I study mechanical engineering, so quite not much about electronic stuff i know

Thanks :)


The reason is simple - most of the newer computers and laptops don't have these anymore. Instead, the USB ports are much in use.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: Self Water Level Tank with Datalodgging

Postby yonghui » Wed Oct 31, 2012 11:46 am

usb to uart, uart signal level is 5V . rs232 is 12V. microcontroller cant accept 12V, u will need extra chip max232 as level shifter. so if usb to uart is used, u do not need extra efffort to build the level shifter.
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: Self Water Level Tank with Datalodgging

Postby wstay » Thu Nov 01, 2012 11:48 am

Just for curiosity,
does usb to uart communicate like rs232? means it able communicate through hyperterminal

and for the liquid sensor sn-116 sell in cytron;
http://www.cytron.com.my/listProducts.p ... ease+Retry

How can I calculate the volume of the water or maybe flowrate ? using VB or mikroC Pro for PIC?
wstay
Newbie
 
Posts: 10
Joined: Mon Oct 29, 2012 6:10 pm

Re: Self Water Level Tank with Datalodgging

Postby Brian Griffin » Thu Nov 01, 2012 12:08 pm

wstay WROTE:Just for curiosity,
does usb to uart communicate like rs232? means it able communicate through hyperterminal

and for the liquid sensor sn-116 sell in cytron;
http://www.cytron.com.my/listProducts.p ... ease+Retry

How can I calculate the volume of the water or maybe flowrate ? using VB or mikroC Pro for PIC?


Just plug the thing and don't worry about the rs232, unless if you are an electronics engineering student. The thing (USB->UART) did most of the job for you.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: Self Water Level Tank with Datalodgging

Postby wstay » Tue Nov 13, 2012 4:05 am

Hi again
Im using SN-LLS water level sensor to my project;
http://www.cytron.com.my/usr_attachment ... 15TC-8.pdf
I have gone through the datasheet; but i still cannot understand it.

How should i connect the pin to my PIC16F877A, and what Voltage reference should i use? I'm confused :?:
Whats the difference/reason if I am not using 5V as voltage reference as I see some of the other example.

and if the ADC conversion is 10bit;
does it compatible to send data through UART as it only Tx/Rx 8bits data?

Thanks again guys, appreciate
wstay
Newbie
 
Posts: 10
Joined: Mon Oct 29, 2012 6:10 pm

Re: Self Water Level Tank with Datalodgging

Postby zhenning » Tue Nov 13, 2012 11:20 am

wstay WROTE:Hi again
Im using SN-LLS water level sensor to my project;
http://www.cytron.com.my/usr_attachment ... 15TC-8.pdf
I have gone through the datasheet; but i still cannot understand it.

How should i connect the pin to my PIC16F877A, and what Voltage reference should i use? I'm confused :?:
Whats the difference/reason if I am not using 5V as voltage reference as I see some of the other example.

and if the ADC conversion is 10bit;
does it compatible to send data through UART as it only Tx/Rx 8bits data?

Thanks again guys, appreciate



How should i connect the pin to my PIC16F877A?
Did you see the sample circuit section? That are the ways that you can use to connect the sensor. Basically, it should be connected to the analog pin of your PIC.

what Voltage reference should i use?
The Vmax rating for the sensor is 10V. Since your PIC is working on 5V. You should consider going for 5V.

and if the ADC conversion is 10bit;
does it compatible to send data through UART as it only Tx/Rx 8bits data?
Basically, it has no connection at all. ADC 10 bit is that it uses 10bit to store your analog data. The more bit, the more accurate the conversion is.
zhenning
Enthusiast
 
Posts: 351
Joined: Thu Dec 30, 2010 12:32 am

Next

Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 6 guests