I'm powering Arduino Duemilanove with solar cells (~6V at bright/~4.5 at cloudy day). Solar cells are connected to breadboard and from there right into Vin on the Arduino.
I'm using voltage divider (2x 330k) to drop down the voltage and divider's output is connected to A0.
There is no problem in measuring input voltage (on solar cells) when it's sunny outside (~6V), but I get strange readings, when supply voltage drops.
At this time, I have like 4.5V on Vin (multimeter measurement, cheap one, but does the job), but Arduino keeps telling me, it is like 6.5V. I'm measuring another voltage (external, not input) and it goes from 0.55V (multimeter) to 1.3V (what Arduino tells me).
When I measure current between solar cells and Arduino, I get ~22mA at 6V and ~10mA at 4.5V (power drop on solar cells when not sunny), but Arduino keeps running in both cases.
Where is the problem? Is it that Arduino can't measure well with low input voltage? Or should I use higher voltage on Vin, is 4.5 or 6V too low? Or isis that at 4.5V and 10mA the Arduino is not fully running?
Pavouk106:
I'm powering Arduino Duemilanove with solar cells (~6V at bright/~4.5 at cloudy day). Solar cells are connected to breadboard and from there right into Vin on the Arduino.
Vin feeds into the onboard 5V regulator. In order to get 5V out of the regulator you have to put at leas 6.5V into it. If you feed it with a lower voltage you will get a lower voltage on the "+5V" line and therefore your Analog Reference will be that lower voltage, not 5V.
And of the arduino is being run directly and not through a regulator then it is too much voltage in bright light.
When checking an arduino reading always check the referance voltage, which in this case is the supply voltage. The reading is only ever relitave to this voltage.
johnwasser:
Vin feeds into the onboard 5V regulator. In order to get 5V out of the regulator you have to put at leas 6.5V into it. If you feed it with a lower voltage you will get a lower voltage on the "+5V" line and therefore your Analog Reference will be that lower voltage, not 5V.
I understand the thing with regulator. Is there some software way to have some other voltage as reference? I have read about 1.1V and 3.3V, how to use that? It should be ok even with 4.5V as supply voltage, shouldn't it?
Grumpy_Mike:
And of the arduino is being run directly and not through a regulator then it is too much voltage in bright light.
If I understand this well, there is no problem to supply 6.5V to Vin? It would be problem to connect 6.5V to USB or to "5V" connector on Arduino, wouldn't it?
Pavouk106:
Is there some software way to have some other voltage as reference? I have read about 1.1V and 3.3V, how to use that?
If you use the Arduino UNO 3.3V pin and connect that to AREF you may still have problems with low voltage. If you put 4.5V into the 5V regulator you might not get a high enough voltage on the 5V line for the 3.3V regulator to do its thing.
Perhaps you should invest in a 5V Buck/Boost regulator that can get you regulated 5V from your 4.5-6V supply. Something like this one:
That will give you regulated 5V from anything between 4.5V and 9V.
Is there some software way to have some other voltage as reference?
Yes you can use anything between 1V and the supply rail. However if you only use 3V3 for example that is the highest voltage you can measure. You can take the voltage on the analogue input up to the supply without damage but once it reaches the reference voltage the numbers you get from the reading will not increase any more.
johnwasser: I thought about buying step-up/-down converter, but I thought they are of low resistance on the input side thus they couldn't run from solar cells...
Grumpy_Mike: I thought I could fry Arduino with overvoltage, but now I know I will only get strange readings as far as measured voltage is <= input voltage. Thanks.
but I thought they are of low resistance on the input side
The effective input resistance depends on the current being drawn fro the output. So yes if you are drawing 2A from the output then the effective input resistance is going to be low. If you are not drawing any current then it is going to be high. That is the whole point about this sort of regulator, it takes the current at the input voltage that when multiplied together to give the input power, which is equal to the output power (assuming 100% efficiency which in reality is more like 80% )
Pavouk106:
johnwasser: I thought about buying step-up/-down converter, but I thought they are of low resistance on the input side thus they couldn't run from solar cells...
Add a smoothing capacitor to the solar cell output and it'll be low impedance...
The main problem with running DC-DC converters from solar panels is that they are designed to work from
a voltage source, not a current source. The capacitor will stiffen up the voltage nicely at short timescales
but when the supply current drops too low the whole thing is going to misbehave anyway. This is why even
a small battery as an addition to a solar panel is a great idea (you can tolerate someone walking in front of
the solar panel!).