<?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[Fan Speed Control with Counter]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I'm having some issues getting the Monarco to control fan speed correctly. I've had it working many times, only now the fan motor has the optocouplers onboard, now with a counter.</p>
<p dir="auto">I used to wire the speed input to 5v and the common back to Dout1, worked perfectly 0-100% = 400-2000rpm. Control now appears to be in reverse. lower duty cycle = faster.</p>
<p dir="auto">I also can't get the counter working. The couplers have a speed feedback (counter, 2 pulses per revolution) I'd like to use. I also can't seem to get this working.</p>
<p dir="auto"><img src="/assets/uploads/files/1659412743327-6b76a7f2-aebd-40c1-ae53-30e92555bf57-image.png" alt="6b76a7f2-aebd-40c1-ae53-30e92555bf57-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1659413516820-e25a88fb-0391-4f41-b7f2-966568464791-image.png" alt="e25a88fb-0391-4f41-b7f2-966568464791-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Just checking what I may of done wrong here. I think if I wire the fan the old way, it will work. But this would mean the speed output wouldn't.</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/topic/321/fan-speed-control-with-counter</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 12:00:10 GMT</lastBuildDate><atom:link href="https://forum.rexygen.com/topic/321.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Aug 2022 04:08:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fan Speed Control with Counter on Thu, 11 Aug 2022 06:03:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/11">@mikeyh</a> You are welcome.<br />
Cheers,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/1144</link><guid isPermaLink="true">https://forum.rexygen.com/post/1144</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Thu, 11 Aug 2022 06:03:27 GMT</pubDate></item><item><title><![CDATA[Reply to Fan Speed Control with Counter on Thu, 11 Aug 2022 05:10:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/133">@reitinge</a><br />
Thanks Jan,</p>
<p dir="auto">I kept the DIV block in the end as using a 1sec delay gives faster response than waiting the whole minute to count.</p>
<p dir="auto">Thanks for your help as always.</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/post/1143</link><guid isPermaLink="true">https://forum.rexygen.com/post/1143</guid><dc:creator><![CDATA[MikeyH]]></dc:creator><pubDate>Thu, 11 Aug 2022 05:10:46 GMT</pubDate></item><item><title><![CDATA[Reply to Fan Speed Control with Counter on Wed, 10 Aug 2022 06:32:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/11">@mikeyh</a><br />
Hi Mike,<br />
it doesn't look bad. If you only want to monitor revolutions per minute, you can set a delay of 60 in the DELM block and delete the DIV and MUL blocks. I prepared a DIV block just for case you want a value in seconds.</p>
<p dir="auto">Counter reset is only for timely reset so that the value does not overflow. But the counters are 16-bit. So the value doesn't overflow for a while.</p>
<p dir="auto">Cheers,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/1140</link><guid isPermaLink="true">https://forum.rexygen.com/post/1140</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Wed, 10 Aug 2022 06:32:38 GMT</pubDate></item><item><title><![CDATA[Reply to Fan Speed Control with Counter on Tue, 09 Aug 2022 23:14:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/133">@reitinge</a> Hi Jan,</p>
<p dir="auto">That seems to do something. I've added a MUL block to *60. Might need tuning or level tick changing. RPM seems to be 100-150 low compared to requested speed.</p>
<p dir="auto"><img src="/assets/uploads/files/1660086613772-07db2d48-acad-4e59-958a-fcfecf27dded-image.png" alt="07db2d48-acad-4e59-958a-fcfecf27dded-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1660086640385-887d8cf6-0d8a-452d-ab5e-698ce5928215-image.png" alt="887d8cf6-0d8a-452d-ab5e-698ce5928215-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1660086680178-e105680f-4668-4105-9fe5-bceaf0244c89-image.png" alt="e105680f-4668-4105-9fe5-bceaf0244c89-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1660086745760-733ac30d-f42c-4646-a77f-ccdce0371e59-image.png" alt="733ac30d-f42c-4646-a77f-ccdce0371e59-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Are the counter resets required or are they just incase you want to reset the count?</p>
<p dir="auto">This is only for monitoring by the way. The fan reduces speed when torque demand is to high. So it's nice to just track requested speed against actual speed.</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/post/1139</link><guid isPermaLink="true">https://forum.rexygen.com/post/1139</guid><dc:creator><![CDATA[MikeyH]]></dc:creator><pubDate>Tue, 09 Aug 2022 23:14:23 GMT</pubDate></item><item><title><![CDATA[Reply to Fan Speed Control with Counter on Fri, 05 Aug 2022 09:01:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/11">@mikeyh</a> Hi Mike,<br />
I don't know if this is the right way to measure speed. I'd rather say it's probably the only way to measure speed with just the Monarco HAT. You can use math blocks to calculate the number of ticks in a certain time (see image bellow). In the DELM block I set a delay of 1s and in the CNR block there is also a value of 1. So I get the number of ticks per second on the DIV output. Of course, you can choose another time period.</p>
<p dir="auto">Alternatively, you can use the DIF_ block directly (see doc <a href="https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/DIF_.html#x49-480004">here</a>).</p>
<p dir="auto">If you only need this information for observing, it will be ok. If you would like to control the rotation speed accordingly, you will need to filter the values ​​and it will probably be a lot of work.</p>
<p dir="auto"><img src="/assets/uploads/files/1659689584211-8b760a02-5ebf-4e7d-bf1b-e6d2a4e34a90-image.png" alt="8b760a02-5ebf-4e7d-bf1b-e6d2a4e34a90-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Cheers,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/1138</link><guid isPermaLink="true">https://forum.rexygen.com/post/1138</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Fri, 05 Aug 2022 09:01:01 GMT</pubDate></item><item><title><![CDATA[Reply to Fan Speed Control with Counter on Thu, 04 Aug 2022 19:15:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/133">@reitinge</a> Hi Jan,</p>
<p dir="auto">I've just tried putting 24v directly onto Din1 and it counts up. So I'm thinking maybe could be the resistor, as you said.</p>
<p dir="auto">Is the counter I'm using also the right thing for this? Measuring RPM from an optocoupler? As I'm after a speed not an accumulative count.</p>
<p dir="auto">Cheers<br />
Mike</p>
]]></description><link>https://forum.rexygen.com/post/1137</link><guid isPermaLink="true">https://forum.rexygen.com/post/1137</guid><dc:creator><![CDATA[MikeyH]]></dc:creator><pubDate>Thu, 04 Aug 2022 19:15:42 GMT</pubDate></item><item><title><![CDATA[Reply to Fan Speed Control with Counter on Thu, 04 Aug 2022 18:45:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/11">@mikeyh</a><br />
According to this <a href="https://support.monarco.io/help/digital-inputs-of-the-monarco-hat">article</a>, anything between 3.5 and 30V should be taken as logic 1. So it should be possible to use 5 and 24 V directly from the Monarco HAT for testing.</p>
<p dir="auto">Increasing the number also happened to me during testing. I think it might have something to do with the pull up resistor, but I'd better ask an electrical expert tomorrow and let you know.</p>
<p dir="auto">Cheers,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/1136</link><guid isPermaLink="true">https://forum.rexygen.com/post/1136</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Thu, 04 Aug 2022 18:45:03 GMT</pubDate></item><item><title><![CDATA[Reply to Fan Speed Control with Counter on Thu, 04 Aug 2022 10:20:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/133">@reitinge</a> Hi Jan,</p>
<p dir="auto">Can I use the 5v or 24v off the HAT for this? Or does it need to be off board?</p>
<p dir="auto">I’ve seen the counter count. But it seemed to go up in strange numbers. And stopped at 14. It was an accumulative count of sorts.</p>
<p dir="auto">4, 7, 14, then stopped. Altering speed did nothing to effect the numbers</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/post/1135</link><guid isPermaLink="true">https://forum.rexygen.com/post/1135</guid><dc:creator><![CDATA[MikeyH]]></dc:creator><pubDate>Thu, 04 Aug 2022 10:20:40 GMT</pubDate></item><item><title><![CDATA[Reply to Fan Speed Control with Counter on Thu, 04 Aug 2022 07:17:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/11">@mikeyh</a><br />
Hi Mike,<br />
have you tried if the Monarco counter works if you connect some voltage directly to DIN1?  What is the voltage at the tachometer output?<br />
Cheers,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/1134</link><guid isPermaLink="true">https://forum.rexygen.com/post/1134</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Thu, 04 Aug 2022 07:17:32 GMT</pubDate></item><item><title><![CDATA[Reply to Fan Speed Control with Counter on Thu, 04 Aug 2022 04:30:10 GMT]]></title><description><![CDATA[<p dir="auto">Update:</p>
<p dir="auto">So I have the variable fan speed working now. I had to reverse the output (duty cycle) using a LIN or CNDR block (0rpm=100%, 2000rpm=0%) Not ideal but it works. How it's wired is shown below.<br />
<img src="/assets/uploads/files/1659587003345-0b572c4d-cb76-4800-983f-489912b35a06-image.png" alt="0b572c4d-cb76-4800-983f-489912b35a06-image.png" class=" img-fluid img-markdown" /><br />
Current test program<br />
<img src="/assets/uploads/files/1659587060769-6622f74d-68e6-4a93-8b51-e8c4cdc3215a-image.png" alt="6622f74d-68e6-4a93-8b51-e8c4cdc3215a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I still can't get the tachnometer working though. So any ideas or things people can see I've done wrong. I just don't even get a value to post process into RPM.<br />
<img src="/assets/uploads/files/1659587243730-29633863-91a9-4e91-84e5-48ef956abe3b-image.png" alt="29633863-91a9-4e91-84e5-48ef956abe3b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/post/1133</link><guid isPermaLink="true">https://forum.rexygen.com/post/1133</guid><dc:creator><![CDATA[MikeyH]]></dc:creator><pubDate>Thu, 04 Aug 2022 04:30:10 GMT</pubDate></item></channel></rss>