I have a grove Seeedstudio dust sensor, all hooked up to my arduino Uno fine, and is measuring OK when powered via the USB, but I need this to be mobile, so need battery power. I have tried running it from a 9V alkaline pp3 battery and 4x1.5V and even 8x1.5V alkaline batteries (these are normally fine for running the arduino) but the values the sensor reports drops drastically so I think it is not getting enough power. The datasheet says that it needs 90mA, is that too much pull for regular 9V or alkaline batteries? I have seen versions online with an li-ion battery running at only 3.7V but with a board that boosts it up to output at 5V.
Do I need to get one of these systems or will it be possible to power using more commonly found batteries?
The 9V PP3 batteries are useless for circuits that require more than 10-20 mA.
The sensor needs 90 mA at 5 volts, but there are many ways of supplying that. The most efficient method is to use a switching regulator, like this one.
You can estimate battery life by comparing battery capacity in milliampere-hours (mAh) to the total circuit consumption in milliamperes. For example, AA alkaline batteries typically have capacity of about 2000 mAh, so an AA battery pack should power the sensor alone for roughly 2000/90 or 22 hours. Less if you also power the Arduino, of course.
I've soldered it and it seems to be powering my setup (arduino uno, adafruit gps shield, seeedstudio grove dust sensor, all powered by 8xAA battery through the pololu regulator to the VIN). However the readings from the sensor seem very very high. The stated max is 8000, and my readings are between 10000 - 20000. If I power it from the USB without the regulator and going through the VIN then I still get high readings.
Thank you for that reminder! I was testing the most basic dust sensor code, but with the shield still plugged in. I removed the shield and tried the code again. The values are within the normal range now. This means that the shield itself must be causing a problem that increases the values so much.
Could the increase in values be due to the GPS shield using pin 8 for some reason? Or something to do with it affecting how long a loop takes to execute and how much dust is in the sensor before being read? I don't have a great deal of experience with the shield or the dust sensor.
I really want to be able to use the GPS shield with the dust sensor but I am now contemplating having one arduino for the GPS shield and another arduino for the sensor and try to communicate over Serial to send the values and log them on the shield SD card.
OK so it looks like the GPS shield uses pin 8 for software serial communication with the arduino. So that means either switching to Direct communication or maybe using a second arduino to send the data over serial. Attempting that now and will post back results.
davidhunter:
I've soldered it and it seems to be powering my setup (arduino uno, adafruit gps shield, seeedstudio grove dust sensor, all powered by 8xAA battery through the pololu regulator to the VIN).
In post#1&2 you said you were getting a 5volt Pololu regulator.
And here you say you are powering it to the Vin.
That is not right.
Vin is pre-onboard 5volt regulator, so your 5volt rail will be 4volt at best.
This will give you wrong readings.
You have to connect a 5volt DC/DC converter to the 5volt pin.
Leo..
Hi Wawa, thank you for that advice. I guess I could power the arduino with a battery through the 2.1mm jack and then power the dust sensor with the pololu 5v regulator.
OK, Leo, I am slightly confused then what is the best way to power this using the pololu 5v regulator. As you can probably tell I don't have a huge amount of experience with Arduino, especially in terms of power and peripherals. Previously I have only ever needed to run from a 9v wall adaptor, so battery power is a new thing for me.
The Pololu DC/DC converter converts any battery voltage (6 to 30volt) into a stable 5volt that you can directly connect to the 5volt supply pin of the Arduino.
Leo..
When powering from 5V to the power header, I would add a diode from 5V (anode) to Vin (cathode) to avoid reverse driving the 5v regulator too much.
See Figure 1 for an example discussion of why this could be needed. http://www.linear.com/docs/2946