LoginSignup
0
0

More than 5 years have passed since last update.

直線位置調整 + 距離計 > v0.8 > 距離計算式の追加

Last updated at Posted at 2016-09-18

関連 http://qiita.com/7of9/items/e58040fbeb903c059e92

構成

code v0.8

http://qiita.com/7of9/items/9ef44652fba1370fba43
において導出した電圧から距離(cm)への変換式を追加した。

v0.8 @ github

測定

140cmから50cmの範囲の測定をしてみた。

140cm近辺の値がきちんと出ていない。
距離はどんどん減っていくはずだが、途中で値が戻っている部分などもある。

電圧測定時にノイズを減らす方法を取っていないので、そのあたりが要改善点。

qiita.png

code v0.9

測定部分変更。
7回測定し、min,maxを取り除いた平均とした。

v0.9 @ github

140cmから50cmの範囲の測定を行ったが、うまく測定できていない。

qiita.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0