Go Down

### Topic: Solar Power (Read 2035 times)previous topic - next topic

#### nat45928

##### Nov 20, 2012, 06:46 amLast Edit: Nov 20, 2012, 07:04 am by nat45928 Reason: 1
Hi,

I was wondering if someone could point me towards a good starting point for a solar/battery power solution for an Arduino? I found this: http://www.instructables.com/id/Self-Sufficient-Arduino-Board/?ALLSTEPS but i'm not sure if this would prevent over-charging or dis-charging the batteries. I'm a new Computer Engineering/Electrical Eng student so the goal here is to learn how/why/what I should do. So any help by some more experienced guys would be awesome!

I also found this online and seems to be like a good little function:

Code: [Select]
`float read_battery(void) { // Honk, 14 - 11 - 10 (function was totally missing in NG trunk)  /*Circuit:        Vin--D1--R1--|--R2--GND                 |                 |                Vout  */  //If lipo is 12.6V and diode drop is 0.6V (res 12.0V), the voltage from divider network will be = 2.977V  //calculation: AREF/1024.0 is Vout of divider network  //Vin = lipo voltage minus the diode drop  //Vout = (Vin*R2) * (R1+R2)  //Vin = (Vout * (R1+R2))/R2  //Vin = ((((AREF/1024.0)*adDECIMAL) * (R1+R2)) / R2) + Diode drop //(aref/1024)*adDecimal is Vout  #define R1 10050 //the smd 10k from battery  #define R2 3260 //the div resistor user put in (3k3 makes for about 13.5V before hitting AREF 3.3V)  #define AREF 3.3F //we have used analogReference(EXTERNAL)  #define DIODE_FWD_VOLTAGE_DROP 0.6F //measure with DMM across D1 (input diode in series with Vin)   float batteryVoltage = (((analogRead(VDIV1)*(AREF/1024.0)) * (R1+R2)) / R2) + DIODE_FWD_VOLTAGE_DROP;  return(batteryVoltage);  }`

Thanks,
Nat

#### xvjeko

#1
##### Nov 20, 2012, 10:19 am
First of all, it depends on how much current would you draw...
If you plan to build projects with large motors, you won't be able to charge the batteries at all.
I recommend you find all electronics on ebay, and you will need batteries and solar panels + some kind of "charger" (voltage regulator).
For batteries i would personally go for some kind of Li- batteries, but my favorites would be LiFePO4.
For solar panels i would pick whatever size you need (depends on space available, power needed, etc.).
First you need to calculate the whole thing, to see how big system would you need...

If you can't make such calculations, feel free to post detailed specifications about your system.

#### Docedison

#2
##### Nov 20, 2012, 10:49 am
@ xvjeko,
Quote
If you plan to build projects with large motors, you won't be able to charge the batteries at all.
Why Not? Certainly with the right sized panels and batteries, I should think the OP could run any sized motor.

Bob
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

#### dhenry

#3
##### Nov 20, 2012, 01:18 pm
Quote
I also found this online and seems to be like a good little function:

That function reads off the battery's voltage. It doesn't power the arduino.

#### Docedison

#4
##### Nov 21, 2012, 12:01 am
@ *dhenry* Don't you think a battery monitor is a "beginning" to a battery charger?. I think that even with your "Lofty" Native Intelligence You really know that code can't power an Arduino... ---   I Know, You're Just Testing all the rest of us..

Bob
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

#### MitkoDyakov

#5
##### Nov 21, 2012, 11:55 am

There are a few kinds of solar panels. It depends on the money you have to spend what quality you can get. From there on you can see how big you can make your solar panels and calculate what power you can get.

The other way is to calculate how much power you need and from there calculate what kind and the size of the panels.

#### Zack_Johnston

#6
##### Nov 21, 2012, 09:25 pm
Purchase a 9 volt solar panel from Radio Shack and regulate its voltage to 5v to power the Arduino. Use the regulator LM7805, also available from Radio Shack.

#### nat45928

#7
##### Nov 21, 2012, 09:31 pm
Nope no motors or anything here, Im looking to use a GSM shield, and arduino and a small temp sensor, nothing major or high current by any means. The fucntion i was looking at was a possible way it make sure the battery doesn't over charge or over discharge. I know LiPo's that ive used in R/C Planes are very temperamental about charging and it was something i was worried about with the solar charging being constant.

#### gardner

#8
##### Nov 21, 2012, 10:27 pm
A GSM module will need around 1,000 mA at times.  Maybe more.

Personally I would choose a valve regulated lead-acid battery rather than a lithium one.  VRLAs are well suited to continuous float charge and long standby use.

You can charge it with a cheap 12V charge controller or build something with a regulator.  I have a solar powered Arduino project and I just use an LM317 adjusted to 13.5V as a charge controller.

Go Up