Author Topic: Analog to digital help  (Read 1234 times)

0 Members and 1 Guest are viewing this topic.

Offline DuWongTopic starter

  • Newbie
  • Posts: 6
  • Country: us
Analog to digital help
« on: March 16, 2018, 09:57:57 pm »
Is there a way to use an arduino to be able to read an analog signal of 0 to +30V? I know the arduino can only go up to +5v, I think it would it be possible to voltage divide the analog signal but wouldn't that lose a lot of precision? Or how could I use another circuit to convert it from analog to digital?
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19491
  • Country: gb
  • 0999
Re: Analog to digital help
« Reply #1 on: March 17, 2018, 12:04:16 am »
Yes, use a potential divider to reduce the voltage. There will be some loss of precision, but 1% resistors are normally good enough. In any case, there's no point in exceeding the specifications of the ADC or reference.

Here's a site with a handy potential divider calculator tool. Obviously the results can be multiplied by a factor of 10, to get the desired input impedance.
http://sim.okawa-denshi.jp/en/teikokeisan.htm

One thing to note is that the ADC takes a current spike, when a sample is taken, as the sample and hold capacitor charges. If the potential divider's output impedance is very high, this can upset the reading. One solution, to minimise loading on the circuit being measured, is to keep the potential divider's resistor values high and add a capacitor between the ADC's input and 0V. Unfortunately this reduces the bandwidth, so is only useful for low frequency signals.
 

Offline Shock

  • Super Contributor
  • ***
  • Posts: 4211
  • Country: au
Soldering/Rework: Pace ADS200, Pace MBT350
Multimeters: Fluke 189, 87V, 117, 112   >>> WANTED STUFF <<<
Oszilloskopen: Lecroy 9314, Phillips PM3065, Tektronix 2215a, 314
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19491
  • Country: gb
  • 0999
Re: Analog to digital help
« Reply #3 on: March 17, 2018, 02:54:38 pm »
Opamp based solution here.

https://electronics.stackexchange.com/questions/266737/high-voltage-sampling-with-microcontroller-potential-divider-affecting-signal
Yes, that will work, just ensure the common mode input range of the op-amp isn't being exceeded, so R401 might need to be skipped, to ensure the supply voltage isn't higher, than the inputs. In this case, the input signal can be up to 30V, so you need an op-amp with a rail-to rail input. A quick look through the RS catalogue yielded the following: LM7322, LT1638, ADA4091, LT1490A.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf