Author Topic: Big differences in current - what value should resistor have?  (Read 2308 times)

0 Members and 1 Guest are viewing this topic.

Offline niasieTopic starter

  • Newbie
  • Posts: 2
Big differences in current - what value should resistor have?
« on: December 03, 2014, 09:14:52 pm »
Hey,

I'm building around the Bosch BMP085 pressure sensor and planning to use the sensor to measure my quadrocopter's height. The drone is powered by a propietary rechargable battery with 3.7V. The sensor, according to its datasheet, only likes 1.8V to 3.6V. I would like to bring the voltage down to somewhere around 2.5V, considering that the battery will drop in voltage when it's not fully charged anymore.

Now here is my problem: The sensor varies in load from 5µA (in standard mode) to a peak of 1000µA, at least according to its datasheet. I want a voltage drop of about 1.2V across the resistor, so I do some simple, relying on the minimum and maximum current:
1.2V / 5µA = 240k?
1.2V / 1000µA = 1.2k?

If I choose 240k?, the voltage drop will be far too big when the load is at peak, but if I choose 1.2k?, the voltage drop will be far too small. What resistor value should I choose, or is there any other solution to my problem?

I'm grateful for any response, and sorry for my not-so-perfect English.  :)
niasie

Edit: I just saw, that the Greek Omega isn't displayed correctly. The "?" are supposed to mean Ohms. :)
« Last Edit: December 03, 2014, 09:21:47 pm by niasie »
 

Offline Paul Price

  • Super Contributor
  • ***
  • Posts: 1419
Re: Big differences in current - what value should resistor have?
« Reply #1 on: December 03, 2014, 09:21:29 pm »
Use a LDO regulator IC or use a resistor-zener diode combo  to set the sensor operating voltage.
 

Offline suicidaleggroll

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
Re: Big differences in current - what value should resistor have?
« Reply #2 on: December 03, 2014, 09:31:18 pm »
Use whatever resistor you need to saturate the ADC voltage range at the highest current you expect (plus some margin), and use an ADC with whatever resolution is necessary to resolve (to the desired level of accuracy) the lowest voltage you expect.

If the sensor can vary from 5uA to 1000uA, and your ADC range is 0-2.5v, then you would want to use a 2.5k resistor (call it 2k to give yourself some margin).  With a 2k resistor, a 5uA current will give you 10mV.  If you want to resolve this with a 1% uncertainty, then your ADC needs to be able to accurately resolve 100uV on a 2.5V range, which is about 14.5 noise-free bits.  This shouldn't be difficult to achieve with a 16+ bit ADC.  If you want to only hit 1.2v at 1000uA, then you'll need a 1.2k resistor and an extra bit out of your ADC.

I don't think your dynamic range is extreme enough to require an adjustable gain on the ADC, but that's an option as well.
« Last Edit: December 03, 2014, 09:35:33 pm by suicidaleggroll »
 

Offline niasieTopic starter

  • Newbie
  • Posts: 2
Re: Big differences in current - what value should resistor have?
« Reply #3 on: December 04, 2014, 04:56:10 pm »
Thank you for your responses! I'm pretty sure your suggestions will solve my problem.  :)
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3240
  • Country: gb
Re: Big differences in current - what value should resistor have?
« Reply #4 on: December 04, 2014, 06:49:25 pm »
Use whatever resistor you need to saturate the ADC voltage range at the highest current you expect (plus some margin), and use an ADC with whatever resolution is necessary to resolve (to the desired level of accuracy) the lowest voltage you expect.

The BMP085 is an I2C device, no external ADC is required.  The 1000uA is the maximum supply current for the device during conversion, though the typical is 650uA.

The OP is trying to understand how to choose a suitable resistor to drop the supply voltage, and the answer is that you don't use a resistor in this situation, you'd use a low dropout regulator.  A simple zener shunt would work, but would be wasteful of current, requiring a constant 1mA even though the average current of the sensor will be far lower.
 

Offline suicidaleggroll

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
Re: Big differences in current - what value should resistor have?
« Reply #5 on: December 04, 2014, 08:03:15 pm »
Use whatever resistor you need to saturate the ADC voltage range at the highest current you expect (plus some margin), and use an ADC with whatever resolution is necessary to resolve (to the desired level of accuracy) the lowest voltage you expect.

The BMP085 is an I2C device, no external ADC is required.  The 1000uA is the maximum supply current for the device during conversion, though the typical is 650uA.

The OP is trying to understand how to choose a suitable resistor to drop the supply voltage, and the answer is that you don't use a resistor in this situation, you'd use a low dropout regulator.  A simple zener shunt would work, but would be wasteful of current, requiring a constant 1mA even though the average current of the sensor will be far lower.

My bad, based on the wording of the post I was thinking the device had an analog current output that needed to be converted to a voltage for sampling.  Yes in this case an LDO would be the best option.
 

Offline Seekonk

  • Super Contributor
  • ***
  • Posts: 1938
  • Country: us
Re: Big differences in current - what value should resistor have?
« Reply #6 on: December 04, 2014, 08:20:36 pm »
If the power doesn't need to be regulated, just use a diode to drop the voltage .65V and an additional resistor load to insure enough current.
« Last Edit: December 04, 2014, 08:25:08 pm by Seekonk »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf