Quadrature encoder obex - mod
jeromelab
Posts: 31
Hello,
I am using the Jeff Martin's quadrature object which works fine with the avago HEDR-54xx encoders. Now I am hooking up 5 encoders to the same board and folloowing layout and cabling issues I would prefer having the 5 encoders not being assigned to successive pins (0-1 for fisrt encoder then 2-3 for the next ...) but every 5 pins(0-1 for first, 5-6 for second ...).
I have no experience with propeller assembly. So how would I modify the object so that I can have the 5 pins layout (or even better having a variable to parametrize this increment). I understand there is probably a simple increment somewhere but rather than trying to locate it by hit and miss, I thought I will ask first people who knows...
In attachment, Jeff Martin's object.
Thanks
I am using the Jeff Martin's quadrature object which works fine with the avago HEDR-54xx encoders. Now I am hooking up 5 encoders to the same board and folloowing layout and cabling issues I would prefer having the 5 encoders not being assigned to successive pins (0-1 for fisrt encoder then 2-3 for the next ...) but every 5 pins(0-1 for first, 5-6 for second ...).
I have no experience with propeller assembly. So how would I modify the object so that I can have the 5 pins layout (or even better having a variable to parametrize this increment). I understand there is probably a simple increment somewhere but rather than trying to locate it by hit and miss, I thought I will ask first people who knows...
In attachment, Jeff Martin's object.
Thanks
Comments
I did not have time to thoroughly analyze the code so it may require other changes as well.
Seems it needs more work than modifying the "ror".
Nevermind I found another (hardware) solution.