<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>transistor Archives - Nerd Corner</title>
	<atom:link href="https://nerd-corner.com/tag/transistor/feed/" rel="self" type="application/rss+xml" />
	<link>https://nerd-corner.com/tag/transistor/</link>
	<description>Craft your dreams!</description>
	<lastBuildDate>Sat, 02 Jan 2021 02:16:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>

<image>
	<url>https://nerd-corner.com/wp-content/uploads/2019/10/cropped-LogoNerdCorner-2-32x32.png</url>
	<title>transistor Archives - Nerd Corner</title>
	<link>https://nerd-corner.com/tag/transistor/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Arduino fan controller</title>
		<link>https://nerd-corner.com/arduino-fan-controller/</link>
					<comments>https://nerd-corner.com/arduino-fan-controller/#comments</comments>
		
		<dc:creator><![CDATA[Nerds]]></dc:creator>
		<pubDate>Thu, 12 Mar 2020 12:57:32 +0000</pubDate>
				<category><![CDATA[Arduino projects]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[fan]]></category>
		<category><![CDATA[transistor]]></category>
		<guid isPermaLink="false">https://nerd-corner.com/?p=305</guid>

					<description><![CDATA[<p>There are many different ways to control the speed of a fan. For example, if your fan has a PWM wire, then you could directly &#8230; </p>
<p>The post <a href="https://nerd-corner.com/arduino-fan-controller/">Arduino fan controller</a> appeared first on <a href="https://nerd-corner.com">Nerd Corner</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>There are many different ways to control the speed of a fan. For example, if your fan has a PWM wire, then you could directly use the PWM signal. Also see our other post for <a href="https://nerd-corner.com/android-bluetooth-classic-app-for-arduino-fan-control/">an Arduino fan controller with a Bluetooth Android app</a>.</p>
<p>In this post we show you how to regulate the rotational speed of any fan. It doesn&#8217;t matter if your fan needs 12 Volt or 5 Volt. Also the number of wires is not important. You can use a 3, 4 or 2 wire fan! We only work with the + and &#8211; wire of your fan.</p>
<p>The Arduino supports 5 Volt directly. In our case we use an old PC fan with 12 Volt, so an external 12 Volt power supply is necessary.</p>
<h2>List of components</h2>
<ul>
<li>Arudino Mega</li>
<li>Breadboard</li>
<li>12V power supply</li>
<li>12V fan</li>
<li>Jumper cable</li>
<li>220 Ohm resistor</li>
<li>NPN Transistor number: BC546B D6</li>
</ul>
<p><iframe hcb-fetch-image-from="https://youtu.be/gY5d0foRP28" title="Arduino Fan Controller // With Arduino Code and Wiring // Full user guide // Step by Step" width="1200" height="675" src="https://www.youtube.com/embed/gY5d0foRP28?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></p>
<p>&nbsp;</p>
<h2>Wiring</h2>
<p><img fetchpriority="high" decoding="async" class="wp-image-308 size-large zoooom aligncenter" src="https://nerd-corner.com/wp-content/uploads/2020/03/fan_ohne_bluetooth_mit_transistor-1024x465.png" alt="arduino fan controller wiring fritzing" width="720" height="327" srcset="https://nerd-corner.com/wp-content/uploads/2020/03/fan_ohne_bluetooth_mit_transistor-1024x465.png 1024w, https://nerd-corner.com/wp-content/uploads/2020/03/fan_ohne_bluetooth_mit_transistor-300x136.png 300w, https://nerd-corner.com/wp-content/uploads/2020/03/fan_ohne_bluetooth_mit_transistor-768x349.png 768w, https://nerd-corner.com/wp-content/uploads/2020/03/fan_ohne_bluetooth_mit_transistor-1536x698.png 1536w, https://nerd-corner.com/wp-content/uploads/2020/03/fan_ohne_bluetooth_mit_transistor-2048x930.png 2048w, https://nerd-corner.com/wp-content/uploads/2020/03/fan_ohne_bluetooth_mit_transistor-1920x872.png 1920w, https://nerd-corner.com/wp-content/uploads/2020/03/fan_ohne_bluetooth_mit_transistor.png 3858w" sizes="(max-width: 720px) 100vw, 720px" /></p>
<p>For the wiring we proceed according to the sketch . The 12V power supply is connected to the breadboard. We connect the &#8211; of the breadboard with GND of the Arduino (the short blue cable connection). Then the + of the breadboard to Vin of the Arduino Mega (red cable between Arduino and breadboard).</p>
<p>If we would plug the 12V power supply into the socket now. Then our Arduino would already be powered. There is no additional power supply like USB required. The Vin pin of the Arduino automatically regulates the 12V of the power supply to 5V for the Arduino.</p>
<p>Now we plug the NPN transistor into the breadboard. We connect the base (B) to the 220 Ohm resistor and then to pin 13 (yellow connection in the picture). We connect the collector (C) of the transistor directly to the negative connection of the fan (black fan cable). The positive fan connector is connected to the + of the breadboard. We connect the emitter (E) of the transistor to the &#8211; of the breadboard. That&#8217;s all for the wiring! Time for the Arduino code!</p>
<h2>The code for the Arduino fan controller</h2>
<p><img decoding="async" class="wp-image-307 zoooom aligncenter" src="https://nerd-corner.com/wp-content/uploads/2020/03/arduino_fan_controller_screenshot.jpg" alt="arduino code fan controller nerd corner" width="635" height="719" srcset="https://nerd-corner.com/wp-content/uploads/2020/03/arduino_fan_controller_screenshot.jpg 636w, https://nerd-corner.com/wp-content/uploads/2020/03/arduino_fan_controller_screenshot-265x300.jpg 265w" sizes="(max-width: 635px) 100vw, 635px" /></p>
<p>The Arduino code is absolutely simple and can be easily integrated into any existing Arduino <a href="https://www.arduino.cc/en/main/software">program</a>. Since we have connected the base of the transistor to pin 13, we define it as &#8220;motorPin&#8221;. The speed of the fan can then be controlled via the &#8220;speed&#8221; variable. A value between 0 and 255 must be selected for the speed. Depending on the fan model, a minimum speed is necessary for the fan to start.</p>
<p>The post <a href="https://nerd-corner.com/arduino-fan-controller/">Arduino fan controller</a> appeared first on <a href="https://nerd-corner.com">Nerd Corner</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nerd-corner.com/arduino-fan-controller/feed/</wfw:commentRss>
			<slash:comments>9</slash:comments>
		
		
			</item>
	</channel>
</rss>
