Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is most likely no translated for the post!




Convert Raw value t...
 
Share:
Notifications
Clear all

Convert Raw value to voltage in an ADC


(@ranjanpal)
Active Member
Joined: 5 months ago
Posts: 16
Topic starter  

Hi,

Lets say we have an n-bit ADC whose operating/supply voltage is Vs=3.3volts. It does not have a pga (programmable gain amplifier). So to convert raw value of the ADC into equivalent voltage, we can use the formula: 

V_in =  (Raw data from ADC) * (Vs/2^n)                       where, Vs=supply voltage=3.3volts 

 

In another scenario, we have an ADC. with same operating/supply voltage is Vs=3.3volts. It has a pga with different full scale range voltage=V_FSR ( for example  ADS1015, in data sheet Pg 10, Table 3: Reference  https://cdn-shop.adafruit.com/datasheets/ads1015.pdf  ). Here we see. V_FSR is not equal to Vs. In this case, to convert raw value of the ADC into equivalent voltage, will the formula be:

V_in =  (Raw data from ADC) * (Vs/2^n)                      where, Vs=supply voltage=3.3volts 

or

V_in =  (Raw data from ADC) * (V_FSR/2^n)           

 

Could you please clarify which formula is the correct one?

 


ReplyQuote
Topic Tags
 Hans
(@hans)
Noble Member Admin
Joined: 8 years ago
Posts: 1845
 

Hey there 😊 

Honestly, I'd take this one:

Posted by: @ranjanpal

V_in =  (Raw data from ADC) * (Vs/2^n)                       where, Vs=supply voltage=3.3volts 

As far as I recall, but I most certainly am not an expert on this stuff, ADC's do their work in reference to what powers them (3.3v if that is what you are using to power the ADC).


ReplyQuote

Like what you see and you'd like to help out? 

The best way to help is of course by assisting others with their questions here in the forum, but you can also help us out in other ways:

- Do your shopping at Amazon, it will not cost you anything extra but may generate a small commission for us,
- send a cup of coffee through PayPal ($5, $10, $20, or custom amount),
- become a Patreon,
- donate BitCoin (BTC), or BitCoinCash (BCH).

Share: