<?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>
					                		GPIO Project Question - Filter control - Prusa add-ons (GPIO, accelerometer,...)                                    </title>
                <link>https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/</link>
                <description>Prusa3D Forum Discussion Board</description>
                <language>en-US</language>
                <lastBuildDate>Tue, 09 Jun 2026 12:14:30 +0000</lastBuildDate>
                <generator>wpForo</generator>
                <ttl>60</ttl>
                					                    <item>
                        <title>RE: GPIO Project Question - Filter control</title>
                        <link>https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-732040</link>
                        <pubDate>Wed, 08 Jan 2025 14:09:45 +0000</pubDate>
                        <description><![CDATA[Yeah that makes sense, then just use one of the GPIO pins as relay input to activate it. Now I just gotta figure out the G-Code instructions, heh. Posted by: @prez If you were going to power...]]></description>
                        <content:encoded><![CDATA[<p>Yeah that makes sense, then just use one of the GPIO pins as relay input to activate it. Now I just gotta figure out the G-Code instructions, heh.</p><blockquote data-userid="156310" data-postid="732004" data-mention="prez"><div class="wpforo-post-quote-author"><strong> Posted by: @prez </strong></div><p>If you were going to power the relay from the GPIO, then the ground for the relay would go to one of the GPIO ground pins.</p><p>However, I would recommend instead buying a 24V -&gt; 5V buck converter (eg. https://www.amazon.com/gp/product/B07HRGV7XD) - then connect the input of the buck converter to the VCC (+) 24V (red cable) input to the Prusa.  I would recommend the one for the electronics, not the heat bed.  The ground (both for the buck converter AND the relay board) can go to the ground (black cable) for the Prusa too.  That way the relay works regardless of the state of any GPIO pins, etc.</p><p>This would then mean that 1) you would not be using up a GPIO pin to just power a relay, 2) you would not need to make sure that GPIO pin is enabled for the relay to work, etc.</p><p> </p><p>Preston</p></blockquote><p> </p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/">Prusa add-ons (GPIO, accelerometer,...)</category>                        <dc:creator>VJ</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-732040</guid>
                    </item>
                                        <item>
                        <title>RE: GPIO Project Question - Filter control</title>
                        <link>https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-732004</link>
                        <pubDate>Wed, 08 Jan 2025 02:19:31 +0000</pubDate>
                        <description><![CDATA[If you were going to power the relay from the GPIO, then the ground for the relay would go to one of the GPIO ground pins.However, I would recommend instead buying a 24V -&gt; 5V buck conver...]]></description>
                        <content:encoded><![CDATA[<p>If you were going to power the relay from the GPIO, then the ground for the relay would go to one of the GPIO ground pins.</p><p>However, I would recommend instead buying a 24V -&gt; 5V buck converter (eg. https://www.amazon.com/gp/product/B07HRGV7XD) - then connect the input of the buck converter to the VCC (+) 24V (red cable) input to the Prusa.  I would recommend the one for the electronics, not the heat bed.  The ground (both for the buck converter AND the relay board) can go to the ground (black cable) for the Prusa too.  That way the relay works regardless of the state of any GPIO pins, etc.</p><p>This would then mean that 1) you would not be using up a GPIO pin to just power a relay, 2) you would not need to make sure that GPIO pin is enabled for the relay to work, etc.</p><p> </p><p>Preston</p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/">Prusa add-ons (GPIO, accelerometer,...)</category>                        <dc:creator>PreZ</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-732004</guid>
                    </item>
                                        <item>
                        <title>RE:</title>
                        <link>https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-731970</link>
                        <pubDate>Tue, 07 Jan 2025 17:50:42 +0000</pubDate>
                        <description><![CDATA[What I have a hard time understanding is the board power. How would I give power to the relay module if I&#039;m using the GPIO? My understanding is the the GPIO outputs 3.3v, so if I understand ...]]></description>
                        <content:encoded><![CDATA[<p>What I have a hard time understanding is the board power. How would I give power to the relay module if I'm using the GPIO? My understanding is the the GPIO outputs 3.3v, so if I understand correctly, I use one of the GPIO outputs to activate the Relay module input. but where/what do I connect the GND and VCC on the module to? (I understand the other side of the module, Fans connected to NO and COM connected to ground)</p>
<p>Some of the tutorials I've seen talk about an Arduino 5V pin, but from what i can see on the Prusa GPIO page, there's no similar power pin, correct?</p>
<blockquote data-userid="156310" data-postid="731968" data-mention="prez">
<div class="wpforo-post-quote-author"><strong> Posted by: @prez </strong></div>
<p>It should, yes.  Assuming the relay is separately powered from input voltage.</p>
<p>There ARE relays out there that power themselves from the same line they are powering - those will generally only have 4 wires (input, output, ground, sense).  They will, when they sense voltage, close the input to the output so that the switched device gets the same input power.  For these, the input voltage needs to match the voltage of the device you're switching, and the relay needs to match that voltage.</p>
<p>However, a properly isolated relay has 5 wires (power, ground, sense, input, output) - or more correctly, 2 wires (board power/ground) + 3 wires per relay (sense, input, output).  The board power is the 5V, 3.3V, 12V, 24V, etc.  That's not a range usually, it's very specific.  The input is often more a max capacity (like the AC 250V or DC 30V at 10 Amps I mentioned before).  This is the kind of relay you usually want.</p>
<p>Either way the sense wire can usually have any voltage on it DC (I am sure you could overload it with a massive voltage, but that's beyond this scope), so the floating voltage output from the GPIO (which can be anything from 0V to 3.3V, depending on line noise) is sufficient to be sensed by the relay.</p>
</blockquote>
<p> </p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/">Prusa add-ons (GPIO, accelerometer,...)</category>                        <dc:creator>VJ</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-731970</guid>
                    </item>
                                        <item>
                        <title>RE:</title>
                        <link>https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-731968</link>
                        <pubDate>Tue, 07 Jan 2025 17:20:21 +0000</pubDate>
                        <description><![CDATA[It should, yes.  Assuming the relay is separately powered from input voltage.
There ARE relays out there that power themselves from the same line they are powering - those will generally on...]]></description>
                        <content:encoded><![CDATA[<p>It should, yes.  Assuming the relay is separately powered from input voltage.</p>
<p>There ARE relays out there that power themselves from the same line they are powering - those will generally only have 4 wires (input, output, ground, sense).  They will, when they sense voltage, close the input to the output so that the switched device gets the same input power.  For these, the input voltage needs to match the voltage of the device you're switching, and the relay needs to match that voltage.</p>
<p>However, a properly isolated relay has 5 wires (power, ground, sense, input, output) - or more correctly, 2 wires (board power/ground) + 3 wires per relay (sense, input, output).  The board power is the 5V, 3.3V, 12V, 24V, etc.  That's not a range usually, it's very specific.  The input is often more a max capacity (like the AC 250V or DC 30V at 10 Amps I mentioned before).  This is the kind of relay you usually want.</p>
<p>Either way the sense wire can usually have any voltage on it DC (I am sure you could overload it with a massive voltage, but that's beyond this scope), so the floating voltage output from the GPIO (which can be anything from 0V to 3.3V, depending on line noise) is sufficient to be sensed by the relay.</p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/">Prusa add-ons (GPIO, accelerometer,...)</category>                        <dc:creator>PreZ</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-731968</guid>
                    </item>
                                        <item>
                        <title>RE: GPIO Project Question - Filter control</title>
                        <link>https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-731967</link>
                        <pubDate>Tue, 07 Jan 2025 17:12:35 +0000</pubDate>
                        <description><![CDATA[OK so a 12V, 24v relay will be able to work even with a 3.3v input to close the relay? Posted by: @prez No, the sensors are for any voltage. I used- a 4x relay (5V).  The power for the relay...]]></description>
                        <content:encoded><![CDATA[<p>OK so a 12V, 24v relay will be able to work even with a 3.3v input to close the relay?</p><blockquote data-userid="156310" data-postid="731966" data-mention="prez"><div class="wpforo-post-quote-author"><strong> Posted by: @prez </strong></div><p>No, the sensors are for any voltage.</p><p> </p><p>I used https://www.amazon.com/gp/product/B00KTEN3TM - a 4x relay (5V).  The power for the relay board itself is 5V, which is convenient for me since I also power a few 5V devices too (so I can split the 5V to the relay board AND to the devices via. the relay itself).</p><p>The power you are switching (ie. the fans, lights, whatever) doesn't generally matter except that they are within the capacity of the relay itself (which in this case is DC up to 30V or AC up to 250V at 10 amps).</p><p>The sensor wires just detect if there are 0V or some volts.  It doesn't matter if it detects 3.3, 1.2, 5, etc.  It's either grounded (0V) or not.  If not grounded, then the relay closes, if grounded the relay opens.</p><p> </p><p>That said, if you want to use a 3.3V relay, that's fine - or a 24V relay.  Any of them will do, as long as the power you supply to the relay itself is at the 5V, 3.3V, 24V or whatever the relay board itself needs.</p></blockquote><p> </p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/">Prusa add-ons (GPIO, accelerometer,...)</category>                        <dc:creator>VJ</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-731967</guid>
                    </item>
                                        <item>
                        <title>RE: GPIO Project Question - Filter control</title>
                        <link>https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-731966</link>
                        <pubDate>Tue, 07 Jan 2025 17:07:32 +0000</pubDate>
                        <description><![CDATA[No, the sensors are for any voltage. I used- a 4x relay (5V).  The power for the relay board itself is 5V, which is convenient for me since I also power a few 5V devices too (so I can split ...]]></description>
                        <content:encoded><![CDATA[<p>No, the sensors are for any voltage.</p><p> </p><p>I used https://www.amazon.com/gp/product/B00KTEN3TM - a 4x relay (5V).  The power for the relay board itself is 5V, which is convenient for me since I also power a few 5V devices too (so I can split the 5V to the relay board AND to the devices via. the relay itself).</p><p>The power you are switching (ie. the fans, lights, whatever) doesn't generally matter except that they are within the capacity of the relay itself (which in this case is DC up to 30V or AC up to 250V at 10 amps).</p><p>The sensor wires just detect if there are 0V or some volts.  It doesn't matter if it detects 3.3, 1.2, 5, etc.  It's either grounded (0V) or not.  If not grounded, then the relay closes, if grounded the relay opens.</p><p> </p><p>That said, if you want to use a 3.3V relay, that's fine - or a 24V relay.  Any of them will do, as long as the power you supply to the relay itself is at the 5V, 3.3V, 24V or whatever the relay board itself needs.</p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/">Prusa add-ons (GPIO, accelerometer,...)</category>                        <dc:creator>PreZ</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-731966</guid>
                    </item>
                                        <item>
                        <title>RE: GPIO Project Question - Filter control</title>
                        <link>https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-731965</link>
                        <pubDate>Tue, 07 Jan 2025 16:58:13 +0000</pubDate>
                        <description><![CDATA[If the GPIO output is 3.3V, wouldn&#039;t it make sense to use a 3.3V Octocoupler? Like this one? Posted by: @_kaszpir_ Use MOSFET with octocouplers such as HW-532, or electromagnetic relay switc...]]></description>
                        <content:encoded><![CDATA[<p>If the GPIO output is 3.3V, wouldn't it make sense to use a 3.3V Octocoupler? Like this <a href="https://www.amazon.ca/Be-Your-Mind-Optocoupler-Development/dp/B0CWGV3SJQ" target="_blank" rel="noopener">one</a>?</p><blockquote data-userid="523281" data-postid="731935" data-mention="_kaszpir_"><div class="wpforo-post-quote-author"><strong> Posted by: @_kaszpir_ </strong></div><p>Use MOSFET with octocouplers such as HW-532, or electromagnetic relay switches which can be controlled via octocouplers via 5v  https://www.explainthatstuff.com/howrelayswork.html</p></blockquote><p> </p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/">Prusa add-ons (GPIO, accelerometer,...)</category>                        <dc:creator>VJ</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-731965</guid>
                    </item>
                                        <item>
                        <title>RE: GPIO Project Question - Filter control</title>
                        <link>https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-731935</link>
                        <pubDate>Tue, 07 Jan 2025 08:11:47 +0000</pubDate>
                        <description><![CDATA[Use MOSFET with octocouplers such as HW-532, or electromagnetic relay switches which can be controlled via octocouplers via 5v]]></description>
                        <content:encoded><![CDATA[<p>Use MOSFET with octocouplers such as HW-532, or electromagnetic relay switches which can be controlled via octocouplers via 5v  https://www.explainthatstuff.com/howrelayswork.html</p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/">Prusa add-ons (GPIO, accelerometer,...)</category>                        <dc:creator>_KaszpiR_</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-731935</guid>
                    </item>
                                        <item>
                        <title>RE:</title>
                        <link>https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-731900</link>
                        <pubDate>Mon, 06 Jan 2025 23:12:11 +0000</pubDate>
                        <description><![CDATA[Posted by: @prez 
I actually use relays.  You can buy cheap relays on amazon.  Wire the power directly to the fan via. the relay (be sure to convert the 24V to the appropriate voltage of th...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="156310" data-postid="730952" data-mention="prez">
<div class="wpforo-post-quote-author"><strong> Posted by: @prez </strong></div>
<p>I actually use relays.  You can buy cheap relays on amazon.  Wire the power directly to the fan via. the relay (be sure to convert the 24V to the appropriate voltage of the fan), then wire the relay signal pin to the GPIO, so if the signal is high it will close the relay and activate the fan.</p>
</blockquote>
<p>What kind of relay do you use? What specs should I be looking for? I have 2 24v fans (for enclosure) that are currently powered by the PSU and activated via a switch. I'd like to use the GPIO to turn the fans on when a print starts and stop when it ends.</p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/">Prusa add-ons (GPIO, accelerometer,...)</category>                        <dc:creator>VJ</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-731900</guid>
                    </item>
                                        <item>
                        <title>RE: GPIO Project Question - Filter control</title>
                        <link>https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-730960</link>
                        <pubDate>Sat, 28 Dec 2024 20:04:20 +0000</pubDate>
                        <description><![CDATA[Well the issue was with the firmware. After updating it to newest version it just started to work.Nonetheless I was thinking about using relays and stuff because I don’t like how turning fan...]]></description>
                        <content:encoded><![CDATA[<p>Well the issue was with the firmware. After updating it to newest version it just started to work.</p><p>Nonetheless I was thinking about using relays and stuff because I don’t like how turning fan on from GPIO disables the front buttons. But since Core One has been announced this whole GPIO/enclosure/whatever is obsolete now, since most likely it will not be reused for that upgrade. Money and time wasted, starts to become a theme with Prusa recently. </p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/">Prusa add-ons (GPIO, accelerometer,...)</category>                        <dc:creator>Vir</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4s-add-ons/gpio-question/#post-730960</guid>
                    </item>
                                                </channel>
        </rss>
        