> On 20 Nov 2014, at 19:14, andy pugh <[email protected]> wrote: > > On 20 November 2014 17:56, Kirk Wallace <[email protected]> wrote: >> I seem to recall, to get fast PWM, I had to use Timer1 and not use the >> Arduino PWM library. I wonder if the resolver decoder might be improved >> in a similar fashion? I haven't had the time to study Andy's code, but >> it may already be optimized. > > It is all driven by interrupts and direct register writes, it doesn't > use any Arduino libraries at all, not for PWM generation, not for > analogue reading and not even for computing the arctan. > (it uses an integer-only algorithm and a lookup table) > > http://wiki.linuxcnc.org/uploads/Resolver.pde
My servo amp has a very good resolver interface, featuring 10kHz excitation with driver(8Vpp signal, to reduce noise), lowpass filter, and 12 bit resolution. included are eagle files, spice simulation, and code. It could be used to make a converter to other interfaces, or you can just use the whole project to drive your servos. It has even got a hal implementation to configure things at runtime. https://github.com/rene-dev/stmbl Rene > > > -- > atp > If you can't fix it, you don't own it. > http://www.ifixit.com/Manifesto > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
