<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to Driving 12V with SoftPWM</title><link href="https://forge.codesys.com/hax/blog/2018/07/driving-12v-with-softpwm/" rel="alternate"/><link href="https://forge.codesys.com/hax/blog/2018/07/driving-12v-with-softpwm/feed.atom" rel="self"/><id>https://forge.codesys.com/hax/blog/2018/07/driving-12v-with-softpwm/</id><updated>2018-07-10T20:16:35.127000Z</updated><subtitle>Recent changes to Driving 12V with SoftPWM</subtitle><entry><title>Driving 12V with SoftPWM discussion</title><link href="https://forge.codesys.com/hax/blog/2018/07/driving-12v-with-softpwm/?limit=25#6079" rel="alternate"/><published>2018-07-10T20:16:35.127000Z</published><updated>2018-07-10T20:16:35.127000Z</updated><author><name>Ingo</name><uri>https://forge.codesys.com/u/ingo/</uri></author><id>https://forge.codesys.comf8ad046af37c545baef2ebb0dde8aab10aa3209f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Source Code&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Driving 12V with SoftPWM</title><link href="https://forge.codesys.com/hax/blog/2018/07/driving-12v-with-softpwm/" rel="alternate"/><published>2018-07-04T22:29:41.023000Z</published><updated>2018-07-04T22:29:41.023000Z</updated><author><name>Ingo</name><uri>https://forge.codesys.com/u/ingo/</uri></author><id>https://forge.codesys.com66275c4fa5e11bb7f64ec9068dea062a743bf572</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;For my current project I need a 12V Analog output. Today I did some first tests.&lt;/p&gt;
&lt;p&gt;&lt;iframe height="270" src="https://www.youtube.com/embed/oyWTSpI9OXk?feature=oembed" width="480"&gt;&lt;/iframe&gt;&lt;/p&gt;

&lt;h1 id="getting-12v"&gt;Getting 12V&lt;/h1&gt;
&lt;p&gt;I used a voltage regulator which is rising the 5V of the Pi to 12V. The reason is, that I want to be able to power the whole thing with a standard power bank.&lt;/p&gt;
&lt;h1 id="getting-a-pwm-signal"&gt;Getting a PWM signal&lt;/h1&gt;
&lt;p&gt;I used the SoftPWM FB from the &lt;a class="" href="/drv/gpio-mod"&gt;GPIOMods&lt;/a&gt; project to get a PWM signal out of GPIO4.&lt;/p&gt;
&lt;h1 id="driver"&gt;Driver&lt;/h1&gt;
&lt;p&gt;To drive a voltage that is higher than 3.3V, I used a usual combination of an NPN and a PNP transistor. I just had not the correct resistors at hand, why lower volatages can't be correctly reached (you will notice in the video ;) )&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>