Distance Measurement Project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Distance Measurement Project

848 Views
tmg
Contributor I

I'm a newbie.  I've just begun working on a project where I need to measure a distance.  I'm planning on using a Sharp GP2Y3A001K0F (Distance Measuring Sensor Unit).  I need to be able to convert the voltage output from the Sharp device to a digital signal that the uC can use to calculate a distance value.  Next, I wish to control some LEDs that tell whether or not the measurement is in a particular range (e.g. - green = in-range). 

 

1) Are there any examples out there that would expedite my efforts?  Incidentally, I need to accomplish a proof of concept by next week (7/20).

 

2) If there are no examples, are there tutorials that will get me there?

0 Kudos
2 Replies

685 Views
tmg
Contributor I

I'm getting closer.  I was asked to include an audible indication of distance, with some beeping.  What is the method to generate a sine wave in the Kinetis K60N512?

0 Kudos

685 Views
lukas
Contributor III

there exist many possibilities

 - have part of sine stored in table and in the periodic interrupt send data from table to DAC

- if you are not stand on sine you could use pwm and generate square wave beep.

0 Kudos