Raspberry Pi Projects

I have been experimenting with the GPIO on a Raspberry Pi Model B (26-pin GPIO)

I was testing clock output and so far I've tried it from about 1.5mhz to about 80mhz. It is interesting to note that the voltage drops the higher the freq.


1.2 MHZ


83.3 MHZ

I plan on using this relay board controlled by the Pi



Humble Pi Assembly Instructions with Regulator Kit

I have decided to build my last (2) of these units for some new prototyping work I am doing now on the Pi 1 Model B. I know, it is so ancient but it works well and is reliable. .

These boards are long extinct so I am recreating the assembly instructions because I noticed several decent articles had disappeared since the last time I built one of these around 2012. I didn't take any pictures or write anything about it back then but I am going retro tonight and will do this. This will hopefully recreate a set of instructions which are really very simple but should be documented for at least posterity.

2018-06-12-rp-humble-pi-004.jpg 2018-06-12-rp-humble-pi-005.jpg

Hopefully some day when the lonely hacker gets their hands on one of these and has a useless Raspberry Pi 1 Model A or B and wants to assemble the kit and then a bit of common sense, a few tools and maybe this article will suffice. I noticed almost all of the documentation on building them or which components has disappeared. You can still find a few traces of the assembly on the wayback machine so check there also.


I am still not really completed, I was unable to locate my header strips and need to make (2) 13-pin strips to add a second piggyback header on top of the Humble Pi. I also need a (2) pin header added to select internal or external power. I built this board with the 3.3V regulator. I will build the second Humble Pi board for 5V as well so I can interchange as needed. I ordered some new header strip and will complete this unit soon.

The power kit for the Humble Pi includes (2) voltage regulators LD33V LD1117V33 (3.3v) and LD50V (5.0v) and the writing on my regulators was almost impossible to read with a magnifying glass in very bright light. Anyway you will choose 3.3V or 5.0V when you build the unit. There are (2) electrolytic capacitors, There is a three-pin PCB barrel connector.


This is what you get with the main kit, a PCB, the 26-pin GPIO connector and a plastic bolt with nut. This turned out to be useless for me as there was no hole in the RPI pcb that matches. I suspect this hole was only on the first Raspberry Pi Model 1. It was a good idea to stabilize the Humble Pi. Too bad it can't be used on this RPI 1 Model B.


Insert the 26 pin GPIO female connector into the bottom of the PCB with the pins coming up through the top. Make sure when aligning the holes that you avoid the first 2 pads marked 3.3v and 5.v..

Solder all 26-pins on the 26-pin GPIO connector.

Attach the barrel connector,it has three legs and needs to be placed as shown in the finished picture above and solder this. When you solder that on, fill the entire space with solder on each pin. This is so it would be strong in a structural sense and hold up to normal use of plugging and unplugging the external power cable. This is a 2.5mm standard connector.

Now we can attach the electrolytic capacitors, they are polarized so you have to make sure to orient the leads correctly. Just remember the long lead is positive. The two values are C1: 25v 10uf and C2: 16v 100uf. The PCB is clearly marked with a minus (-) symbol on the pads where you will solder them so it is easy to orient them properly. The PCB also details which values are to be installed on which pad.

The pins of the voltage regulator are clearly-marked as well.

You can get some header strips and solder in a second 26-pin GPIO piggyback connector to allow you to attach another PCB or a GPIO cable, etc. on top of this board



I was ale to get this Humble-Pi completed a couple days ago after receiving some breakaway headers.


2018-06-25 I was revisiting some basic GPIO stuff today, it has been a long time!


Using a PI for simple I/O is quick and easy.

You connect your breadboard to the GPIO and pick the GPIO pins you want to use. Set up your circuit so that any output or input is connected and ready to be used by the Pi. In this case, we will light an LED.

Attach the anode of the LED to the particular GPIO pin you want, in this case GPIO 25. Connect the cathode to ground from the Pi's GPIO cable. As root just do the following:

echo "25" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio25/direction
echo "1" > /sys/class/gpio/gpio25/value # led on
echo "0" > /sys/class/gpio/gpio25/value # led off

Since the Pi asserts a logic 1 (3.3v) on the anode of the LED, it will Illuminate.


It really this simple to perform GPIO output. You can do it from a bash script even.

2018-06-27 It is equally simple to read inputs like switches.


Attach a dipswitch (straddle the two sides) to the breadboard. Make sure the switches are off. Then attach one set of contacts on the dipswutch as follows. First attach one side of the dipswitch to GPIO23, this is the INPUT. Then attach the opposite contact on the dipswitch to +3.3v. source from the Pi. Now we need to attach a 10K ohm resistor on the INPUT side of the dipswitch. The resistor should be attached to ground. This will keep the GPIO pin from floating which may cause some unpredictable behaviout in any software listening to the GPIO input.

Once you have verified that everything is connected, you can use the following sequence of commands to read the switch states.

root@terminal-02:/# echo "23" > /sys/class/gpio/export
root@terminal-02:/# echo "in" > /sys/class/gpio/gpio23/direction
root@terminal-02:/# cat /sys/class/gpio/gpio23/value #switch is open, close switch now.
root@terminal-02:/# cat /sys/class/gpio/gpio23/value # switch is closed

2018-07-07 I installed a power indicator on the 3.3v version of the Humble Pi board regulator output.


I think it is a much-needed addition though I might want to replace this large red led with something much smaller. The power supply is 5V-20A so there is a lot of power available.

I am using one of my bench supplies feeding a distribution panel with this output on a 5A fuse. I am sure that will be enough for anything I will do on this board.