Raspberry Pi Programmable Power Board – Part 1

I’ve decided that I’d like to build a programmable, modular power board to control the power in my lounge room. Hopefully this will allow me to do things like turn off the stereo system when the receiver is not in use, and other nifty magic like that.

Below you will find my first circuit simulations for my designs.

Raspberry Pi Port Selector

A is a GPIO input from the raspberry pi. It is used to cycle through the available ports.

B is a GPIO output to the raspberry pi. It is used to calculate how many ports are currently enabled.

The line connected to the reset terminal enables the user to adjust the number of ports supported by the program.

Raspberry Pi Latching Circuit

This circuit is duplicated, 2 times per module.

A is an output from the Port Selector.

B is a GPIO input from the raspberry pi. It is used to turn on a port, and is common between all modules.

C is a GPIO input from the raspberry pi. It is used to turn off a port, and is common between all modules.

D is an optional GPIO output to the raspberry pi. It is used to detect the current state of a port at any given time (e.g. when recovering from a reboot)

The relay is a G5LE-14 DC3 power relay from Omron Electronics

The diode is a 1N4004

The transistor is a BC548 NPN

You can also download the Yenka schematics

Leave a Reply

Your email address will not be published. Required fields are marked *