-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
131 lines (131 loc) · 7.44 KB
/
index.html
File metadata and controls
131 lines (131 loc) · 7.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Setup theme-color -->
<!-- start theme color meta headers -->
<meta name="theme-color" content="#151515">
<meta name="msapplication-navbutton-color" content="#151515">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" sizes="57x57" href="./icon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="./icon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="./icon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="./icon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="./icon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="./icon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="./icon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="./icon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/./iconapple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="./icon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="./icon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="./icon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="./icon/favicon-16x16.png">
<link rel="manifest" href="./icon/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="./icon/ms-icon-144x144.png">
<!-- bootstrap@5.0.2 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<style type="text/css">
.selector-for-some-widget {
box-sizing: content-box;
}
</style>
<title>Top page | NHGM.github.io</title>
</head>
<body>
<!-- bootstrap@5.0.2 script -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js"
integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF"
crossorigin="anonymous"></script>
<header>
<div class="container-fluid">
<a id="a-title" href="/">
<h1>NHGM.github.io</h1>
</a>
<pre>NHGM.github.io is for amateur programmers.</pre><br>
<section id="downloads">
<a href="https://github.com/nhashimoto-gm/HTML_TestSample" class="btn btn-dark"><span
class="icon"></span>View on GitHub</a>
</section>
</div>
</header>
<div class="container-fluid">
<section id="main_content">
<h1 id="bno055_i2c_rpi">BNO055_i2c_RPi</h1>
<p><a href="https://github.com/nhashimoto-gm/BNO055_i2c_RPi">https://github.com/nhashimoto-gm/BNO055_i2c_RPi</a>
</p>
<h2 id="使用センサー">使用センサー</h2>
<p>Bosch Sensortec GmbH Smart sensor: BNO055</p>
<p><a
href="https://www.bosch-sensortec.com/products/smart-sensors/bno055/">https://www.bosch-sensortec.com/products/smart-sensors/bno055/</a>
</p>
<p>Adafruit BNO055 Absolute Orientation Sensor</p>
<p><a
href="https://learn.adafruit.com/adafruit-bno055-absolute-orientation-sensor">https://learn.adafruit.com/adafruit-bno055-absolute-orientation-sensor</a>
</p>
<h2 id="接続機器と接続方法">接続機器と接続方法</h2>
<p>RaspberryPIにi2c接続で通信。<br>
以下の通信速度で使用したほうがデータ取得安定します。<br>
標準のbaudrate=100000では、” OSError: [Errno 121] Remote I/O error “ が頻発しました。</p>
<ul>
<li>dtparam=i2c_arm_baudrate=50000</li>
</ul>
<p>(留意点1) プルアップ抵抗は不要です。</p>
<p>(留意点2) OSErrorは受け流すことにしました。</p>
<h2 id="注意">注意</h2>
<p>LOCAL NETWORK上のInfluxdb v1.8サーバーへデータを送信。<br>
InfluxQLは以下のような形で情報取得。(Grafana等利用)</p>
<pre
class="highlight"><code>SELECT mean("eu_x-axis") FROM "bno055_measure_euler" WHERE $timeFilter GROUP BY time($__interval) fill(none)</code></pre>
<h2 id="acknowledgments--謝辞-">Acknowledgments ( 謝辞 )</h2>
<p>ghirlekar, you have been very helpful.</p>
<p><a href="https://github.com/ghirlekar/bno055-python-i2c">https://github.com/ghirlekar/bno055-python-i2c</a>
</p>
<hr />
<h1 id="adxl355_i2c_rpi">ADXL355_i2c_RPi</h1>
<p><a href="https://github.com/nhashimoto-gm/ADXL355_i2c_RPi">https://github.com/nhashimoto-gm/ADXL355_i2c_RPi</a>
</p>
<h2 id="使用センサー-1">使用センサー</h2>
<p>ANALOG DEVICES ADXL355</p>
<p><a href="https://www.analog.com/jp/products/adxl355.html">https://www.analog.com/jp/products/adxl355.html</a>
</p>
<p>Strawberry Linux Co.,Ltd. ADXL355 超低ノイズ3軸加速度センサモジュール(ディジタル出力)2g/4g/8g</p>
<p><a
href="http://strawberry-linux.com/catalog/items?code=12355">http://strawberry-linux.com/catalog/items?code=12355</a>
</p>
<h2 id="接続機器と接続方法-1">接続機器と接続方法</h2>
<p>RaspberryPIにi2c接続で通信。<br>
(留意点1) 3.3VをVSUPPLYとVDDIOに供給。SCLK/VSSIOとMISO/ASELはGNDに接続。<br>
i2cアドレスを0x1Dとしています。( MISO/ASELがLow ) ※Highで0x53となる。</p>
<p>(留意点2) プルアップ抵抗は3k-5kΩ。( 3.7kΩだったかな )</p>
<p>(留意点3) OSErrorは受け流すことにしました。</p>
<h2 id="測定レンジについて">測定レンジについて</h2>
<p>range2G設定にしてあります。( 256,000LSB/g ±4.096g-range )<br>
但し、算出数値の単位は加速度:m/s<sup>2</sup>としている。<br>
この場合の計算式は、以下のとおり。( 前提として、重力加速度 g = 9.80665 m/s<sup>2</sup> )</p>
<pre
class="highlight"><code>"x-axis":allAxes['x']*g/256000.0,"y-axis":allAxes['y']*g/256000.0,"z-axis":allAxes['z']*g/256000.0</code></pre>
<ul>
<li>range2G設定 -> 256,000LSB/g ±2.048g-range</li>
<li>range4G設定 -> 128,000LSB/g ±4.096g-range</li>
<li>range8G設定 -> 64,000LSB/g ±8.192g-range</li>
</ul>
<h2 id="注意-1">注意</h2>
<p>最初はprint文をアンコメントし、Influxdb書き込み部分をコメントアウトして要確認。<br>
LOCAL NETWORK上のInfluxdb v1.8サーバーへデータを送信。<br>
InfluxQLは以下のような形で情報取得。(Grafana等利用)</p>
<pre
class="highlight"><code>SELECT mean("x-axis") FROM "autogen"."adxl355_measure" WHERE $timeFilter GROUP BY time($__interval) fill(none)</code></pre>
<h2 id="acknowledgments--謝辞--1">Acknowledgments ( 謝辞 )</h2>
<p>Markrad, you have been very helpful.</p>
<p><a href="https://github.com/markrad/ADXL355">https://github.com/markrad/ADXL355</a></p>
</section>
</div>
</body>
</html>