Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12612 Discussions

Using DE0 Board And NIOSII To Connect SRF05 Sensor

Honored Contributor II

I have purchased this DE0 board, a breadboard and a SRF05 sensor. I have basic knowledge of C and would like to create a sensor to detect the distance from an object in cm, I would like to do that coding myself, however I am having issues reading the sensors information and believe I have connected it wrong. The questions I would like to ask are; 

  • What function starts the sensor? 

  • What function to stop the sensor? 

  • What function to display the result? 

  • Is there a diagram I can follow to correctly connect the devices? 

  • What test can be run to see if the sensor is connected properly? 



0 Kudos
1 Reply
Honored Contributor II


has most of the details on how the sensor works. 


I would suggest to start learning verilog or VHDL.  


This could be used with a simple GPIO's and timers. If you have a reference design that has a few GPIOS already defined you should be able to hook these up and define one of the GPIO's and an input and one as an output. 



If you want to play with more realtime hardware (instead of CPU), this would be easy to make a function that initiated the pulses, and calculated the measurements and stepped a stepper motor. and did all the calculations. 


0 Kudos