Raspberry PI Power Switch

July 3rd, 2015

Lately, we have been working on a few projects that make use of the most excellent Raspberry PI which, if you've never heard of it, is a credit card sized computer that was designed by the Raspberry Pi Foundation in order to advance computer education for adults and children. The PI can be bought for less than £30 and has a nice range of general purpose I/O built into it for controlling pretty much anything you want.

What it does not have however is a power switch! We decided to build one of our own. This is what we wanted it to do :

  • Be able to switch the PI on without any initial power supply active.
  • Know when our main application on the PI was up and running, and switch on an auxiliary power supply for the externally connected hardware.
  • When the user wants to shut down the system, switch off the auxiliary power supply, then safely shut down the PI and the main supply.
  • Provide visual indication to the user about what state the system is in.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas convallis tortor purus, eget porttitor arcu interdum nec. Suspendisse luctus consequat eros vel semper. Ut varius mauris vitae justo commodo facilisis. Cras in est sed ligula blandit consectetur venenatis in lacus. Suspendisse nibh ipsum, ornare vitae porta et, dictum vel ante. Sed accumsan, arcu et placerat rhoncus, turpis enim interdum ipsum, sed faucibus massa quam at metus. Pellentesque hendrerit mi eu turpis viverra molestie. Nam a magna ac nisi ornare hendrerit a et arcu. Mauris efficitur tortor eu dui maximus accumsan. Nullam at dolor a tortor dapibus lacinia.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere mi vel bibendum fringilla. Duis pellentesque, nisl pretium euismod dapibus, elit ligula imperdiet ex, vel bibendum urna tortor efficitur purus. Integer nec tellus congue, elementum neque vel, aliquam nisl. Mauris vehicula urna nec augue accumsan imperdiet a feugiat lacus. Donec sed lorem sit amet mi finibus molestie nec ullamcorper odio. Curabitur auctor vitae elit sed sagittis. Phasellus accumsan, mi ac finibus suscipit, velit leo pretium velit, eu semper arcu purus ut arcu. Cras lacinia dictum orci. Quisque tincidunt a massa quis faucibus. Vestibulum aliquet lacinia justo, vel auctor nisi accumsan vulputate. Pellentesque id mi vestibulum, lacinia ligula in, ornare odio. Integer ut enim in sapien posuere fringilla ac vitae arcu.