no reason to double up with an Arduino - two ideas: - you can tack on a soft encoder to Charles' PRU code; there are provisions to tack on 'tasks' to the PRU dolist (PRU assembly, for the hardcore types) - the AM3359 has three quadrature encoders available (eQEP0,1,2)
two of them have all their pins broken out on the original beaglebone (eQEP1 and eQEP2. eQEP0 only has channel B and the index pin broken out). The Beaglebone Black has all three broken out. Those would be pretty high speed. You need to write a driver for them. It boils down to the device tree magic getting the pinmuxing right, and then setup the eQEP's as needed. The way I used to explore the builtin devices is to get the memory mapping in place in Python, then fiddle registers until results make sense. Then make it a HAL driver. example exploring the eCAP timer register: https://github.com/mhaberler/linuxcnc/blob/unified-build-candidate-2/src/hal/components/pru_support/ecaptimer.py -m Am 16.08.2013 um 12:41 schrieb andy pugh <[email protected]>: > On 16 August 2013 11:11, Andrew <[email protected]> wrote: >> What is the encoder pulse rate? > > About 10kHz. > > I suspect that an Arduino with interrupt-driven encoder counters might > be a good solution. > > -- > atp > If you can't fix it, you don't own it. > http://www.ifixit.com/Manifesto > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
