<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[4-Relay Unit control with UiFlow]]></title><description><![CDATA[<p dir="auto">Hi guys!</p>
<p dir="auto">I have played a bit with my 4-Relay Unit in UiFlow, and want to share the result for those who want to program it with blockly.</p>
<p dir="auto">You can control it with I2C at address 0x26<br />
The relay control data reg is 0x11 (decimal 17) and the data is the binary state (1-open, 0-closed) of the relays in decimal number.<br />
If you want to open relay 3, that should be 0100 in binary which is 4 in decimal, so you have to control the relay with the number "4".</p>
<p dir="auto">I made a small diagram, I hope it is clear how to use it :)</p>
<p dir="auto"><img src="/assets/uploads/files/1615577241112-4relay_control_uiflow-resized.jpg" alt="0_1615577235686_4relay_control_uiflow.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">And here is the blockly diagram of a full 4-Relay control with a Core 2, using four touch switches for individual relay control:</p>
<p dir="auto"><img src="/assets/uploads/files/1615577385066-blockly-resized.jpg" alt="0_1615577381495_blockly.JPG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/topic/3078/4-relay-unit-control-with-uiflow</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 03:38:22 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3078.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Mar 2021 19:31:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 4-Relay Unit control with UiFlow on Tue, 27 Apr 2021 15:22:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lgx" aria-label="Profile: lgx">@<bdi>lgx</bdi></a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lgx" aria-label="Profile: lgx">@<bdi>lgx</bdi></a><br />
Thank you for your information.<br />
4 Relay works OK directly connected to Core2.<br />
But how can I connect it using PAHUB ?</p>
]]></description><link>https://community.m5stack.com/post/13635</link><guid isPermaLink="true">https://community.m5stack.com/post/13635</guid><dc:creator><![CDATA[mifi]]></dc:creator><pubDate>Tue, 27 Apr 2021 15:22:25 GMT</pubDate></item><item><title><![CDATA[Reply to 4-Relay Unit control with UiFlow on Sat, 27 Mar 2021 02:23:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lgx" aria-label="Profile: lgx">@<bdi>lgx</bdi></a><br />
Thank you for your reply.<br />
From your information, I knew that it was a Core 2 feature.<br />
I want to use 4-Relay with my M5stickC.<br />
I will continue to study UIflow.</p>
]]></description><link>https://community.m5stack.com/post/13260</link><guid isPermaLink="true">https://community.m5stack.com/post/13260</guid><dc:creator><![CDATA[Rokuemon]]></dc:creator><pubDate>Sat, 27 Mar 2021 02:23:35 GMT</pubDate></item><item><title><![CDATA[Reply to 4-Relay Unit control with UiFlow on Wed, 17 Mar 2021 19:54:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rokuemon" aria-label="Profile: rokuemon">@<bdi>rokuemon</bdi></a></p>
<p dir="auto">Hi!</p>
<p dir="auto">No, the blocks you are speaking of (the blue ones with switch0, switch1...) are<br />
the Core 2's touch switches. You can access them in the UI menu after you put them on screen.<br />
I put 4 of them on screen, to individually control the 4-Relay.<br />
The 4-Relay Unit is not represented in UiFlow units, you can not select it.</p>
<p dir="auto"><img src="/assets/uploads/files/1616010832456-rel-resized.jpg" alt="0_1616010831313_rel.JPG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/13068</link><guid isPermaLink="true">https://community.m5stack.com/post/13068</guid><dc:creator><![CDATA[LGx]]></dc:creator><pubDate>Wed, 17 Mar 2021 19:54:09 GMT</pubDate></item><item><title><![CDATA[Reply to 4-Relay Unit control with UiFlow on Sun, 14 Mar 2021 08:01:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rokuemon" aria-label="Profile: rokuemon">@<bdi>rokuemon</bdi></a> said in <a href="/post/12990">4-Relay Unit control with UiFlow</a>:</p>
<blockquote>
<p dir="auto">Thanks for the great information.<br />
And I have a question.<br />
Is the block in the second half of the last figure a block for 4-Relay Unit?<br />
My UIFlow (ver.1.7.3) doesn't have a 4-Relay Unit icon, so I can't select it.</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rokuemon" aria-label="Profile: rokuemon">@<bdi>rokuemon</bdi></a> said in <a href="/post/12990">4-Relay Unit control with UiFlow</a>:</p>
<blockquote>
<p dir="auto">Thanks for the great information.<br />
And I have a question.<br />
Is the block in the second half of the last figure a block for 4-Relay Unit?<br />
My UIFlow (ver.1.7.3) doesn't have a 4-Relay Unit icon, so I can't select it.</p>
</blockquote>
<p dir="auto">The relay_control blocks are variables that you create and name.</p>
]]></description><link>https://community.m5stack.com/post/12992</link><guid isPermaLink="true">https://community.m5stack.com/post/12992</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 14 Mar 2021 08:01:16 GMT</pubDate></item><item><title><![CDATA[Reply to 4-Relay Unit control with UiFlow on Sun, 14 Mar 2021 07:29:18 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the great information.<br />
And I have a question.<br />
Is the block in the second half of the last figure a block for 4-Relay Unit?<br />
My UIFlow (ver.1.7.3) doesn't have a 4-Relay Unit icon, so I can't select it.</p>
]]></description><link>https://community.m5stack.com/post/12990</link><guid isPermaLink="true">https://community.m5stack.com/post/12990</guid><dc:creator><![CDATA[Rokuemon]]></dc:creator><pubDate>Sun, 14 Mar 2021 07:29:18 GMT</pubDate></item><item><title><![CDATA[Reply to 4-Relay Unit control with UiFlow on Sat, 13 Mar 2021 08:32:52 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for sharing this.</p>
]]></description><link>https://community.m5stack.com/post/12968</link><guid isPermaLink="true">https://community.m5stack.com/post/12968</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 13 Mar 2021 08:32:52 GMT</pubDate></item></channel></rss>