This was a very nice weekend project that I highly recommend that was created by the folks over at the PiHut. I have the working video above showing you how it works, the AsciiCast to show you how to set this up via the command just below this text.
As a bonus, I have another video at the extreme bottom that will show you how to do this from the GUI on a Raspberry Pi. So many ways to set this up to cater to all of the different people out there. 🙂
The easiest way to control your 3D Christmas board is with Thonny. This is pre-installed in Raspbian Stretch.
So you can click on the Raspberry icon > Programming > Thonny.
Once Thonny is open paste the following code into it and then click on “Run”
from gpiozero import LEDBoard from gpiozero.tools import random_values from signal import pause tree = LEDBoard(*range(2,28),pwm=True) for led in tree: led.source_delay = 0.25 led.source = random_values() pause()
Once you have done that it will prompt you to give the code you just pasted a file name (e.g. xmas.py).
It will save the code as that file name and it will then run the code. You can then start and stop the code as you wish.
This tutorial will show you how to install the Pimoroni Inky pHAT Python library, and then walk through its functionality. You’ll learn how to run the a few of the included examples: the calendar and the name badge. For the complete tutorial you can go the the Pimoroni website:
Then I the following command to setup the Inky pHAT:
curl https://get.pimoroni.com/inkyphat | bash
Once that’s done reboot your Pi to let the changes propagate.
After the reboot open up a terminal window and navigate to:
Once there you can then type “ls” to see the examples in that directory. I did the calendar:
python hello.py “Single-Board.com”
I am very happy with the completion of this project. It seems that all the soldering I did on the header works as intended. I will update more as I intend to use this Inky pHAT in all of my future projects. I will definitely be adding my logo on there!
My Raspberry Pi Zero W is now a Raspberry Pi Zero WH. Here are all of the parts before the were cobbled together. This created a USB dongle for me that allows me to log into the Pi and have a Linux based environment to work in at any time. I am no expert and with this simple how to build anyone can do this project.
The first step is to solder the USB connector to the SparcFun Pi Zero USB Stem (pictured).
Once you have the main grounding legs soldered to the Stem, flip it over and solder the actual USB data and power connections. As you can see I am not using a fine tipped soldering tip but if your careful and have a steady hand you can do this fairly easy.
Once I had that all soldered together it was getting fairly warm so I set that off to the side and then started to work on soldering the header. This takes a little time to solder all of the connections and it also required some patience. This allows you to practice your soldering skills.
About 15 minutes later I had the header all soldered on and I used some Isopropyl alcohol to clean it all up. Since the Stem was now cool I fastened that to the board with the parts provided.
There is a good tutorial over at SparcFun showing how to solder castellated holes (or castellations). This might come in handy if you need to solder a module or PCB to another PCB. These castellations are becoming popular with integrated WiFi and Bluetooth modules.
Here is the finished soldered and assembled project. A Raspberry Pi Zero WH dongle. Now time for the final test. Will it power up?
Success! As you can see in the picture the new Raspberry Pi Zero WH powered up and booted with no problems. I immediately had to log in and run quick test or two.
This has been a fun project! I hope I have shown you a few things that have piqued your interest. This reason I started with the Raspberry Pi Zero WH is that out of all of the Raspberry Pi versions that are available this is what I would consider the base model. Everything I have show you so far can be, and will be used on higher models of the Raspberry Pi and other Single-Board computers. I’ll see you in the next post!