<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>motors on Bald Engineer</title><link>https://www.baldengineer.com/tag/motors</link><description>Recent content in motors on Bald Engineer</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 05 Jul 2017 16:46:28 +0000</lastBuildDate><atom:link href="https://www.baldengineer.com/tag/motors/index.xml" rel="self" type="application/rss+xml"/><item><title>PWM a 3-pin PC fan with an Arduino</title><link>https://www.baldengineer.com/pwm-3-pin-pc-fan-arduino.html</link><pubDate>Wed, 05 Jul 2017 13:13:53 +0000</pubDate><guid isPermaLink="false">https://www.baldengineer.com/?p=6577</guid><description>&lt;p&gt;A question came up on IRC regarding how to PWM a 3-pin PC fan with an Arduino using analogWrite(). Controlling the fan was seemingly straightforward. The problem was that the hall effect sensor, or TACH signal, was incredibly noisy. The noise made it impossible to measure the fan&amp;rsquo;s rotation. Working through the question, I found three issues to tackle:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;You need to use a PNP transistor&lt;/li&gt;&#10;&lt;li&gt;Filter capacitors help&lt;/li&gt;&#10;&lt;li&gt;Create a non-blocking RPM measurement (with millis())&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;This post addresses all three issues regarding how to PWM a 3-pin PC fan with an Arduino.&lt;/p&gt;</description></item></channel></rss>