Distance Measurement Project

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Distance Measurement Project

1,634件の閲覧回数
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 件の賞賛
返信
2 返答(返信)

1,471件の閲覧回数
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 件の賞賛
返信

1,471件の閲覧回数
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 件の賞賛
返信