Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

range sensor implementing

I would to implement the ultrasonic sensor srf05 into my fpga board DE0 NANO.

Preciously, in the SOPC demo example.

I m use the verilog code for hardware programming.

i should to know that if it's the C program or the veriolg program or the twice that I will modify for that.

Thank you for your help.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello Memphys,

    Since the measured distance is proportional to the pulse width in µs/58 [cm] you might consider measuring the width of the pulse returned by the device with an FPGA block you need to write and sending the result it to your cpu using a slow communication channel with the standard means that are available. See tutorials for the last item.

    Best Regards,

    Johi.