¿ªÔÆÌåÓý

Re: Finally first step


 

¿ªÔÆÌåÓý

Ralph,

The rpm sketch is capturing every change in signal on both the a and b channels. So on the 800 PPR encoder I tested with it will process 4* 800 signal changes per rev. If you are going to 5000 rpm it¡¯s probably best to just use the Z channel which signals once per rev. Can you share more details of your encoder such as the PPR and which channels it provides?



Kind Regards

Mark


From: [email protected] <[email protected]> on behalf of Ralph Hulslander <rhulslander@...>
Sent: Saturday, April 15, 2023 3:15:50 PM
To: [email protected] <[email protected]>
Subject: Re: [AtomicELS] Finally first step
?
Yes Mike there was a link, thank you.

Thanks Mark, seems strange to get a error?at ~200 rpm.
But I will investigate (ha).
I will need upto 5,000 rpm.

Ralph

On Sat, Apr 15, 2023 at 6:52?AM Mark Naylor <mark_naylor@...> wrote:
Here is a link to code on GitHub, tested against Arduino UNO and MKR Wifi 1010 using an Omrom E6B2-CWZ6C rotary encoder bought off eBay. Runs upto ~200rpm before detecting errors which could either be the encoder or ability of arduino to keep up with interrupts, but since both tested arduinos see errors at roughly the same level I'd guess its the encoder.

Code free to use under GNU GPL licence and without warranty etc.


--

retired developer, woodworker hobbyist, uk


--
Craftsman?101.07403 12x36 Lathe, Clausing 8520 Vertical Mill, Buffalo 4x12 Mini Lathe, Delta 14" Bandsaw. (The 12x36 lathe, 8520 and bandsaw are all powered with a Consew 3/4 hp Brushless DC motor)?

--

retired developer, woodworker hobbyist, uk

Join [email protected] to automatically receive all group messages.