{"id":21289,"date":"2022-10-27T00:00:09","date_gmt":"2022-10-26T16:00:09","guid":{"rendered":"https:\/\/techclass.wfjydl.com\/?p=21289"},"modified":"2026-05-19T11:54:35","modified_gmt":"2026-05-19T03:54:35","slug":"%e4%b8%80%e6%ac%be%e7%94%a8raspberry-pi%e5%92%8c%e4%bc%a0%e6%84%9f%e5%99%a8%e5%88%b6%e4%bd%9c%e7%9a%84%e5%8f%af%e7%a9%bf%e6%88%b4%e5%bc%8f%e5%b0%8f%e5%9e%8b%e5%81%a5%e5%ba%b7%e7%ae%a1%e7%90%86","status":"publish","type":"post","link":"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-wearable-healthcare-device-01\/","title":{"rendered":"\u4e00\u6b3e\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u7684\u53ef\u7a7f\u6234\u5f0f\u5c0f\u578b\u5065\u5eb7\u7ba1\u7406\u8bbe\u5907\uff01\u7b2c\u4e00\u90e8\u5206"},"content":{"rendered":"<h2>\u7528Raspberry Pi Zero\u548c\u7f57\u59c6SensorMedal\u5236\u4f5c\u5065\u5eb7\u7ba1\u7406\u8bbe\u5907\uff01<\/h2>\n<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u5409\u7530\uff01<\/p>\n<p>\u968f\u7740\u5728\u5bb6\u4e2d\u5ea6\u8fc7\u7684\u65f6\u95f4\u8d8a\u6765\u8d8a\u591a\uff0c\u60a8\u662f\u4e0d\u662f\u5e38\u5e38\u7f3a\u4e4f\u8fd0\u52a8\uff1f\u5728\u5bb6\u4e2d\u65f6\u95f4\u957f\u4e86\uff0c\u5f80\u5f80\u4f1a\u53d8\u5f97\u4e0d\u600e\u4e48\u8fd0\u52a8\uff0c\u8d70\u8def\u7684\u8ddd\u79bb\u4e5f\u4f1a\u51cf\u5c11\uff0c\u4e0d\u77e5\u4e0d\u89c9\u5c31\u53d8\u6210\u4e86\u4e0d\u5065\u5eb7\u7684\u751f\u6d3b\u72b6\u6001\u3002<\/p>\n<p>\u4e8e\u662f\uff0c\u6211\u60f3\u5230\u4e86\u8fd9\u6b21\u7684\u521b\u610f\uff1a\u7528\u7535\u5b50\u4ea7\u54c1\u521b\u4f5c\u4e00\u6b3e\u6709\u52a9\u4e8e\u6539\u53d8\u8fd9\u79cd\u4e0d\u5065\u5eb7\u7684\u751f\u6d3b\u3001\u6709\u52a9\u4e8e\u597d\u597d\u8fd0\u52a8\u7684\u8bbe\u5907\uff0c\u4e0d\u4ec5\u5f88\u6709\u8da3\uff0c\u8fd8\u6709\u5229\u4e8e\u5065\u5eb7\uff0c\u4e00\u4e3e\u4e24\u5f97\uff01\u8bf4\u505a\u5c31\u505a\uff01\u7528\u5c0f\u578bRaspberry Pi Zero\u548c\u7f57\u59c6\u4f20\u611f\u5668\u5236\u4f5c\u4e00\u6b3e\u5065\u5eb7\u7ba1\u7406\u8bbe\u5907\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-26599\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2026\/04\/aspberrypi-wearable-healthcare-device-01_01.jpg\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2026\/04\/aspberrypi-wearable-healthcare-device-01_01.jpg 600w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2026\/04\/aspberrypi-wearable-healthcare-device-01_01.jpg 300w\" alt=\"aspberrypi-wearable-healthcare-device-01_01\" width=\"600\" height=\"511\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u672c\u90e8\u5206\u7684\u6d41\u7a0b<\/h2>\n<ol>\n<li>\u4f7f\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5b9e\u73b0\u5065\u5eb7\u7ba1\u7406<\/li>\n<li>\u8fde\u63a5Raspberry Pi Zero\u548c\u7f57\u59c6SensorMedal<\/li>\n<li>\u672c\u9879\u76ee\u6240\u9700\u90e8\u4ef6\u548c\u6240\u5b66\u77e5\u8bc6<\/li>\n<li>\u603b\u7ed3<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2>1. \u4f7f\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5b9e\u73b0\u5065\u5eb7\u7ba1\u7406<\/h2>\n<p>\u5728\u8fd9\u6b21\u7684\u7535\u5b50\u4f5c\u54c1\u4e2d\uff0c\u6211\u5e0c\u671b\u901a\u8fc7Raspberry Pi\u548c\u4f20\u611f\u5668\u7684\u7ec4\u5408\u6765\u5b8c\u6210\u4e00\u4e9b\u5065\u5eb7\u7ba1\u7406\u4efb\u52a1\uff0c\u8be5\u8bbe\u5907\u4e3b\u8981\u7528\u6765\u6d4b\u91cf\u5728\u5bb6\u4e2d\u7684\u8fd0\u52a8\u91cf\uff0c\u5f53\u7136\u5728\u5916\u9762\u6563\u6b65\u6216\u6162\u8dd1\u65f6\u4e5f\u53ef\u4ee5\u4f7f\u7528\u3002<\/p>\n<p>\u6211\u5217\u51fa\u4e86\u4e00\u4e9b\u53ef\u4ee5\u901a\u8fc7\u4f20\u611f\u5668\u6d4b\u91cf\u7684\u9879\u76ee\u4ee5\u53ca\u901a\u8fc7\u8fd9\u4e9b\u9879\u76ee\u53ef\u4ee5\u5b9e\u73b0\u7684\u529f\u80fd\u3002<\/p>\n<table>\n<tbody>\n<tr bgcolor=\"#e0ffff\">\n<td>\u7f16\u53f7<\/td>\n<td>\u53ef\u4ee5\u6d4b\u91cf\u7684\u9879\u76ee<\/td>\n<td>\u6709\u52a9\u4e8e\u8fd0\u52a8\u7684\u529f\u80fd<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>\u901a\u8fc7\u52a0\u901f\u5ea6\u4f20\u611f\u5668\u8f7b\u677e\u8ba1\u7b97\u6b65\u6570<\/td>\n<td>\u8ba1\u7b97\u6bcf\u5929\u7684\u6b65\u6570\u548c\u6d88\u8017\u7684\u5361\u8def\u91cc\u7b49<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u81ea\u52a8\u8fa8\u522b\u8fd0\u52a8<\/td>\n<td>\u901a\u8fc7\u533a\u5206\u6b65\u884c\u3001\u8dd1\u6b65\u3001\u8df3\u8dc3\u7b49\u52a8\u4f5c\uff0c\u6765\u5b9e\u73b0\u66f4\u6709\u6548\u7684\u953b\u70bc<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u6d4b\u91cf\u5fc3\u7387<\/td>\n<td>\u8ba1\u7b97\u8fd0\u52a8\u5f3a\u5ea6\uff0c\u663e\u793a\u8fd0\u52a8\u91cf<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>\u6d4b\u91cf\u5ba4\u5185\u5916\u7684\u6e29\u5ea6\u548c\u6e7f\u5ea6<\/td>\n<td>\u63d0\u9192\u4e3b\u4eba\u6700\u4f73\u7684\u8fd0\u52a8\u73af\u5883<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e3a\u4e86\u80fd\u591f\u6d4b\u91cf\u8fd9\u4e9b\u9879\u76ee\uff0c\u6211\u51b3\u5b9a\u4f7f\u7528\u7f57\u59c6\u7684<a href=\"https:\/\/www.rohm.co.jp\/sensor-medal-support\" target=\"_blank\" rel=\"noopener\">SensorMedal\uff08SensorMedal-EVK-002\uff09<\/a>\uff0c\u8fd9\u6b3eSensorMedal\u5728\u4e4b\u524d\u4ecb\u7ecd\u8fc7\u7684\u201c\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u201c<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-01\/\">\u53ef\u81ea\u52a8\u8425\u9020\u8212\u9002\u7a7a\u95f4\u7684\u88c5\u7f6e<\/a>\u201d\u4e2d\u4e5f\u7528\u8fc7\u3002<\/p>\n<p>\u5b83\u5185\u7f6e\u67096\u79cd\u4f20\u611f\u5668\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7BLE\u4e0e\u5916\u90e8\u8bbe\u5907\u8fde\u63a5\u3002\u7531\u7ebd\u6263\u7535\u6c60\u9a71\u52a8\uff0c\u5c0f\u5de7\u4fbf\u643a\uff0c\u56e0\u6b64\u65e0\u8bba\u662f\u5728\u5bb6\u4e2d\u8fd8\u662f\u8fd0\u52a8\u8fc7\u7a0b\u4e2d\u5747\u53ef\u643a\u5e26\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-21334 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2022\/10\/aspberrypi-wearable-healthcare-device-01_02.jpg\" alt=\"\" width=\"533\" height=\"325\" \/><\/p>\n<p class=\"wp-caption-text\"><a href=\"https:\/\/www.rohm.co.jp\/sensor-medal-support\" target=\"_blank\" rel=\"noopener\">\u6765\u6e90\uff1a\u7f57\u59c6SensorMedal\u7684\u4e3b\u9875<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u201cSensorMedal\u201d\u662f\u4e00\u6b3e\u4f20\u611f\u5668\u8bc4\u4f30\u5957\u4ef6\uff0c\u96c6\u6210\u4e86BLE\u6a21\u5757\u548c\u6e29\u6e7f\u5ea6\u3001\u7167\u5ea6\u3001\u52a0\u901f\u5ea6\u7b496\u79cd\u4f20\u611f\u5668\uff0c\u8fd8\u914d\u6709\u4f4e\u529f\u8017\u5fae\u63a7\u5236\u5668\uff0c\u4f7f\u75281\u679a\u7ebd\u6263\u7535\u6c60\u5373\u53ef\u9a71\u52a8\u51e0\u4e2a\u6708\u3002<\/p>\n<table>\n<tbody>\n<tr bgcolor=\"#e0ffff\">\n<td>\u4f20\u611f\u5668\u79cd\u7c7b<\/td>\n<td>\u53ef\u4ee5\u6d4b\u91cf\u7684\u9879\u76ee<\/td>\n<td>\u7528\u9014\u7b49<\/td>\n<\/tr>\n<tr>\n<td>\u52a0\u901f\u5ea6\u4f20\u611f\u5668<\/td>\n<td>x\u3001y\u3001z\u8f74\u65b9\u5411\u7684\u52a0\u901f\u5ea6<\/td>\n<td>\u8ba1\u6b65\u5668<\/td>\n<\/tr>\n<tr>\n<td>\u5730\u78c1\u4f20\u611f\u5668<\/td>\n<td>\u83b7\u53d6\u65b9\u5411<\/td>\n<td>\u663e\u793a\u6b63\u5728\u79fb\u52a8\u7684\u65b9\u4f4d<\/td>\n<\/tr>\n<tr>\n<td>\u6c14\u538b\u4f20\u611f\u5668<\/td>\n<td>\u83b7\u53d6\u9ad8\u8fbe1100hPa\u7684\u6c14\u538b\u503c<\/td>\n<td>\u663e\u793a\u6c14\u538b\u548c\u6d77\u62d4\u9ad8\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>\u7167\u5ea6\u4f20\u611f\u5668<\/td>\n<td>\u5c06\u4eae\u5ea6\u503c\u4f5c\u4e3a\u6570\u5b57\u503c\u8f93\u51fa<\/td>\n<td>\u4eae\u5ea6\u3001\u662f\u5426\u5df2\u9760\u8fd1<\/td>\n<\/tr>\n<tr>\n<td>\u970d\u5c14IC<\/td>\n<td>\u83b7\u53d6\u95f4\u6b47\u8fd0\u884c\u6570\u636e<\/td>\n<td>\u81ea\u884c\u8f66\u8f66\u8f6e\u8f6c\u901f<\/td>\n<\/tr>\n<tr>\n<td>\u6e29\u6e7f\u5ea6\u4f20\u611f\u5668<\/td>\n<td>\u68c0\u6d4b\u6e29\u5ea6\u548c\u6e7f\u5ea6<\/td>\n<td>\u5ba4\u6e29\u3001\u5ba4\u5185\u6e7f\u5ea6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\u8fd9\u6b21\u6211\u60f3\u5c06SensorMedal\u4e0e\u5c0f\u578bRaspberry Pi Zero\u7ec4\u5408\u8d77\u6765\uff0c\u5236\u4f5c\u4e00\u6b3e\u5177\u6709\u8ba1\u7b97\u548c\u663e\u793a\u7b49\u529f\u80fd\u7684\u5065\u5eb7\u7ba1\u7406\u8bbe\u5907\u3002\u6211\u4eec\u9700\u8981\u901a\u8fc7Bluetooth\uff08\u84dd\u7259\uff09\u8fde\u63a5Raspberry Pi Zero \u548cSensorMedal\uff0c\u4ee5\u5b9e\u73b0\u5404\u79cd\u6d4b\u91cf\u3001\u663e\u793a\u548c\u52a8\u4f5c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26601 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2026\/04\/aspberrypi-wearable-healthcare-device-01_03.jpg\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2026\/04\/aspberrypi-wearable-healthcare-device-01_03.jpg 600w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2026\/04\/aspberrypi-wearable-healthcare-device-01_03.jpg 300w\" alt=\"aspberrypi-wearable-healthcare-device-01_03\" width=\"600\" height=\"424\" \/><\/p>\n<p class=\"wp-caption-text\">Raspberry Pi Zero\u548c\u7f57\u59c6SensorMedal<\/p>\n<p>&nbsp;<\/p>\n<h2>2. \u8fde\u63a5Raspberry Pi Zero\u548cSensorMedal<\/h2>\n<p>\u73b0\u5728\uff0c\u8ba9\u6211\u4eec\u5f00\u59cb\u4f7f\u7528SensorMedal\u5427\u3002<br \/>\n\u5728\u8fd9\u4efd<a href=\"https:\/\/www.rohm.co.jp\/documents\/11401\/3946483\/sensormedal-evk-002_ug-j.pdf\/71ad6b39-a9d2-7569-116a-5530479e0a0a\" target=\"_blank\" rel=\"noopener\">\u7528\u6237\u6307\u5357<\/a>\u4e2d\uff0c\u63d0\u4f9b\u4e86\u5305\u62ec\u4e0e\u667a\u80fd\u624b\u673a\u7b49\u7684\u8fde\u63a5\u5728\u5185\u7684\u4f7f\u7528\u65b9\u6cd5\u3002\u4ec5\u9700\u88c5\u5165CR2450 SensorMedal\u7ebd\u6263\u7535\u6c60\uff0c\u7136\u540e\u901a\u8fc7BLE\u5c06\u5176\u8fde\u63a5\u5230\u667a\u80fd\u624b\u673a\u5373\u53ef\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26602 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2026\/04\/aspberrypi-wearable-healthcare-device-01_04.jpg\" sizes=\"auto, (max-width: 410px) 100vw, 410px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2026\/04\/aspberrypi-wearable-healthcare-device-01_04.jpg 410w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2026\/04\/aspberrypi-wearable-healthcare-device-01_04.jpg 271w\" alt=\"aspberrypi-wearable-healthcare-device-01_04\" width=\"410\" height=\"454\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u4f7f\u7528Raspberry Pi Zero\u4f5c\u4e3a\u63a5\u6536\u6570\u636e\u7684\u822a\u7a7a\u6bcd\u8230\u3002\u9700\u8981\u901a\u8fc7Raspberry Pi\u7684Bluetooth\u8fde\u63a5SensorMedal\u3002<\/p>\n<p>\u8fd9\u90e8\u5206\u4e0e\u5728\u201c\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u53ef\u81ea\u52a8\u8425\u9020\u8212\u9002\u7a7a\u95f4\u7684\u88c5\u7f6e\u201d\u7cfb\u5217\u7684<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-comfortable-space-device-02\/\">\u7b2c\u4e8c\u90e8\u5206<\/a>\u4e2d\u76f8\u5e94\u7684\u8fc7\u7a0b\u4e00\u6837\uff0c\u5c06\u540d\u4e3a\u201cbluepy\u201d\u7684\u5e93\u5b89\u88c5\u5728Raspberry Pi Zero\u4e0a\u3002<\/p>\n<pre class=\"brush: cpp; title: Code-Example; notranslate\" title=\"Code-Example\">pi@raspizero:~ $ sudo pip3 install bluepy\r\nLooking in indexes: https:\/\/pypi.org\/simple, https:\/\/www.piwheels.org\/simple\r\nCollecting bluepy\r\n  Downloading https:\/\/www.piwheels.org\/simple\/bluepy\/bluepy-1.3.0-cp35-cp35m-linux_armv6l.whl (515kB)\r\n    100% |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 522kB 912kB\/s \r\nInstalling collected packages: bluepy\r\nSuccessfully installed bluepy-1.3.0\r\n<\/pre>\n<p>\u7136\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<a href=\"https:\/\/github.com\/bokunimowakaru\/SensorMedal2\" target=\"_blank\" rel=\"noopener\">Github<\/a>\u4e2d\u7684\u4fbf\u6377\u7a0b\u5e8f\uff0c\u901a\u8fc7Bluetooth\u5c06SensorMedal\u8fde\u63a5\u5230Raspberry Pi\u4e0a\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-26603 aligncenter\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2026\/04\/aspberrypi-wearable-healthcare-device-01_05.png\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2026\/04\/aspberrypi-wearable-healthcare-device-01_05.png 900w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2026\/04\/aspberrypi-wearable-healthcare-device-01_05.png 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2026\/04\/aspberrypi-wearable-healthcare-device-01_05.png 768w\" alt=\"aspberrypi-wearable-healthcare-device-01_05\" width=\"764\" height=\"622\" \/><\/p>\n<p class=\"wp-caption-text\">Github\uff1a<a href=\"http:\/\/github.com\/bokunimowakaru\/SensorMedal2\" target=\"_blank\" rel=\"noopener\">http:\/\/github.com\/bokunimowakaru\/SensorMedal2<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u901a\u8fc7git clone\u547d\u4ee4\u4e0b\u8f7d\u7a0b\u5e8f\uff0c\u5e76\u6267\u884c\u793a\u4f8b\u7a0b\u5e8f\u3002<\/p>\n<pre class=\"brush: cpp; title: Code-Example; notranslate\" title=\"Code-Example\">pi@raspizero:~ $ sudo git clone http:\/\/github.com\/bokunimowakaru\/SensorMedal2\r\nCloning into 'SensorMedal2'...\r\nwarning: redirecting to https:\/\/github.com\/bokunimowakaru\/SensorMedal2\/\r\nremote: Enumerating objects: 78, done.\r\nremote: Counting objects: 100% (78\/78), done.\r\nremote: Compressing objects: 100% (55\/55), done.\r\nremote: Total 78 (delta 54), reused 44 (delta 23), pack-reused 0\r\nUnpacking objects: 100% (78\/78), done.\r\n\r\npi@raspizero:~ $ cd SensorMedal2\/\r\npi@raspizero:~\/SensorMedal2 $ ls\r\n\r\nLICENSE                             ble_logger_SensorMedal2_basic.py\r\nREADME.md                           ble_logger_SensorMedal2_save.py\r\nble_logger_SensorMedal2.py          ble_logger_SensorMedal2_udp_tx.py\r\nble_logger_SensorMedal2_ambient.py\r\n<\/pre>\n<p>\u5982\u679c\u5728Python3\u4e2d\u4f7f\u7528sudo\u6743\u9650\u6267\u884c\u7a0b\u5e8f\uff0cRaspberry Pi Zero\u53ef\u4ee5\u83b7\u5f97\u5982\u4e0b\u6570\u636e\uff1a<\/p>\n<ul>\n<li>Temperature: \u6e29\u5ea6\uff08\u2103\uff09<\/li>\n<li>Humidity: \u6e7f\u5ea6\uff08%\uff09<\/li>\n<li>Pressure: \u6c14\u538b\uff08hPa\uff09<\/li>\n<li>Illuminance: \u4eae\u5ea6\uff08lx\uff09<\/li>\n<li>Accelerometer: \u52a0\u901f\u5ea6\uff08x\u8f74\u3001y\u8f74\u3001z\u8f74\uff09\uff08g\uff09<\/li>\n<li>Geomagnetic: \u9640\u87ba\u4eea\u4f20\u611f\u5668\u503c\uff08x\u8f74\u3001y\u8f74\u3001z\u8f74\uff09\uff08uT\uff09<\/li>\n<li>Magnetic: \u970d\u5c14\u4f20\u611f\u5668\u503c\uff08\u78c1\u94c1\u5728\u9644\u8fd1\u901a\u8fc7\u4e3a1\uff0c\u5426\u5219\u4e3a0\uff09<\/li>\n<li>Steps: \u6b65\u6570\uff08\u6b65\uff09<\/li>\n<li>Battery Level: \u7535\u6c60\u7535\u91cf<\/li>\n<\/ul>\n<pre class=\"brush: cpp; title: Code-Example; notranslate\" title=\"Code-Example\">pi@raspizero:~\/SensorMedal2 $ sudo python3 ble_logger_SensorMedal2.py\r\n...\r\nDevice c5:xx:yy:zz::d0 (random), RSSI=-65 dB\r\n  Short Local Name = 极悦娱乐Medal2_0107_01.00\r\n  Flags = 06\r\n  Incomplete 16b Services = 0000180a-0000\r\n  Manufacturer = 0100c86abcdef\r\n    ID            = 0x1\r\n    SEQ           = 188\r\n    Temperature   = 27.99 \u2103\r\n    Humidity      = 71.52 %\r\n    Pressure      = 998.578 hPa\r\n    Illuminance   = 93.3 lx\r\n    Accelerometer = 1.453 g ( 0.062 0.844 1.181 g)\r\n    Geomagnetic   = 92.6 uT ( -15.8 -58.0 -70.4 uT)\r\n    Magnetic      = 0x3\r\n    Steps         = 8 \u6b69\r\n    Battery Level = 90 %\r\n    RSSI          = -65 dB\r\n<\/pre>\n<p>\u6211\u60f3\u60a8\u5df2\u7ecf\u53d1\u73b0\u4e86\uff0c\u5373\u4f7f\u4f7f\u7528 Raspberry Pi Zero\uff0c\u4e5f\u53ef\u4ee5\u5f88\u8f7b\u677e\u5730\u83b7\u53d6\u6765\u81eaSensorMedal\u7684\u6570\u636e\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>3. \u672c\u9879\u76ee\u6240\u9700\u90e8\u4ef6\u548c\u6240\u5b66\u77e5\u8bc6<\/h2>\n<p>\u73b0\u5728\uff0c\u6211\u518d\u91cd\u65b0\u5217\u4e00\u4e0b\u5236\u4f5c\u8fd9\u6b3e\u5065\u5eb7\u7ba1\u7406\u8bbe\u5907\u6240\u9700\u7684\u90e8\u4ef6\u6e05\u5355\u3002\u8fd9\u6b21\u6211\u4eec\u5c06\u9700\u8981\u4f7f\u7528\u4ee5\u4e0b\u90e8\u4ef6\uff1a<\/p>\n<table>\n<tbody>\n<tr bgcolor=\"#e0ffff\">\n<td>\u7f16\u53f7<\/td>\n<td>\u6240\u9700\u90e8\u4ef6<\/td>\n<td>\u53ef\u4ee5\u8d2d\u4e70\u7684\u5730\u65b9<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>Raspberry Pi Zero<\/td>\n<td><a href=\"https:\/\/amzn.to\/2YDlNTL\" target=\"_blank\" rel=\"noopener\">Raspberry Pi Zero W<\/a><\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u7f57\u59c6SensorMedal<\/td>\n<td><a href=\"https:\/\/www.chip1stop.com\/product\/detail?partId=极悦娱乐-0171151&amp;mpn=SensorMedal-EVK-002\" target=\"_blank\" rel=\"noopener\">SensorMedal-EVK-002<\/a><\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>OLED\u663e\u793a\u5668<\/td>\n<td><a href=\"https:\/\/www.marutsu.co.jp\/pc\/i\/829297\/\" target=\"_blank\" rel=\"noopener\">I2C Display<\/a><\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>\u8109\u640f\u4f20\u611f\u5668<\/td>\n<td><a href=\"https:\/\/amzn.to\/3dxlNZG\" target=\"_blank\" rel=\"noopener\">\u8109\u640f\u8109\u51b2\u4f20\u611f\u5668\u6a21\u5757<\/a><\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>\u5c0f\u578b\u7535\u6c60<\/td>\n<td><a href=\"https:\/\/www.sengoku.co.jp\/mod\/sgk_cart\/detail.php?code=EEHD-4YZM\" target=\"_blank\" rel=\"noopener\">LiPo\u7535\u6c60\uff08860mAh\uff09<\/a><\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>\u5916\u5305\u88c5<\/td>\n<td>100\u65e5\u5143\u5546\u5e97\u7b49<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\u901a\u8fc7\u5236\u4f5c\u8fd9\u6b3e\u8bbe\u5907\uff0c\u60a8\u53ef\u4ee5\u5b66\u5230\u7684\u5173\u4e8e\u4f20\u611f\u5668\u548c\u786c\u4ef6\u7684\u77e5\u8bc6\u5982\u4e0b\uff1a<\/p>\n<table>\n<tbody>\n<tr bgcolor=\"#e0ffff\">\n<td>\u7f16\u53f7<\/td>\n<td>\u53ef\u4ee5\u5b66\u5230\u7684\u77e5\u8bc6<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>\u901a\u8fc7BLE\u8fde\u63a5SensorMedal\u548cRaspberry Pi Zero\u7684\u65b9\u6cd5<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u8ba1\u6b65\u5668\u7684\u5de5\u4f5c\u539f\u7406\u548c\u4f7f\u7528\u65b9\u6cd5<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u83b7\u53d6\u5fc3\u7387\u6570\u636e\u7684\u65b9\u6cd5<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>\u4e0e\u4e92\u8054\u7f51\u5173\u8054\u5e76\u5171\u4eab\u4fe1\u606f\u7684\u65b9\u6cd5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h2>4. \u603b\u7ed3<\/h2>\n<p>\u662f\u4e0d\u662f\u6709\u5f88\u591a\u4eba\u56e0\u4e3a\u5728\u5bb6\u529e\u516c\u548c\u51fa\u884c\u9650\u5236\u800c\u5bb9\u6613\u7f3a\u4e4f\u8fd0\u52a8\u751a\u81f3\u4f53\u91cd\u589e\u52a0\u5462\uff1f\u60a8\u5728\u5e73\u65f6\u7684\u751f\u6d3b\u4e2d\uff0c\u6bcf\u5929\u8d70\u8def\u591a\u957f\u65f6\u95f4\u5462\uff1f\u60a8\u6bcf\u5929\u6d88\u8017\u591a\u5c11\u5361\u8def\u91cc\u5462\uff1f\u6211\u8ba4\u4e3a\u54ea\u6015\u53ea\u662f\u80fd\u591f\u6d4b\u51fa\u8fd9\u4e9b\u6570\u636e\uff0c\u4e5f\u53ef\u4ee5\u5f15\u53d1\u60a8\u5bf9\u5065\u5eb7\u7684\u5173\u6ce8\u3002<\/p>\n<p>\u8fd9\u6b21\uff0c\u6211\u4eec\u7528SensorMedal\u548cRaspberry Pi Zero\u5236\u4f5c\u4e00\u79cd\u53ef\u4ee5\u6d4b\u91cf\u8fd0\u52a8\u91cf\u548c\u5fc3\u7387\u7684\u5065\u5eb7\u7ba1\u7406\u8bbe\u5907\u3002<\/p>\n<p>\u4e24\u8005\u90fd\u5f88\u5c0f\uff08\u5c0f\u578b\u4f20\u611f\u5668\u548c\u5fae\u578b\u8ba1\u7b97\u673a\uff09\uff0c\u56e0\u6b64\u53ef\u4ee5\u505a\u6210\u53ef\u7a7f\u6234\u5f0f\u8bbe\u5907\u3002\u4ece\u4e0b\u4e00\u6b21\u5f00\u59cb\uff0c\u6211\u5c06\u4e3a\u5927\u5bb6\u4ecb\u7ecd\u8bbe\u5907\u7684\u5b9e\u9645\u5236\u4f5c\u8fc7\u7a0b\uff01<\/p>\n<p>\u656c\u8bf7\u671f\u5f85\uff01<\/p>\n<div class=\"product_link_box\"><span style=\"font-size: 12pt;\"><strong>\u76f8\u5173\u8fde\u8f7d\u4e00\u89c8<\/strong><\/span>\u7b2c1\u90e8\u5206\uff1a\u7528Raspberry Pi Zero\u548c\u7f57\u59c6SensorMedal\u5236\u4f5c\u5065\u5eb7\u7ba1\u7406\u8bbe\u5907\uff01\uff08\u672c\u7ae0\uff09<br \/>\n\u7b2c2\u90e8\u5206\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-wearable-healthcare-device-02\/\">\u6839\u636e\u4f20\u611f\u5668\u7684\u503c\u8ba1\u7b97\u6b65\u6570\u3001\u8ddd\u79bb\u548c\u5361\u8def\u91cc\uff0c\u5e76\u5c06\u6570\u636e\u53d1\u9001\u5230LINE\uff01<\/a><br \/>\n\u7b2c3\u90e8\u5206\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-wearable-healthcare-device-03\/\">\u4e00\u6b3e\u7528Raspberry Pi\u548c\u4f20\u611f\u5668\u5236\u4f5c\u7684\u53ef\u7a7f\u6234\u5f0f\u5c0f\u578b\u5065\u5eb7\u7ba1\u7406\u8bbe\u5907\uff01<\/a><br \/>\n\u7b2c4\u90e8\u5206\uff1a<a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/raspberry\/raspberrypi-wearable-healthcare-device-04\/\">\u8fde\u63a5\u663e\u793a\u5668\u5e76\u5b8c\u6210\u8fd9\u6b3e\u53ef\u7a7f\u6234\u5f0f\u5065\u5eb7\u7ba1\u7406\u8bbe\u5907<\/a><\/p>\n<\/div>\n<div class=\"author-box-wrapper\">\n<div class=\"avatar-wrapper\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2026\/04\/k.yoshida_avatar.jpg\" alt=\"\u5409\u7530\u3000\u663e\u4e00\uff08Yoshiken\uff09\" width=\"64\" height=\"64\" \/><\/div>\n<div class=\"desc-wrapper\">\n<h5>\u5409\u7530\u3000\u663e\u4e00\uff08Yoshiken\uff09<\/h5>\n<div class=\"desc\">\n<p>\u5728\u666e\u901a\u516c\u53f8\u5de5\u4f5c\u7684\u4e0a\u73ed\u65cf\uff0c\u975e\u5e38\u559c\u6b22\u521b\u4f5c\u7684\u5468\u672b\u521b\u5ba2\uff0c\u51fa\u7248\u4e86\u7535\u5b50\u4e66MESHBOOK\uff0c\u5e73\u65f6\u4e5f\u5199\u5199\u535a\u5ba2\u3002<br \/>\nhttp:\/\/blog.ktrips.net<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"\u7528Raspberry Pi Zero\u548c\u7f57\u59c6SensorMedal\u5236\u4f5c\u5065\u5eb7\u7ba1\u7406\u8bbe\u5907\uff01 \u5927\u5bb6\u597d\uff0c\u6211\u662f\u5409\u7530\uff01 \u968f\u7740\u5728\u5bb6\u4e2d\u5ea6\u8fc7\u7684\u65f6\u95f4\u8d8a\u6765\u8d8a\u591a\uff0c\u60a8\u662f\u4e0d\u662f\u5e38\u5e38\u7f3a\u4e4f\u8fd0\u52a8\uff1f\u5728\u5bb6\u4e2d\u65f6\u95f4\u957f\u4e86\uff0c\u5f80\u5f80\u4f1a\u53d8\u5f97\u4e0d\u600e\u4e48\u8fd0\u52a8\uff0c\u8d70\u8def\u7684\u8ddd\u79bb\u4e5f\u4f1a\u51cf\u5c11\uff0c\u4e0d\u77e5\u4e0d [&hellip;]","protected":false},"author":4,"featured_media":21331,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1132],"tags":[],"class_list":["post-21289","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry"],"acf":[],"wps_subtitle":"","_links":{"self":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/21289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/comments?post=21289"}],"version-history":[{"count":14,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/21289\/revisions"}],"predecessor-version":[{"id":30239,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/21289\/revisions\/30239"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media\/21331"}],"wp:attachment":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media?parent=21289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/categories?post=21289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/tags?post=21289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}