| Author |
Message |
engr_vilayat
Joined: 06 Mar 2008 Posts: 10
|
15 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?
|
|
| Back to top |
|
 |
FvM
Joined: 22 Jan 2008 Posts: 2633 Helped: 431 Location: Bochum, Germany
|
15 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
|
15 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
|
|
| Back to top |
|
 |
engr_vilayat
Joined: 06 Mar 2008 Posts: 10
|
16 Aug 2008 19:56 Re: Connection between Gas Meter and Microcontroller |
|
|
|
But if analog reading og the meter is not so efficient then......?
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
|
17 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 |
|
 |