Rules | Recent posts | topic RSS | Search | Register  | Log in

Connection between Gas Meter and Microcontroller

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Other Design
Author Message
engr_vilayat



Joined: 06 Mar 2008
Posts: 10


Post15 Aug 2008 13:11   Connection between Gas Meter and Microcontroller

I want to connect my natural Gas meter to microcontroller but the problum is that microcontroller take 8 bits digital iinput and the output of Gas meter is analog so how can i convert that analog output og gas meter into digital input of microcontroler?Exclamation
Back to top
FvM



Joined: 22 Jan 2008
Posts: 2633
Helped: 431
Location: Bochum, Germany


Post15 Aug 2008 13:31   Connection between Gas Meter and Microcontroller

Some uP have analog inputs, others need a suitable external ADC.
Back to top
banjo



Joined: 24 Dec 2005
Posts: 473
Helped: 89


Post15 Aug 2008 13:36   Connection between Gas Meter and Microcontroller

You need an analog to digital converter, usually abbreviated ADC. Take a read of :

http://www.pages.drexel.edu/~dwk24/ADC.htm

This will give a basic overview. You have several options, you can add an external ADC chip to your system. Or you can change your microcontroller to one that already includes an ADC function internally. Many larger microcontrollers have this function already. You just need to feed the analog voltage to the ADC input pin of the microcontroller and then write the code to read the internal analog to digital value.
Back to top
amol_shah



Joined: 21 Apr 2008
Posts: 97
Helped: 12
Location: Nasik, Mumbai


Post15 Aug 2008 21:23   Re: Connection between Gas Meter and Microcontroller

which controller are you using? If you are using 8951 then you will require external ADC, check this link for interfacing ADC 0808 to 8951
http://www.dnatechindia.com/index.php/Tutorials/8051-Tutorial/Interfacing-ADC0808-To-8051.html
Back to top
engr_vilayat



Joined: 06 Mar 2008
Posts: 10


Post16 Aug 2008 19:56   Re: Connection between Gas Meter and Microcontroller

But if analog reading og the meter is not so efficient then......?Crying or Very sad

i want a connection in which i can directly measure the usage quantity of natural gas and then convert that measurement in digital form.........can i use any type of sensor which measure the gas flow and convert that in digital form?
Back to top
FvM



Joined: 22 Jan 2008
Posts: 2633
Helped: 431
Location: Bochum, Germany


Post17 Aug 2008 10:24   Re: Connection between Gas Meter and Microcontroller

The accuracy limitation is usually caused by the metering device (or the sensor) itself. Errors by analog signal transmission would be additive, but are most likely not dominant.

If a calibrated mechanical gas meter is involved with your installation, the best option is get a type with additional electrical output (a pulse contact). Some devices also allow to mount an optical reflective sensor.
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Other Design
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap