Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 12th October 2009, 05:43 AM   #1
Default Calculation of Fluid Level using PIC ADC

I am upgrading my control circuit's Indicator to have an LCD instead of 4 LEDs and to give different information like system run-time, water tank level, and current cell power usage stats. I'm using Flowcode V4 to create the program and need help creating the formulae to calculate the current fluid level in the water tank using a standard gas tank sending unit. The sending unit will probably have to be calibrated, but I think I can do that. I have a formula I used when I was using the ADC to get timing data, but I don't think it would work because it was being used to read a non-changing value where as the run time is always changing. How can I change that formula to get valid run-time data? I also need help figuring the cell power usage stats so they can be displayed on the LCD.


Edit:

the Formula I have and use in my main control program and also in my traffic light program for Timing is
(Result + 1) / 17 or ((Result + 1)/17)/2 for half the duration.
__________________
This is the way the world ends,
This is the way the world ends,
This is the way the world ends,
Not with a BANG
But with a BELCH

BURRRRRRRRRRPPPPPPP

Last edited by skeeterb; 12th October 2009 at 07:27 AM. Reason: adding information
skeeterb is offline  
Reply

Tags
adc, calculation, fluid, level, pic

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Interrupt Level ADC - Problems! littletransistor Micro Controllers 12 11th October 2009 05:47 PM
Error Calculation in ADC Arunmurugesh General Electronics Chat 1 28th September 2008 12:21 PM
power factor calculation using PIC malikgtheone Micro Controllers 2 4th April 2007 08:19 PM
Fluid/liquid level sensing solution ? scorpioz Electronic Projects Design/Ideas/Reviews 30 10th April 2006 06:41 PM
LM1830 fluid level detector equivalent udi_hakim Datasheet/Parts Requests 2 25th January 2004 09:22 PM



All times are GMT. The time now is 06:07 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker