Solar PC All-in-one Raspberry Pi

by J_Sanahuja in Circuits > Raspberry Pi

3226 Views, 44 Favorites, 0 Comments

Solar PC All-in-one Raspberry Pi

PC - All in one solar con Rasberry pi

Hello everyone!

In the folowing instructable, I want to show you how I've made my pc all-in-one with Raspberry pi 4. Furthermore, this pc is supplied by solar energy and a powerbank.

I've made the case with 3d print (using Tinkercad) and the speakers are recyclated from old sound speakers.

Supplies

IMG_20231002_204536.jpg

Materials:

Tools:

  • Soldering iron
  • Hot glue/silicone gun
  • Instant glue
  • Pliers
  • Thin flat screwdriver
  • Blade

Gluing Pieces

Pejando 2 mitades.jpg
Pejando 2 mitades0.jpg

We will start by joining two halves of the case with the impact glue and the supports.

Placing the Touchscreen

Fijando pantalla.jpg
3ffdc199-3738-488b-96cb-6db026aeb4f8.jpg
053fa09c-03f4-47b3-bb24-e25a88eeb7f1.jpg

Then we will carefully place the touchscreen between the two halves of the frame and screw it to secure it

Putting the Raspberry

Colocando Raspberry.jpg
8acdfc19-ef23-4912-9e59-6008a9d0c247.jpg
d1ef1b23-836a-44bd-ab1e-ac7f9f23569a.jpg
Colocando Raspberry 4.jpg

Once the screen is fixed, we will place the raspberry with the 3d support on the top of the screen with the help of some screws.

We will take the opportunity to place the USB cables and the HDMI adapter

Neodymium Magnets to Fix Solar Panel

Fijando imanes.jpg
d17e3d17-0a46-494c-9d03-bfa8ebcb022c.jpg
b50e3fd4-33ea-410f-a2c4-e512efaaa227.jpg
70250b01-5c94-4204-8fd7-ad9e660fbce7.jpg
Planchitas panel solar.jpg
Planchitas panel solar 3.jpg
Planchitas panel solar 4.jpg

With the help of a soldering iron, we will place the 4 neodynium magnets in the 4 rear corners of the case. These will help us to fix the solar panel and be able to remove it easily.

Then we will place some small plates on the solar panel so that it adheres well to the magnets.

Join the Touchscreen and the Case

Pegar pantalla y carcasa.jpg
Pegar pantalla y carcasa 2.jpg
Pegar pantalla y carcasa 3.jpg
Pegar pantalla y carcasa 4.jpg
hdmi.jpg

We will glue the screen to the case with impact glue and hot glue.

We will finish making the connections with the HDMI

Adding Speakers

Conxió altaveus, amplificador i raspberry.jpg
Pins GPIO.jpg
Tabla relación pines.jpg
Añadiendo altavoces.jpg
Añadiendo altavoces 2.jpg
Añadiendo altavoces 3.jpg
Añadiendo altavoces 4.jpg
Añadiendo altavoces 5.jpg
Añadiendo altavoces 6.jpg
Añadiendo altavoces 7.jpg

The speakers are fixed in the case by hot glue. Look the schema for attached the connections between speakers to stereo amplifier and this for the GPIO pins from the Raspberry. Then hide the cables and the amplifier through the holes in the case so that it is well organized.

In order for the speakers to play sound through the GPIO pins of the Raspberry, you will have to edit the config.txt file. I have used the Raspberry pi OS for this project and I have also tested it with Retropie and the configuration is similar for both. I don't know if there is another way to do this on other systems, but this is what has worked for me.

Connect the powerbank to raspberry and start it.

We will have to open a terminal inside raspberry pi OS and write:

sudo nano /boot/config.txt

Once inside the file, you have to go to the end of it and add:

dtoverlay=audremap,pin_12_13

We will save this change with control + o.

Now we will exit this file, we will go to the speaker, placing it in the upper right part of the screen and with the right button of the mouse, we will select that the audio output is through the AV jack port.

If everything went well, you should now hear the sound through the speakers.

Finishing the Job

Fijaciones superiores.jpg
Fijaciones superiores 2.jpg
Fijaciones superiores 3.jpg
Fijaciones superiores 4.jpg
Fijaciones superiores 5.jpg
Panel solar powerbank.jpg

Finally, glue the upper support on the case fix it with two screws and connect solar panel to powerbank.

Enjoy It

12f2e60b-77ba-49f8-aa84-a663ecf94b6e.jpg
92fe7d8c-ea8e-4371-89d9-3b7026d6c6b9.jpg

I hope that you enjoy it!

You can see this project in Spanish here