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++
Announcements
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.
12409 Discussions

Using DE0 Board And NIOSII To Connect SRF05 Sensor

Altera_Forum
Honored Contributor II
966 Views

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? 

 

 

Thanks
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
106 Views

http://www.robotstorehk.com/sensors/doc/srf05tech.pdf 

 

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. 

 

Pete
Reply