In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bennettdan wrote: Hello, I have a machine that drives a solenoid with a mosfet. I want to read the pulse with a SX48 and know what % Duty cycle the solenoid is. I know the voltage going to the solenoid is around 14 VDC would it be easier to read the voltage with a D/A converter or can I read the Pulse with say the PulseIn command somehow. Any ideas on how to start would be great. I was thinking I would have to know the pulse 0-1-0 and the 1-0-1 pulse widths and then add them together to get the % of the PWM going to the solenoid or am I on the wrong track? Thanks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=357109 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)