Pages: [1]   Go Down
Author Topic: Solar Power  (Read 1077 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!  smiley

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

Code:
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
« Last Edit: November 20, 2012, 01:04:02 am by nat45928 » Logged

Europe
Offline Offline
Full Member
***
Karma: 0
Posts: 104
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.  smiley-mr-green
Logged

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 48
Posts: 2935
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@ 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
Logged

--> 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

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 48
Posts: 2935
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 @ *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
Logged

--> 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

Offline Offline
Newbie
*
Karma: 2
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What is your project about?

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.

Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Ontario
Offline Offline
God Member
*****
Karma: 25
Posts: 910
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: