11-21-2011 01:31 PM
I am using a Parallax accelerometer to measure acceleration and the output of the accelerometer is a TTL Pulsewidth.
I am wondering if it is possible to read the pulsewidth in through Serial DB9 connection and measure the actual pulsewidth.
Thank you for any help.
11-21-2011 01:38 PM
No.
11-22-2011 09:48 AM - edited 11-22-2011 09:49 AM
The short answer has been given. You can't do what you asked directly with a serial port. You need a device between the digital logic (TTL pulses) and the serial port - specifically a Digital Input DAQ. There are scores of these available for under $100. Trouble is, accelerometers are high speed devices, so you'll be limited by what you can detect by the speed of serial port communication, and DAQ's sample rate. Look for >1000 samples per second, assuming the Parallax can run at 115,200 baud.