<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pi on Bald Engineer</title><link>https://www.baldengineer.com/tag/pi</link><description>Recent content in Pi on Bald Engineer</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 10 Apr 2018 05:19:26 +0000</lastBuildDate><atom:link href="https://www.baldengineer.com/tag/pi/index.xml" rel="self" type="application/rss+xml"/><item><title>Soft Power Controller State Machine</title><link>https://www.baldengineer.com/software-power-controller-state-machine.html</link><pubDate>Wed, 21 Jun 2017 13:00:43 +0000</pubDate><guid isPermaLink="false">https://www.baldengineer.com/?p=6516</guid><description>&lt;p&gt;Previously I looked at the hardware needed to build a Raspberry Pi soft power supply. This week I&amp;rsquo;m looking the state machine for the microcontroller. Why is such a complicated circuit necessary? I am replacing a &lt;a href="https://www.hackster.io/baldengineer/retropie-in-a-super-famicom"&gt;Super Famicom (SNES) motherboard&lt;/a&gt; with the Pi. The trick is, I want to use the original power switch to turn the Pi on and off.&lt;/p&gt;&#10;&lt;p&gt;This requirement presents a problem. When the switch goes into the &amp;ldquo;OFF&amp;rdquo; position, power needs to stay on long enough for the Pi to properly shutdown. So the switch itself can&amp;rsquo;t provide power to the Pi directly. With minor changes, the code in this state machine could be made to work with push buttons as well. If I add that feature in the future, I&amp;rsquo;ll update the code on the &lt;a href="https://github.com/baldengineer/Raspberry-Pi-Soft-Power-Controller"&gt;RPSPC GitHub project&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>