<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / Rexduino counter problem]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=564&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=564"/>
	<updated>2018-12-17T10:09:17Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=564</id>
	<entry>
		<title type="html"><![CDATA[Re: Rexduino counter problem]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2199#p2199"/>
		<content type="html"><![CDATA[<p>Hi Bodie,<br />this will need a thorough analysis, at the moment I do not see any potential cause of the problem. Can you please try running your algorithm on a Raspberry Pi 3 and check if the problem persists?</p><p>Best regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2018-12-17T10:09:17Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2199#p2199</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Rexduino counter problem]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2196#p2196"/>
		<content type="html"><![CDATA[<p>Hi Tomas,<br />Yes, as you wrote, I checked it in trend.<br />The userRecv trend is attached, looks like it is rising linearly.</p><p>Regards</p><p>Bodie</p><p><span class="postimg"><img src="https://www.rexygen.com/oldforum/img/members/127/log1.png" alt="log1.png" /></span></p>]]></content>
		<author>
			<name><![CDATA[bodie]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=127</uri>
		</author>
		<updated>2018-12-13T12:56:31Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2196#p2196</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Rexduino counter problem]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2195#p2195"/>
		<content type="html"><![CDATA[<p>Hi Bodie,</p><p>just to be sure: did you check trend of err_code and err_subcode? Can you also check userRecv output of Arduino subsystem? It should show Arduino internal time.</p><p>Regards, Tomas</p>]]></content>
		<author>
			<name><![CDATA[tomáš čechura]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=39</uri>
		</author>
		<updated>2018-12-13T12:16:27Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2195#p2195</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Rexduino counter problem]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2194#p2194"/>
		<content type="html"><![CDATA[<p>Hi Jaroslav,<br />I checked err_code and err_subcode and there were zeros.<br />I tried to rotate it manually, but i am not sure if I was able to rotate it with constant speed. Still problems with counter value, see attached picture.<br />I also attached diagnostic window screen, average time was 3.59 ms and maximum 6.87 ms.</p><p>Regards</p><p>Bodie</p><p><span class="postimg"><img src="https://www.rexygen.com/oldforum/img/members/127/CNT2_output2.png" alt="CNT2_output2.png" /></span></p><p><span class="postimg"><img src="https://www.rexygen.com/oldforum/img/members/127/diagnostic.png" alt="diagnostic.png" /></span></p>]]></content>
		<author>
			<name><![CDATA[bodie]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=127</uri>
		</author>
		<updated>2018-12-13T10:30:34Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2194#p2194</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Rexduino counter problem]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2191#p2191"/>
		<content type="html"><![CDATA[<p>Hi Bodie,<br />thanks for the detailed description of the problem. Three questions on my mind:</p><ul><li><p>Did you also check the err_code and err_subcode outputs? I guess there will be some nonzero values.</p></li><li><p>Can you try rotating the encoder with your hand to avoid noise generated by the motor? Does the problem still occur in such a case?</p></li><li><p>What is the average and maximum execution time of your task?</p></li></ul><p>Kind regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2018-12-13T07:42:27Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2191#p2191</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Rexduino counter problem]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2189#p2189"/>
		<content type="html"><![CDATA[<p>Hello,<br />I am using Rexduino (*.mdl file and three *.ino files from github) in Rexygen and I have problem with counter. I set the pinmode2 to Encoder A, pinmode4 to Encoder B and connected CNB with state on to CNT2E. The incremental encoder is connected to Arduino UNO board, measuring the DC motor. When I set the PWM for motor to constant value, it runs quite constantly. But the output from Arduino UNO mask, CNT2, is updating irregularly.</p><p><span class="postimg"><img src="https://www.rexcontrols.cz/forum/img/members/127/CNT2_output.png" alt="CNT2_output.png" /></span></p><p>I checked comm_status, it is 3 without changes. I also tried to increase baudrate from 57600 to 115200 (in REX and Arduino), but without any help. The program runs on Raspberry Pi 1 B+, ticks 0.005 and ntick0 for used task is 2 (so periode of mz task is 10 ms).</p><p>Thanks for your help.</p>]]></content>
		<author>
			<name><![CDATA[bodie]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=127</uri>
		</author>
		<updated>2018-12-11T10:46:16Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2189#p2189</id>
	</entry>
</feed>
