My Project
This web server is running on a Raspberry Pi (Model B) powered 100% by Solar energy |
Why |
Buying the Raspberry Pi |
Power Basic MathBefore I purchased my solar panels, I had to calculate the power requirements. I bought solar panels rated at 45 Watts based on these calculations. 45 Watts at 12 volts would be 3.72 Amps. But this would be only the best case scenario, so for this math I used 3.5 amps. To charge an 80AH battery using a 3.5 Amp charger, it would take 22.86 hours. Of course there are losses, so my thoughts were that it would take 24 hours to charge the battery from dead to full. That would be 24 hours of sun light. The Raspberry Pi Model "B" requires a 700ma 5 Volt (3.5 Watts) power supply. At 12 volts it would use 292ma. Of course, no voltage converter is perfect, so for calculations I used 350ma. An 80AH 12 Volt battery should run the Raspberry Pi 228.5 hours before its dead. Of course, the battery's voltage would drop off before it was totally dead, so it is hard to say just how long it would run it. In a 24 hour period the Raspberry Pi would use 8.4AH of the 80AH battery. So, the solar charger at 3.5 amps would need to change the battery at least 2.4 hours each day to stay even with the power usage of the Raspberry Pi. |
Buying Solar Panels
|
Installing the Panels
|
|
Monitoring Power
|
|
I decided to buy an Arduino Uno to go along with the Raspberry so I could use it's inputs and serial output to monitor the voltages. I used RRD tools to graph the voltages and Xymon to monitor and send alerts, if something goes wrong. The Arduino is connected directly to the Raspberry so it can collect the data. There is just so much you squeeze out of the limited resources of the Raspberry Pi, so I'm running RRD tools on a different server. In addition, I did not want to run an external HD connected to the Raspberry. I wanted the Raspberry run 100% off solar power and I thought the HD would use too much. I wasn't sure if the Raspberry's SD card would handle the constant rewrites of RRD tools. Both the Raspberry Pi and the Arduino run off the solar power.
For the Arduino case, I used an Altoids tin. I used part of a foam pad that came under a new mother board between the board and the tin, and used little screws to secure the Arduino in place. I used some resistors I had laying around and programed the Arduino to send the calculated voltages out the serial so I can read them using the Pi.
Raspberry Pi Case
|
|
For the Raspberry Pi case, I got my dad's help (using his awesome wood shop). I decided to make it out of wood because I knew he had all the right tools and knowledge to use them. We tried making the case before I had the Raspberry using printouts and measurements on the Internet, but it did not work out. Once I got it we were able to make it in one afternoon. I decided to cut out the red parts of the Raspberry image on top so you could still see the board through the holes. My mom painted the leafs and the black parts of the image. The box spilts in half so you can remove or install the board.
My dad made the comment when he was helping me "It's not like any one else in the world is going to see it." A few seconds later he said "Wait… you're putting this on the Internet for all the world to see."
Building the Pi Server
|
|