On Sat, 19 Jan 2008, Anders Wallin wrote: > Date: Sat, 19 Jan 2008 21:22:23 +0200 > From: Anders Wallin <[EMAIL PROTECTED]> > Reply-To: "Enhanced Machine Controller (EMC)" > <[email protected]> > To: "Enhanced Machine Controller (EMC)" <[email protected]> > Subject: [Emc-users] Analog to PWM or pulse-train ? > > Hi All, > > My VFD has an analog output which can be programmed to indicate either > output frequency, current, or power etc. > > I'd like to read this into EMC so I can monitor and plot the spindle > load while the machine is running. > > I have a M5i20 card which doesn't have analog inputs, so I'm wondering > if any of you know a nice simple way of converting the 0-10 V into > either PWM or a pulse-train (FM) or something else that can be read by > one IO pin (read say every 0.1 ms) on the m5i20 ? > > I know a small 8-pin PIC could do this easily but if there are ICs that > do this out there I'd like to avoid the programming... > > > Anders
A simple Voltage to frequency converter would probably do, for example the AD654 in 8 pin DIP is probably quite a better than required. (500KHz max frequency, .03% linearity) I would count the frequency with one of the spare encoder counters (set up for up/down mode) and use count difference accumulated over some number of sample periods (to average out the sample period jitter) > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
