# Solar speaker project

**URL:** <https://forum.core-electronics.com.au/t/solar-speaker-project/4413>\
**Category:** Raspberry Pi\
**Created:** [24 January 2019 21:33 UTC](https://forum.core-electronics.com.au/t/solar-speaker-project/4413 "2019-01-24T21:33:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![James79368](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@James79368](https://forum.core-electronics.com.au/u/James79368)\
**Post date:** [24 January 2019 21:33 UTC](https://forum.core-electronics.com.au/t/solar-speaker-project/4413/1 "2019-01-24T21:33:53Z")

</div>

Hi guys,

I am planning a project (my first ever electronics project) to build a solar powered speaker that is able to play audio tracks from an SD card on a loop/timer, ideally turning off when not in use.

I have looked for other projects but haven’t been able to find anything that similar. At this stage I am planning to buy the following parts:

- [https://core-electronics.com.au/solar-lipo-charger-3-7v.html](https://core-electronics.com.au/solar-lipo-charger-3-7v.html) (Solar Lipo Charger (3.7V)  
SKU: DFR0264)

- [https://core-electronics.com.au/polymer-lithium-ion-battery-1000mah-38458.html?review-form=yes](https://core-electronics.com.au/polymer-lithium-ion-battery-1000mah-38458.html?review-form=yes) (Polymer Lithium Ion Battery (LiPo) 3.7V 1000mAh  
SKU: CE04377)

- [https://core-electronics.com.au/1w-solar-panel-80x100-seeed-studio.html](https://core-electronics.com.au/1w-solar-panel-80x100-seeed-studio.html) (1W Solar Panel 80X100 (Seeed Studio))

- [https://core-electronics.com.au/raspberry-pi-zero.html](https://core-electronics.com.au/raspberry-pi-zero.html) (Raspberry Pi Zero SKU: CE04756)

- [https://core-electronics.com.au/adafruit-i2s-3w-stereo-speaker-bonnet-for-raspberry-pi-mini-kit.html](https://core-electronics.com.au/adafruit-i2s-3w-stereo-speaker-bonnet-for-raspberry-pi-mini-kit.html) (Adafruit I2S 3W Stereo Speaker Bonnet for Raspberry Pi - Mini Kit)

- [https://core-electronics.com.au/stereo-enclosed-speaker-set-3w-4-ohm.html](https://core-electronics.com.au/stereo-enclosed-speaker-set-3w-4-ohm.html) (Stereo Enclosed Speaker Set - 3W 4 Ohm)

Is there anything I have missed or is there an obvious alternative that would be simpler? For instance using an arduino and an SD card reader? Any advice or links to similar projects would be much appreciated!

Thanks,

James

---

<div class="post-metadata">

**Author:** ![Stephen](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/stephen/32/1599_2.png) [@Stephen](https://forum.core-electronics.com.au/u/Stephen)\
**Post date:** [25 January 2019 00:36 UTC](https://forum.core-electronics.com.au/t/solar-speaker-project/4413/2 "2019-01-25T00:36:49Z")

</div>

Hi James,

I think this is a good setup, but I have a few suggestions.

I think that you will need a much larger solar panel to charge the system. The panel you have chosen only provides 170mA in the best conditions. I think it will take a couple days to recharge your battery.

Go with a bigger solar panel and a bigger battery.

> **[3W Solar Panel 138X160 (Seeed Studio)](https://core-electronics.com.au/3w-solar-panel-138x160-seeed-studio.html)**
>
> This solar panel is made of single-crystal material that performs high solar energy transformation efficiency at 17%. It has a fine resin surface and sturdy .. read more

  

> **[Polymer Lithium Ion Battery (LiPo) 3.7V 2400mAh](https://core-electronics.com.au/polymer-lithium-ion-battery-2400mah.html)**
>
> Welcome to the awesomeness that is LiPo batteries. Polymer Lithium Ion batteries offer superior energy density with this 2400mAh battery being on 6mm in height!

With this setup, the battery will take 5 hours of direct sun to charge, and the battery should last a couple of hours.

As far an RPI vs Arduino. Arduino could be a little simpler, but if you use a Pi Zero W then you have Bluetooth and Wifi baked right in and you could later add those features to your device without any hardware changes.

---

<div class="post-metadata">

**Author:** ![James79368](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@James79368](https://forum.core-electronics.com.au/u/James79368)\
**Post date:** [25 January 2019 03:43 UTC](https://forum.core-electronics.com.au/t/solar-speaker-project/4413/3 "2019-01-25T03:43:56Z")

</div>

Ok, great. In terms of the coding side of things;

- what would be the best resource to learn or copy/modify code to play loops of audio and then switch off?

- is it true that the arduino is easier to shut down between playback loops compared to the RPI?

- if I swap out the RPI zero for an Arduino are all of the other components interchangeable?

Thanks

James

---

<div class="post-metadata">

**Author:** ![James46717](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@James46717](https://forum.core-electronics.com.au/u/James46717)\
**Post date:** [25 January 2019 09:11 UTC](https://forum.core-electronics.com.au/t/solar-speaker-project/4413/4 "2019-01-25T09:11:46Z")

</div>

I bought the exact same solar charger and panel. I agree with Stephen you need a bigger panel and LiPo.  
Mine took a couple of hours to just top up a 400mAH battery, not a full charge. Make sure your battery is in the shade in your design, my battery got warm and it was in the shade with the panel in the sun. Using a plug pack charger the battery does NOT get warm.

Having used the DRF0264 charger, I would opt for DFR0559. It is reasonably priced, not too large and has many more options. USB charge in, solar charge in, USB power out. The DFR0559 I ordered today so my info is only based on the web page.

Sunflower: Solar Power Manager 5V SKU: DFR0559 $12.60

The SEEED solar panels are pretty basic, cheap but not many frills. Just a bare panel with JST attached to 2 wires. There is no edge protection. The Adafruit are much more expensive but look good quality.

Having used the Arduino extensively and now trying out the Pi Zero; I would suggest the Pi as it is basically a Linux computer with all that comes with that kind of system. Buy one of the kits that includes all the stuff you need to get it working. The link you provided is not enough to get the Pi running. I know its a lot more expensive but you will buy that stuff anyway, certainly a power supply. I bought this starter kit, plugged in a monitor, keyboard and mouse and I was up and running. Raspberry Pi Zero W Starter Kit #### SKU: CE04765 $64.95

But I can see either Arduino or Pi working well for your project, up to you. Arduino is a steep learning curve if you have no experience in programming micros. The Pi is s little more friendly.

As a final observation. I would break the project down into manageable chunks. What you are proposing is excellent but rather complex.

Cheers

---

<div class="post-metadata">

**Author:** ![James79368](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@James79368](https://forum.core-electronics.com.au/u/James79368)\
**Post date:** [26 January 2019 04:12 UTC](https://forum.core-electronics.com.au/t/solar-speaker-project/4413/5 "2019-01-26T04:12:49Z")

</div>

Awesome - thanks heaps for the input James. Great to hear from someone who has experience in a similar project. I’ll take those tips on board. I have no programming experience so I’ll stay with the RPI. No doubt there will be a steep learning curve but hopefully it’ll work out eventually.

---

<div class="post-metadata">

**Author:** ![James79368](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@James79368](https://forum.core-electronics.com.au/u/James79368)\
**Post date:** [10 February 2019 06:55 UTC](https://forum.core-electronics.com.au/t/solar-speaker-project/4413/6 "2019-02-10T06:55:54Z")

</div>

Can anyone advise of the best way to connect the pi to the battery (via the solar lipo charger)? I’m assuming it needs to have a micro usb connector at the pi end and two bare wires at the charger end?

Thanks

James

---

<div class="post-metadata">

**Author:** ![Clinton](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/clinton/32/1515_2.png) [@Clinton](https://forum.core-electronics.com.au/u/Clinton)\
**Post date:** [10 February 2019 21:06 UTC](https://forum.core-electronics.com.au/t/solar-speaker-project/4413/7 "2019-02-10T21:06:40Z")

</div>

The easiest way would probably be to use a [USB Breakout](https://core-electronics.com.au/usb-type-a-female-breakout.html) and then just a normal micro USB cable.

---

<div class="post-metadata">

**Author:** ![James79368](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@James79368](https://forum.core-electronics.com.au/u/James79368)\
**Post date:** [11 February 2019 00:04 UTC](https://forum.core-electronics.com.au/t/solar-speaker-project/4413/8 "2019-02-11T00:04:57Z")

</div>

Ok so I would need to connect the USB to the lipo charger somehow? Could another option be to just upgrade to the Sunflower: Solar Power Manager 5V ([https://core-electronics.com.au/sunflower-solar-power-manager-5v.html](https://core-electronics.com.au/sunflower-solar-power-manager-5v.html))?

---

<div class="post-metadata">

**Author:** ![Clinton](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/clinton/32/1515_2.png) [@Clinton](https://forum.core-electronics.com.au/u/Clinton)\
**Post date:** [11 February 2019 21:06 UTC](https://forum.core-electronics.com.au/t/solar-speaker-project/4413/9 "2019-02-11T21:06:18Z")

</div>

Yes that is what that board is for 🙂

---

<div class="post-metadata">

**Author:** ![James79368](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@James79368](https://forum.core-electronics.com.au/u/James79368)\
**Post date:** [11 February 2019 22:32 UTC](https://forum.core-electronics.com.au/t/solar-speaker-project/4413/10 "2019-02-11T22:32:27Z")

</div>

Thanks Clinton
