<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Using a esp32 &amp; a FZ44n MOSFET to control a 4 pin 12V fan - Help Wanted				            </title>
            <link>https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 08 Jun 2026 21:02:10 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Using a esp32 &amp; a FZ44n MOSFET to control a 4 pin 12V fan</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49678</link>
                        <pubDate>Wed, 13 Nov 2024 13:49:53 +0000</pubDate>
                        <description><![CDATA[@davee Thank you so much Dave, your response is really helpful. I&#039;ve ordered a batch of 5 &quot;Cylewet 5Pcs KY040 Rotary Encoder Module&quot; and I&#039;ll try your suggestions when they come in. Again, t...]]></description>
                        <content:encoded><![CDATA[@davee Thank you so much Dave, your response is really helpful. I've ordered a batch of 5 "Cylewet 5Pcs KY040 Rotary Encoder Module" and I'll try your suggestions when they come in. Again, thnx for your help]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Christine86</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49678</guid>
                    </item>
				                    <item>
                        <title>RE: Using a esp32 &amp; a FZ44n MOSFET to control a 4 pin 12V fan</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49677</link>
                        <pubDate>Wed, 13 Nov 2024 12:36:13 +0000</pubDate>
                        <description><![CDATA[@christine86 These are what I purchased to use in a scale adjust application. Very simple to use with a push button as well. Output is simply + or - signal per pulse.]]></description>
                        <content:encoded><![CDATA[<p>@christine86 These are what I purchased to use in a scale adjust application. Very simple to use with a push button as well. Output is simply + or - signal per pulse.</p>
<p><a href="https://amz.run/9p7X" target="_blank" rel="noopener">https://amz.run/9p7X</a></p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49677</guid>
                    </item>
				                    <item>
                        <title>RE: Using a esp32 &amp; a FZ44n MOSFET to control a 4 pin 12V fan</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49675</link>
                        <pubDate>Wed, 13 Nov 2024 10:17:03 +0000</pubDate>
                        <description><![CDATA[Hi Christine  @christine86,
  With respect to your rotary encoder question, I think you are asking about the difference between the &#039;naked&#039; rotary encoder, which is shown in your photo, and...]]></description>
                        <content:encoded><![CDATA[<p>Hi Christine  @christine86,</p>
<p>  With respect to your rotary encoder question, I think you are asking about the difference between the 'naked' rotary encoder, which is shown in your photo, and the same type of encoder, soldered to a small PCB, and often referenced with names like HW-040 or KY-040, making it easy to connect to an Arduino with push-on leads.</p>
<p>The short answer is the PCB version typically includes two extra resistors, with provision to solder on a third one. The two resistors are required for the rotary position sensing, and the 'optional' third resistor to sense whether the spindle is pushed down or not.</p>
<p>I could go into more detail, but there are some articles on the web which at least attempt to explain the situation, and hopefully will be sufficient for your needs. e.g. https://www.handsontec.com/dataspecs/module/Rotary%20Encoder.pdf</p>
<p>If you already have the 'naked' encoder, then you just need to add 2 or 3 resistors, as part of the interconnect between the encoder and the microcontroller.</p>
<p>----------</p>
<p>Please note, the connection term 'GND' on your photo, merely refers to 1 of the two terminals of a single pole switch. I think you will find the two 'GNDs' are isolated from each other (check your switches with a meter), with one 'GND' associated with the 'Switch' terminal; and the other with the Out A and Out B terminals, each of which is a single pole switch terminal. Hopefully, if you look at the pdf file I just referenced, you will be able to visualise the situation.</p>
<p>The same reference shows a schematic with the two resistors you need to convert the 'naked' switches to the same functionality as the PCB module. If you also want to use the 'push switch' functionality, add a third resistor between the + and SW terminals of the schematic shown in the reference.</p>
<p>The value of these resistors is not critical ... maybe look for something between about 4.7 kOhms and 22kOhms in your spare's box.</p>
<p>Some people will suggest you can omit the resistors, and merely set the GPIO pin to 'Input with pullup' in software. They will probably work on a test, but I would not recommend it, as the processor's internal resistors tend to be quite high in value (e.g. circa 70kOhm), which makes them susceptible to noise, etc.</p>
<p>Also note that the reference to 5V applies when connecting to boards with 5V processors, like the 'original' Arduinos (UNO, NANO, MEGA, etc.). Many other popular choices, including the newer Arduino designs, ESP32 and ESP8266 have 3.3V processors. For the latter, simply connect the "+5" input on the encoder schematic to a 3.3V supply instead of 5V. All the common development boards using 3.3V processors have a 3.3V output pin, which can be used for this purpose. (eg Pin 1 on your schematic.)</p>
<p>----------</p>
<p>I recommend you initially wire up the encoder, and use a small test programme that simply prints numbers to the serial monitor, according to the operation of the encoder ... e.g. a 'counter' that starts at zero, increments on clockwise operation, decrements on anticlockwise. When you have that working, it should be easy to integrate the functionality into your main programme.</p>
<p>-----------</p>
<p>I hope this helps. If you would like some further explanation, then please say so.</p>
<p>Best wishes, Dave</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>DaveE</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49675</guid>
                    </item>
				                    <item>
                        <title>RE: Using a esp32 &amp; a FZ44n MOSFET to control a 4 pin 12V fan</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49674</link>
                        <pubDate>Wed, 13 Nov 2024 04:58:22 +0000</pubDate>
                        <description><![CDATA[I&#039;m not sure I completely understand what you&#039;re trying to do, but maybe this will post you in the right direction as far as PWM control of your fan.]]></description>
                        <content:encoded><![CDATA[<p></p>
<p></p>
<p><span style="font-size: 14px">What I want to do, is to 'set' the fan speed using a PWM signal from pin 2 on the esp32, then read the 'TACHO' on pin 4, &amp; adjust the fan speed(PWM signal) to suit.</span></p>
<p>I've seen ppl adjusting the speed using the 'fan ground', but I'd really like to properly use the 4 pins of the fan to get this to work. I think I'll need to adjust the frequency of the PWM signal, but that's where I'm now stuck!! DO I need to adjust the PWM frequency, &amp; how do I go on from there.</p>
<span class="wpf-attachment-404">-- attachment is not available --</span>
<p>Can anyone please tell me how to achieve this? I also have the rotary encoder (shown in the above image), which I want to use to select the various fan speeds, but the page I used to buy this, shows it using TWO grounds, but no VCC? Do I have to scrap this for another, or does someone know which pin is supposed to be VCC??</p>
<p><span style="font-size: 14px"></span></p>
<p>I'm not sure I completely understand what you're trying to do, but maybe this will post you in the right direction as far as PWM control of your fan.</p>
<p>https://www.youtube.com/watch?v=YBNEXWp-gf0&amp;t=2s</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Will</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49674</guid>
                    </item>
				                    <item>
                        <title>RE: Using a esp32 &amp; a FZ44n MOSFET to control a 4 pin 12V fan</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49673</link>
                        <pubDate>Wed, 13 Nov 2024 00:27:48 +0000</pubDate>
                        <description><![CDATA[@christine86 The forum has a well known bug re Amazon links. Either us a URL shortener or enclose in quotes.]]></description>
                        <content:encoded><![CDATA[@christine86 The forum has a well known bug re Amazon links. Either us a URL shortener or enclose in quotes.]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49673</guid>
                    </item>
				                    <item>
                        <title>RE: Using a esp32 &amp; a FZ44n MOSFET to control a 4 pin 12V fan</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49671</link>
                        <pubDate>Tue, 12 Nov 2024 23:56:43 +0000</pubDate>
                        <description><![CDATA[This is from Amazon. I have no idea why it&#039;s not working. You should be able to search for it using the first bit of the description]]></description>
                        <content:encoded><![CDATA[9806
<p>This is from Amazon. I have no idea why it's not working. You should be able to search for it using the first bit of the description</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Christine86</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49671</guid>
                    </item>
				                    <item>
                        <title>RE: Using a esp32 &amp; a FZ44n MOSFET to control a 4 pin 12V fan</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49670</link>
                        <pubDate>Tue, 12 Nov 2024 23:56:09 +0000</pubDate>
                        <description><![CDATA[@robotbuilder This is from Amazon. I have no idea why it&#039;s not working. You should be able to search for it using the first bit of the description?]]></description>
                        <content:encoded><![CDATA[@robotbuilder This is from Amazon. I have no idea why it's not working. You should be able to search for it using the first bit of the description?]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Christine86</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49670</guid>
                    </item>
				                    <item>
                        <title>RE: Using a esp32 &amp; a FZ44n MOSFET to control a 4 pin 12V fan</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49669</link>
                        <pubDate>Tue, 12 Nov 2024 23:51:47 +0000</pubDate>
                        <description><![CDATA[@robotbuilder Sorry, that didn&#039;t seem to work. I hope this is better?]]></description>
                        <content:encoded><![CDATA[<p>@robotbuilder Sorry, that didn't seem to work. I hope this is better?</p>
<p>https://www.amazon.com/Degree-Encoder-Modules-Digital-Potentiometer/dp/B092Z2GVX2/ref</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Christine86</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49669</guid>
                    </item>
				                    <item>
                        <title>RE: Using a esp32 &amp; a FZ44n MOSFET to control a 4 pin 12V fan</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49668</link>
                        <pubDate>Tue, 12 Nov 2024 23:49:00 +0000</pubDate>
                        <description><![CDATA[@robotbuilder Hi, yes I bought it on Amazon here
Do you think I should chuck these 5 encoders, &amp; buy something like the one you suggest in that article?
Christine]]></description>
                        <content:encoded><![CDATA[<p>@robotbuilder Hi, yes I bought it on Amazon here</p>
<p>https://www.amazon.com/Degree-Encoder-Modules-Digital-Potentiometer/dp/B092Z2GVX2/ref=sr_1_1?crid=2WJ7LPQNP1FSK&amp;dib=eyJ2IjoiMSJ9.S0_CaZRWnDeJwBtVNGM1X7V-3AKWrpZZJjRQYqcHuMXbSMd60Hp0p78f__7OeJgicGa0G0DzUMHDVRW82gmAFYwkEiu_KvYsP9jdzeWFRY7979FjnbxhYX2yz3mo5dVOvP0siwJKgR2DRSxjd4Z8u2e463wWgCPaymNCJnW0sK2T00almNkWcDEKnPRs619uplU8RN45dBsrD-fVOsjkrRsypDKSgkkQVZtAWeGOjag.mtXx4yPpRkqCdSqqcmsnWnET7au1rYMbdX4Pakb3Fx0&amp;dib_tag=se&amp;keywords=eMagTech+5+Kits+of+360+Degree+Rotary+Encoder+Modules+EC1&amp;qid=1731455025&amp;sprefix=emagtech+5+kits+of+360+degree+rotary+encoder+modules+ec1%2Caps%2C249&amp;sr=8-1</p>
<p>Do you think I should chuck these 5 encoders, &amp; buy something like the one you suggest in that article?</p>
<p>Christine</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>Christine86</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49668</guid>
                    </item>
				                    <item>
                        <title>RE: Using a esp32 &amp; a FZ44n MOSFET to control a 4 pin 12V fan</title>
                        <link>https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49667</link>
                        <pubDate>Tue, 12 Nov 2024 23:38:52 +0000</pubDate>
                        <description><![CDATA[@christine86

I also have the rotary encoder (shown in the above image), which I want to use to select the various fan speeds, but the page I used to buy this, shows it using TWO grounds, ...]]></description>
                        <content:encoded><![CDATA[<p><span>@christine86</span></p>
<blockquote>
<p>I also have the rotary encoder (shown in the above image), which I want to use to select the various fan speeds, but the page I used to buy this, shows it using TWO grounds, but no VCC? Do I have to scrap this for another, or does someone know which pin is supposed to be VCC??</p>
</blockquote>
<p><br />Can you give a link to the page used to buy it?<br /><br />https://howtomechatronics.com/tutorials/arduino/rotary-encoder-works-use-arduino/</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/help-wanted/">Help Wanted</category>                        <dc:creator>robotBuilder</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/help-wanted/using-a-esp32-a-fz44n-mosfet-to-control-a-4-pin-12v-fan/#post-49667</guid>
                    </item>
							        </channel>
        </rss>
		