Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

range sensor implementing

Honored Contributor II

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.
0 Kudos
1 Reply
Honored Contributor II

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,