Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHi there,
according to the link you sent, the sensor has RS-232 dataformat with 0 to VCC physical levels (thus violating the full RS-232 specification). In fact this allows direct connection to the DE2, just ensure to use the I/O voltage as supply voltage for the sensor to match levels... In fact you just have to look to the UART tutorial / the description at fgpa4fun.com seems to be ok as well. As an option you could use the PWM output at PW as described in the first link (I would generate e.g. a 14.7us clock signal and count the pulses per pulse of the sensor. The result would be the distance in 0.1inch... (use 1.47us clock for 1/100 inch resolution....). HTH