Difference between revisions of "Solar Design"
(→Parts List) |
|||
(56 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Image:P1010031c.JPG|thumb|right|600px|Solar powered Wi-Fi Pi hive monitor.]] | ||
+ | |||
+ | ==WARNING== | ||
+ | WARNING! This prototype is still being developed. It is not guaranteed to completely work yet. Use at your own risk. | ||
+ | |||
==GOALS== | ==GOALS== | ||
#Operate through a week of rain (battery life of 10 days). | #Operate through a week of rain (battery life of 10 days). | ||
− | #One day of sun provides | + | #One day of sun provides 7 days of operation (operate unit 1 day and charge batteries 6 days worth). |
#Low profile (solar array fits on the top of a 10 frame Langstrough hive.) | #Low profile (solar array fits on the top of a 10 frame Langstrough hive.) | ||
#Affordable. Readily available parts. | #Affordable. Readily available parts. | ||
#Simple. Easy to build and maintain. | #Simple. Easy to build and maintain. | ||
− | == | + | ==POWER REDUCTION== |
+ | |||
+ | Significant power savings can be achieved through software. See [[Software:Solar Power]] for details. | ||
+ | |||
+ | ===Under Clocking=== | ||
+ | |||
+ | Why doesn't this work? | ||
+ | |||
+ | ===buspower=== | ||
+ | |||
+ | #Disables the LAN9512 | ||
+ | #Shuts down USB devices | ||
+ | |||
+ | On the Model B, the Ethernet and USB ports are provided by the LAN9512. This chip consumes almost 200mA. The [[Media:9512.pdf|LAN9512 datasheet]] explains some of its power saving modes: SUSPEND2, SUSPEND1 and SUSPEND0. | ||
+ | |||
+ | To disable the device (and reduce current from 470 ma to 200 ma): | ||
+ | |||
+ | echo 0x0 > /sys/devices/platform/bcm2708_usb/buspower | ||
+ | echo 0x1 to the same file to wake up it. | ||
+ | |||
+ | See this [http://raspberrypi.stackexchange.com/questions/8498/disable-lan9512 StackExchange post] for details. | ||
+ | |||
+ | This technique reduces the Model A current from 200 ma to 120 ma even though it doesn't have the LAN9512. | ||
+ | |||
+ | This also shuts down any USB devices which also saves power, but this also means that the devices (Wi-Fi) must be initialized when bus power is turned on. | ||
+ | |||
+ | ===Turn off HDMI=== | ||
+ | This saves about 20 ma. | ||
+ | |||
+ | /opt/vc/bin/tvservice -off | ||
+ | |||
+ | |||
+ | ===GPIO serial port=== | ||
+ | [[File:USB Serial cable.jpg|thumb|ioght|300px|USB to TTL Serial Cable ]]USB to TTL Serial Cable | ||
+ | |||
+ | When using the Model A (or turning off the ethernet/USB ports on the Model B), this USB to TTL Serial Cable will allow connection to the console. | ||
+ | |||
+ | http://elinux.org/RPi_Serial_Connection | ||
+ | |||
+ | From AdaFruit: | ||
+ | :[https://www.adafruit.com/products/954 USB to TTL Serial Cable - Debug / Console Cable for Raspberry Pi] $9.95 | ||
+ | |||
+ | From Amazon: | ||
+ | :Elesonic Vomaxtech Pl2303hx USB to TTL to Uart Rs232 COM Cable Module Converter $5.99 | ||
+ | :Kootek PL2303HX USB to TTL to UART RS232 COM Cable module Converter $2.65 | ||
+ | <br clear=all> | ||
==DESIGN== | ==DESIGN== | ||
===Power calculations=== | ===Power calculations=== | ||
====Average power consumption==== | ====Average power consumption==== | ||
− | Pi A: | + | Pi A: 126 ma @ 5V = .63 W<br> |
− | Scale: | + | Scale: 70 ma @ 8V = .56 W<br> |
− | + | ||
− | Assume PS efficiency is 85% | + | Assume PS efficiency is 85% 1.19 watts/.85 = 1.4 watts<br> |
− | + | 1.4 watts / 6 VDC = .23 amps<br> | |
− | . | + | .23 amp x 24 hours = 5.6 AHr<br><br> |
+ | derate 42 AHr to 30 AHr<br> | ||
+ | 30 AHr / 5.6 AHr/day = 5.3 days<br><br> | ||
derate 200 AHr battery to 100 AHr<br> | derate 200 AHr battery to 100 AHr<br> | ||
− | 100 AHr / | + | 100 AHr / 5.6 AHr/day = 17 days<br> |
+ | |||
+ | |||
+ | |||
+ | :Model A Pi, USB hub, 2 TEMPerHUM, Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS] | ||
+ | :110 ma 282 seconds 370 ma for 18 seconds | ||
+ | :((110 ma * 282 sec) + (370 ma *18 sec))/300 sec = (31,020+6,660)/300 = 126 ma avg | ||
+ | |||
====Charge rate==== | ====Charge rate==== | ||
− | Goal: | + | Goal: |
− | 5 watts x 24 hours = | + | |
− | + | 5.6 watts (4x consumption)<br> | |
− | Derate panel to | + | 9.8 watts (7x consumption)<br> |
− | (note: | + | 5.6 watts x 24 hours = 134 watt hours<br> |
− | = | + | 134 watt hours / 25 watt = 5.4 hours at maximum output (11 hours at 50% output<br> |
− | + | Derate panel to 20 watts = 6.7 hours<br> | |
+ | (note: 25 watts is maximum output and that probably won't ever happen - especially if the panel is flat on the top of the hive. A 45 watt solar panel wouild probably be necessary to achieve the goal of 7 days operation from one day of charging. | ||
+ | <br clear=all> | ||
− | + | ===Schematic=== | |
+ | [[Image:P1010027.jpg|thumb|right|400px|Internal wiring of power supplies, fuses, test points.]] | ||
+ | [[Image:Solar power supply 1.png|thumb|left|400px|]] | ||
+ | <br clear=all> | ||
− | + | ===Parts List=== | |
+ | [[Image:P1010032c.jpg|thumb|right|400px|Meters, fuses, switches]] | ||
+ | {| | ||
+ | |- | ||
+ | |Enclosure||[https://www.polycase.com/wh-18 Polycase WH-18-01]||$25.29 | ||
+ | |- | ||
+ | |Battery | ||
+ | |- | ||
+ | |Battery Connector||[http://www.napaonline.com/Catalog/CatalogItemDetail.aspx/Trailer-Connectors-2-Contact-Flat/_/R-NW_784640_0293961370 NAPA 784640]||$2.79 | ||
+ | |- | ||
+ | |25 Watt Solar Panel||[http://www.amazon.com/dp/B00BGDRHGU/ref=pe_385040_30332190_TE_M3T1_ST1_dp_1 ALEKO® 25W Monocrystalline Solar Panel]||$59.00 | ||
+ | |- | ||
+ | |MC4 Solar Panel Connectors||[http://www.amazon.com/Excelvan-Pairs-HC4-PV10C-Female-Connectors/dp/B00DW3A78M/ref=sr_1_1?s=lawn-garden&ie=UTF8&qid=1394978076 Excelvan Pairs HC4 PV10C]||$1.80 | ||
+ | |- | ||
+ | |Li-ion Battery Charger||[http://www.prodctodc.com/5a-constant-current-led-driver-lithiumion-battery-charger-digital-ampvolt-mete-p-428.html ProDC2DC Item ID #090627]||$10.99 | ||
+ | |||
+ | |- | ||
+ | |Li-ion Battery Charger||[http://www.prodctodc.com/dc-5v32v-buck-converter-led-driver-5a-constant-current-battery-charging-module-p-427.html ProDC2DC Item ID # #090626]||$6.49 | ||
+ | |- | ||
+ | |5 VDC Power Supply||[http://www.prodctodc.com/dc-auto-boost-buck-converter-25w-315v-to-0530v-for-solar-panel-step-up-down-voltage-regulators-p-104.html ProDC2DC]||$6.70 | ||
+ | |- | ||
+ | |Fuse Holders||[http://www.amazon.com/dp/B007Q82F98/ref=pe_385040_30332190_TE_M3T1_ST1_dp_2 Panel Mounted 5x20mm Fuse Holder]||$0.62 | ||
+ | |- | ||
+ | |Test Points||[http://www.digikey.com/product-detail/en/105-0802-001/J117-ND/5895 Digi-Key J117-ND]||$0.86 | ||
+ | |- | ||
+ | |USB to TTL Serial Cable||[http://www.amazon.com/dp/B008AGDTA4/ref=pe_385040_30332190_pe_175190_21431760_M3T1_ST1_dp_1 PL2303HX USB To TTL]||$2.99 | ||
+ | |- | ||
+ | |Schottky Diode||[http://www.amazon.com/dp/B007Z7NAIK/ref=pe_385040_30332190_TE_3p_M3T1_ST1_dp_1 40V 3A SCHOTTKY DIODE NTE]||$1.43 | ||
+ | |- | ||
+ | |SPST On-Off Switch | ||
+ | |- | ||
+ | |NO Pushbutton Switch | ||
+ | |} | ||
==NOTES== | ==NOTES== | ||
1. Battery Amp Hour ratings are theoretical. A 200 AHr battery in theory would supply 200 amps for 1 hour or 1 A for 200 hours. In practice this is far from true - there is a better chance of getting closer to 1 A for 200 hours than 200 amps for 1 hour. The point is, the AHr rating of the battery must be derated (depends on the rate of discharge and temperature).<br> | 1. Battery Amp Hour ratings are theoretical. A 200 AHr battery in theory would supply 200 amps for 1 hour or 1 A for 200 hours. In practice this is far from true - there is a better chance of getting closer to 1 A for 200 hours than 200 amps for 1 hour. The point is, the AHr rating of the battery must be derated (depends on the rate of discharge and temperature).<br> | ||
2. 6 V golf cart batteries are better deep cycle batteries (thicker plates) than 12 V marine deep cycle which are a compromise. Battery life depends mostly on Depth of Discharge (DOD) - the bigger DOD, the shorter the battery life.<br> | 2. 6 V golf cart batteries are better deep cycle batteries (thicker plates) than 12 V marine deep cycle which are a compromise. Battery life depends mostly on Depth of Discharge (DOD) - the bigger DOD, the shorter the battery life.<br> | ||
− | 3. A solar "Charge Controller" probably | + | 3. A solar "Charge Controller" is probably not the optimal solution - Something like this is not recommended: |
http://www.amazon.com/Sunforce-7-Amp-Charge-Controller/dp/B0006JO0XI/ref...<br> | http://www.amazon.com/Sunforce-7-Amp-Charge-Controller/dp/B0006JO0XI/ref...<br> | ||
Hardware:<br> | Hardware:<br> | ||
Line 57: | Line 153: | ||
The SMSC LAN9512 USB Hub and Ethernet Controller. | The SMSC LAN9512 USB Hub and Ethernet Controller. | ||
− | http:// | + | [http://ww1.microchip.com/downloads/en/DeviceDoc/9512.pdf LAN9512 Data Sheet] |
+ | |||
+ | ===Misc Info on power reduction=== | ||
http://www.daveakerman.com/?page_id=1294 | http://www.daveakerman.com/?page_id=1294 | ||
http://www.bitwizard.nl/wiki/index.php?title=Reducing_power_consumption_of_a_raspberry_Pi | http://www.bitwizard.nl/wiki/index.php?title=Reducing_power_consumption_of_a_raspberry_Pi | ||
Line 63: | Line 161: | ||
http://traffic.integreen-life.bz.it/default/wiki/power-consumption | http://traffic.integreen-life.bz.it/default/wiki/power-consumption | ||
http://raspberrypi.stackexchange.com/questions/8498/disable-lan9512 | http://raspberrypi.stackexchange.com/questions/8498/disable-lan9512 | ||
+ | |||
+ | |||
+ | [[Image:Solar-wifi.jpg|thumb|right|600px|Solar powered Wi-Fi Pi hive monitor with dish antenna.]] |
Latest revision as of 15:47, 2 December 2014
Contents
WARNING
WARNING! This prototype is still being developed. It is not guaranteed to completely work yet. Use at your own risk.
GOALS
- Operate through a week of rain (battery life of 10 days).
- One day of sun provides 7 days of operation (operate unit 1 day and charge batteries 6 days worth).
- Low profile (solar array fits on the top of a 10 frame Langstrough hive.)
- Affordable. Readily available parts.
- Simple. Easy to build and maintain.
POWER REDUCTION
Significant power savings can be achieved through software. See Software:Solar Power for details.
Under Clocking
Why doesn't this work?
buspower
- Disables the LAN9512
- Shuts down USB devices
On the Model B, the Ethernet and USB ports are provided by the LAN9512. This chip consumes almost 200mA. The LAN9512 datasheet explains some of its power saving modes: SUSPEND2, SUSPEND1 and SUSPEND0.
To disable the device (and reduce current from 470 ma to 200 ma):
echo 0x0 > /sys/devices/platform/bcm2708_usb/buspower echo 0x1 to the same file to wake up it.
See this StackExchange post for details.
This technique reduces the Model A current from 200 ma to 120 ma even though it doesn't have the LAN9512.
This also shuts down any USB devices which also saves power, but this also means that the devices (Wi-Fi) must be initialized when bus power is turned on.
Turn off HDMI
This saves about 20 ma.
/opt/vc/bin/tvservice -off
GPIO serial port
USB to TTL Serial Cable
When using the Model A (or turning off the ethernet/USB ports on the Model B), this USB to TTL Serial Cable will allow connection to the console.
http://elinux.org/RPi_Serial_Connection
From AdaFruit:
From Amazon:
- Elesonic Vomaxtech Pl2303hx USB to TTL to Uart Rs232 COM Cable Module Converter $5.99
- Kootek PL2303HX USB to TTL to UART RS232 COM Cable module Converter $2.65
DESIGN
Power calculations
Average power consumption
Pi A: 126 ma @ 5V = .63 W
Scale: 70 ma @ 8V = .56 W
Assume PS efficiency is 85% 1.19 watts/.85 = 1.4 watts
1.4 watts / 6 VDC = .23 amps
.23 amp x 24 hours = 5.6 AHr
derate 42 AHr to 30 AHr
30 AHr / 5.6 AHr/day = 5.3 days
derate 200 AHr battery to 100 AHr
100 AHr / 5.6 AHr/day = 17 days
- Model A Pi, USB hub, 2 TEMPerHUM, Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
- 110 ma 282 seconds 370 ma for 18 seconds
- ((110 ma * 282 sec) + (370 ma *18 sec))/300 sec = (31,020+6,660)/300 = 126 ma avg
Charge rate
Goal:
5.6 watts (4x consumption)
9.8 watts (7x consumption)
5.6 watts x 24 hours = 134 watt hours
134 watt hours / 25 watt = 5.4 hours at maximum output (11 hours at 50% output
Derate panel to 20 watts = 6.7 hours
(note: 25 watts is maximum output and that probably won't ever happen - especially if the panel is flat on the top of the hive. A 45 watt solar panel wouild probably be necessary to achieve the goal of 7 days operation from one day of charging.
Schematic
Parts List
Enclosure | Polycase WH-18-01 | $25.29 |
Battery | ||
Battery Connector | NAPA 784640 | $2.79 |
25 Watt Solar Panel | ALEKO® 25W Monocrystalline Solar Panel | $59.00 |
MC4 Solar Panel Connectors | Excelvan Pairs HC4 PV10C | $1.80 |
Li-ion Battery Charger | ProDC2DC Item ID #090627 | $10.99 |
Li-ion Battery Charger | ProDC2DC Item ID # #090626 | $6.49 |
5 VDC Power Supply | ProDC2DC | $6.70 |
Fuse Holders | Panel Mounted 5x20mm Fuse Holder | $0.62 |
Test Points | Digi-Key J117-ND | $0.86 |
USB to TTL Serial Cable | PL2303HX USB To TTL | $2.99 |
Schottky Diode | 40V 3A SCHOTTKY DIODE NTE | $1.43 |
SPST On-Off Switch | ||
NO Pushbutton Switch |
NOTES
1. Battery Amp Hour ratings are theoretical. A 200 AHr battery in theory would supply 200 amps for 1 hour or 1 A for 200 hours. In practice this is far from true - there is a better chance of getting closer to 1 A for 200 hours than 200 amps for 1 hour. The point is, the AHr rating of the battery must be derated (depends on the rate of discharge and temperature).
2. 6 V golf cart batteries are better deep cycle batteries (thicker plates) than 12 V marine deep cycle which are a compromise. Battery life depends mostly on Depth of Discharge (DOD) - the bigger DOD, the shorter the battery life.
3. A solar "Charge Controller" is probably not the optimal solution - Something like this is not recommended:
http://www.amazon.com/Sunforce-7-Amp-Charge-Controller/dp/B0006JO0XI/ref...
Hardware:
40 Watt solar array:
http://www.ebay.com/itm/40w-New-40-watt-Module-Sun-Solar-Panel-PV-Poly-c...
$54 on ebay
Battery:
http://www.ebay.com/itm/Trojan-Black-Box-6-Volt-210-Amp-Hour-Deep-Cycle-...
$95 on ebay, probably find locally (Sam's Club)
Solar Charger/PS:
http://www.prodctodc.com/dc-auto-boost-buck-converter-25w-315v-to-0530v-...
$7
WiFi Adapter:
http://www.amazon.com/Importer520-Wireless-Adapter-Antenna-54Mbps/dp/B00...
$10
(This is about $170 not counting shipping/taxes.)
May need gain antenna:
http://www.mfjenterprises.com/Product.php?productid=MFJ-1800
$30
Raspberry Pi Model A vs Model B
The SMSC LAN9512 USB Hub and Ethernet Controller.
Misc Info on power reduction
http://www.daveakerman.com/?page_id=1294 http://www.bitwizard.nl/wiki/index.php?title=Reducing_power_consumption_of_a_raspberry_Pi http://www.youtube.com/watch?v=L1EihTxIdnQ http://traffic.integreen-life.bz.it/default/wiki/power-consumption http://raspberrypi.stackexchange.com/questions/8498/disable-lan9512