Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Thread Tools Display Modes
Old 20th September 2007, 07:59 AM   (permalink)
Default Help with a project

Hi,

Can (and how) do I take a current reading from an AVO (or multimeter) and get it into a computer as a value?

Background:
I have made a (very simple) level indicator working of capacitance, basically I placed 2 brass plates a very close distance apart and placed it into a bucket (with changing oil level).
I used a 555 timer diode pump circuit, and measured a current value in the circuit, as the capacitance changed so did the current.

I now want to build on my project to look at situations with non-linear shaped vessels of oil, such as a cylinder on its side, the way I thought I would do this, is take the current value and get it into a computer, then using something as simple as excel, create some formulas that will tell me how full the vessel is, (ie half full, empty etc).

Alternatively, I was thinking of using a set of LEDS that would maybe be all lit up when the vessel is full and when it is half full, half of the lights would be on, and so on.
helz15 is offline   Reply With Quote
Old 20th September 2007, 08:45 AM   (permalink)
Default

Wow, that's an unusual-sounding application Not sure whether the charge-pump approach is the best way of reading the capacitance or not (other approaches might be an oscillator using the capacitor for timing or something?), but as for measuring the current out, I think one common way would be to pass the current through a resistor and put the terminals of a differential amplifier over it. Then use an analogue-digital converter to get the voltage reading.

OR for that matter, pass the current through the resistor to ground, and just put the ADC's input onto the top end of the resistor. Much simpler but AFAIR it's supposed to be a bit less accurate for some purposes (I forget why). You'd probably want an Op-amp follower between the resistor and ADC to buffer it though.

Getting it into your computer is probably the harder part. Using a microcontroller (eg a PIC or an AVR or whatever else) with a MAX232 or similar (there are lots of clones and variants of MAX232) to send it to the serial port would probably be the easiest way. If you do this you can also use the microcontroller's ADC, if yours has one
Tomble is offline   Reply With Quote
Old 20th September 2007, 09:54 AM   (permalink)
Default

You might consider changing the shape of the brass plates to get the response you desire. Experiment with a simple taper.
__________________
stevez
stevez is offline   Reply With Quote
Old 20th September 2007, 10:04 AM   (permalink)
Default

Quote:
Originally Posted by stevez
You might consider changing the shape of the brass plates to get the response you desire. Experiment with a simple taper.
hi,
Something like the 'angel wing' profile used on old radio tuning capacitors, to spread the band more evenly.

Reference, using the possible metal tank as ground is not a good idea, consider cathodic/anodic corrosion problems you could have with the plumbing.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 20th September 2007 at 10:06 AM.
ericgibbs is offline   Reply With Quote
Old 20th September 2007, 10:41 AM   (permalink)
Default

With regard to getting the data into a computer, I can recommend a good book - Visual BASIC for Electronic Engineering Applications - reviewed in the books section of this forum.

Brian
__________________

---------------------------------
Electronics Test Development Engineer
---------------------------------
ThermalRunaway is offline   Reply With Quote
Old 20th September 2007, 11:43 AM   (permalink)
Default

Thanks for all your help so far, those are some really good suggestions!
I have also got hold of a copy of that book, so hopefully that will help.

Anymore ideas will be greatly appreciated!!
helz15 is offline   Reply With Quote
Old 20th September 2007, 12:13 PM   (permalink)
Default

Have you thought about using a microcontroller?

That way you don't need to worry about using a PC, all the processing can be done on board and it could control your LEDs too.
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
Hero999 is offline   Reply With Quote
Old 20th September 2007, 01:22 PM   (permalink)
Default

To be honnest, i really want to use a computer so i canget all then infomation on the screen. i found these

http://www.technobots.co.uk/acatalog...rfaces_65.html

for interfacing with computers, and i was wondering if they are suitable for what i am trying to do?

thanks for your help so far.
helz15 is offline   Reply With Quote
Old 20th September 2007, 01:38 PM   (permalink)
Default

Quote:
Originally Posted by Tomble
Getting it into your computer is probably the harder part. Using a microcontroller (eg a PIC or an AVR or whatever else) with a MAX232 or similar (there are lots of clones and variants of MAX232) to send it to the serial port would probably be the easiest way. If you do this you can also use the microcontroller's ADC, if yours has one
I'm going to call you on that, if only to provide an option should the OP be adverse or unable to use a microcontroller for some reason. I think the easiest way would be to use common components to get to an ADC, as you've mentioned, but from there have the output as a TTL parallel signal into the computer's parallel port. Then it's just a simple program to read the parallel port whenever he likes. However, I should mention this method has a fault: if using Windows, the OS might at anytime lower the priority of accessing the parallel port at anytime in favour of other tasks - we're talking potential delays of anywhere from 10ms (more common) to 1s here. So it could make time-based readings tricky to impossible, and introduce more error to data/graphs. The advantage is, this method doesn't require a microcontroller or TTL-to-RS232 converter.


Quote:
Originally Posted by Hero999
Have you thought about using a microcontroller?

That way you don't need to worry about using a PC, all the processing can be done on board and it could control your LEDs too.
But he wants to get the data into his computer and Excel? To back up Tomble instead, now that I've called him out, using a microcontroller to log data at consistent time intervals (essentially making the mcu a bus) and then using either RS232 (probably worth the extra time) or the parallel port to get it into your computer.

BTW, I use Liberty Basic for RS-232 and parallel port data collection. It's a cheap programming language and super easy to use, and you can make stand-alone apps with great looking graphic interfaces in no time. I think Just Basic, the freeware version of the same program, even has RS-232 (but not parallel port) support.*
http://www.libertybasic.com/
http://www.justbasic.com/
*I just checked: yes, it does have RS-232 support - and the price is right!

Last edited by Hank Fletcher; 20th September 2007 at 01:46 PM.
Hank Fletcher is offline   Reply With Quote
Old 20th September 2007, 02:53 PM   (permalink)
Default ha

this is subramanyam iam a final year btech student can uhelp me any way to succed in my final project
chanu.subbu@yahoo.com is offline   Reply With Quote
Old 20th September 2007, 02:55 PM   (permalink)
Default

send me a message weather u help in this context
chanu.subbu@yahoo.com is offline   Reply With Quote
Old 20th September 2007, 02:55 PM   (permalink)
Default

please i am finally take my hands from this so if u help me i will be great ful to u
chanu.subbu@yahoo.com is offline   Reply With Quote
Old 20th September 2007, 03:11 PM   (permalink)
Default

Wh at iz uproject I cantunderstand youverywell spaceout yourlet ers cor erctly.

Point is, What is your project and why should we help you? You seem like you are at a last second chance. You should use your time better if you want to suceed in life.
Krumlink is online now   Reply With Quote
Old 20th September 2007, 05:00 PM   (permalink)
Default

Quote:
Originally Posted by helz15
Hi,

Can (and how) do I take a current reading from an AVO (or multimeter) and get it into a computer as a value?
.
Hi,
If is a current reading, you can use a series resistor and measure the voltage drop across the resistor, which be proportional to the current flow.

If you want to feed this voltage say, 0 to +5V into a PC, you can do so by driving/reading a Dual channel 12bit A/D convertor type MCP3202 connected to the PC's parallel port.

I use a MCP on my parallel port, it gives an update rate of about 50 dual samples/second.

The PC program for operating the MCP is written using Visual Basic 5.

Does this help?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline   Reply With Quote
Old 20th September 2007, 05:03 PM   (permalink)
Default

Hi subramanyam,

Please start a new thread for your questions.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
My professor screwed my final electronics project! kungfusansu Electronic Projects Design/Ideas/Reviews 21 26th August 2007 09:57 PM
FINAL YEAR PROJECT! erique82 Electronic Projects Design/Ideas/Reviews 18 15th April 2007 10:08 AM
A Microcontroller based Analogue Waveforms Analyzer Project km Electronic Projects Design/Ideas/Reviews 76 30th June 2004 06:39 PM
Choosing a PIC for my project... Beef41 Micro Controllers 6 19th March 2004 03:46 PM
I need a project idea based on my strength or interest. :) janetsmith2000@yahoo.com Electronic Projects Design/Ideas/Reviews 10 11th November 2003 09:33 AM



All times are GMT. The time now is 12:16 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.