{"id":1069,"date":"2019-08-23T21:42:01","date_gmt":"2019-08-23T13:42:01","guid":{"rendered":"https:\/\/comzyh.com\/blog\/?p=1069"},"modified":"2021-11-17T00:19:02","modified_gmt":"2021-11-16T16:19:02","slug":"nrf51822mpu6050-%e8%93%9d%e7%89%99%e5%8a%a0%e9%80%9f%e5%ba%a6%e4%bc%a0%e6%84%9f%e5%99%a8%e7%9a%84%e5%8a%9f%e8%80%97%e6%8e%a7%e5%88%b6","status":"publish","type":"post","link":"https:\/\/comzyh.com\/blog\/archives\/1069\/","title":{"rendered":"NRF51822+MPU6050 \u84dd\u7259\u52a0\u901f\u5ea6\u4f20\u611f\u5668\u7684\u529f\u8017\u63a7\u5236"},"content":{"rendered":"\n<p>\u4e0a\u4e2a\u6708\uff08Jul 2019\uff09\u5728\u516c\u53f8\u505a\u4e00\u4e2a Hackathon \u9879\u76ee\uff0c\u60f3\u7684\u662f\u7ed9 PC \u7684\u5c4f\u5e55\u52a0\u4e0a\u91cd\u529b\u611f\u5e94\u65cb\u8f6c\uff0c\u5c31\u548c\u624b\u673a\u5e73\u677f\u4e00\u6837\uff0c\u9009\u62e9\u4e86\u4f4e\u529f\u8017\u84dd\u7259\uff08BLE\uff09\u83b7\u53d6\u52a0\u901f\u5ea6\u4fe1\u606f\uff08\u53ef\u63a8\u51fa\u91cd\u529b\u65b9\u5411\uff09\u3002\u5728 Windows \u4e0a\u5199\u4e86\u540e\u53f0\u7a0b\u5e8f<a href=\"https:\/\/github.com\/hcwg\/ScreenFerris\">https:\/\/github.com\/hcwg\/ScreenFerris<\/a>\uff0c\u8dd1\u7684\u5f88\u6210\u529f\u3002\u6f14\u793a\u7ed9\u6574\u4e2a\u516c\u53f8\u7684\u540c\u4e8b\u770b\u53cd\u54cd\u4e5f\u53ef\u4ee5\u3002\u4f46\u662f\u6709\u4e00\u4e2a\u4e25\u91cd\u7684\u95ee\u9898\uff0c\u5c31\u662f\u4e00\u8282 CR2032 \u7ebd\u6263\u7535\u6c60\u53ea\u80fd\u652f\u6491<strong>5\u5929<\/strong>\u5de6\u53f3\u3002\u7eed\u822a\u4e25\u91cd\u4e0d\u8db3\u3002<\/p>\n\n\n\n<p>\u6211\u7528\u7684\u4f20\u611f\u5668\u662f\u6dd8\u5b9d\u8d2d\u4e70\u7684\uff0cNRF51822 \u4e3b\u63a7 + MPU6050 \u52a0\u901f\u5ea6\u8ba1\u548c\u9640\u87ba\u4eea\uff0c\u8fd8\u6709\u6211\u7528\u4e0d\u5230\u7684\u73af\u5883\u5149\u4f20\u611f\u5668\u548c\u6e29\u5ea6\u4f20\u611f\u5668\u3002\u751f\u4ea7\u5546\u662f\u8baf\u8054\u7535\u5b50\uff08infor-link\uff09\uff0c\u4ea7\u54c1\u540d\u662f NRF51 Sensor Tag\uff0c\u6b64\u4e3a\u786c\u4ef6\u80cc\u666f\u3002<\/p>\n\n\n\n<p>\u6211\u663e\u7136\u77e5\u9053\u73b0\u5728\u4f4e\u529f\u8017\u84dd\u7259\u6709\u591a\u5389\u5bb3\uff0c\u5927\u90e8\u5206\u8bbe\u5907\u90fd\u80fd\u7528\u4e00\u8282 CR2032 \u7535\u6c60\u7eed\u822a\u4e00\u5e74\uff0c\u663e\u7136\u662f\u5382\u5546\u9644\u5e26\u7684\u7a0b\u5e8f\u548c\u6211\u7684\u9700\u6c42\u4e0d\u5951\u5408\uff0c\u5bfc\u81f4\u7eed\u822a\u4e0d\u591f\u957f\u3002\u4e8e\u662f\u6211\u51b3\u5b9a\u81ea\u5df1\u5199\u4e00\u4e0b\u4ee3\u7801\uff0c\u53cd\u6b63 ARM \u7684\u7a0b\u5e8f\u4e5f\u4e0d\u662f\u7b2c\u4e00\u6b21\u5199\uff0c\u80fd\u6709\u591a\u96be\uff1f\u5728\u82cf\u5dde\u7528\u6389\u4e86\u4e24\u5468\u7684\u665a\u4e0a\u5927\u6982\u641e\u51fa\u6765\u4e86\uff0c\u73b0\u5728\u7eed\u822a\u8fd8\u5728\u6d4b\u8bd5\uff0c\u4e0d\u8fc7\u770b\u8d77\u6765\u7535\u538b\u90fd\u4e0d\u600e\u4e48\u4e0b\u964d\u7684\u6837\u5b50\u3002<\/p>\n\n\n\n<p>\u786c\u4ef6\u5708\u5b50\u5206\u4eab\u7684\u6c14\u6c1b\u4e0d\u592a\u6d53\uff0c\u6211\u5c31\u5927\u6982\u5199\u4e0b\u81ea\u5df1\u7684\u5fc3\u5f97\uff0c\u5e0c\u671b\u80fd\u5e2e\u52a9\u5230\u522b\u4eba\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h4 class=\"wp-block-heading\">1.\u51cf\u5c11\u65e0\u7ebf\u7535\u53d1\u9001<\/h4>\n\n\n\n<p>\u6211\u7684\u9700\u6c42\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u628a Sensor \u8d34\u5728\u663e\u793a\u5668\u4e0a\uff0c\u7136\u540e\u5f53\u663e\u793a\u5668\u65cb\u8f6c\u7684\u65f6\u5019 \u4f20\u611f\u5668 \u80fd\u544a\u8bc9 PC \u52a0\u901f\u5ea6\u4fe1\u606f\u5c31\u884c\u3002\u539f\u5382\u7684\u7a0b\u5e8f\u6ca1\u7ed9\u6e90\u7801\uff0c\u80fd\u5e72\u7684\u4e8b\u60c5\u5c31\u662f\u7531 PC \u76d1\u542c\uff08Enable Notify) \u4f20\u611f\u5668\u67d0\u4e2a Service \u7684\u67d0\u4e2a Characteristic\uff0c \u6bcf\u9694\u4e00\u79d2\u7531\u4f20\u611f\u5668\u901a\u77e5 PC \u5f53\u524d\u7684\u52a0\u901f\u5ea6\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e0e\u8fd9\u7c7b\u4f4e\u529f\u8017MCU\uff0c\u5e73\u5e38\u8fd0\u884c\u7535\u6d41\u90fd\u662f 1-40\u03bcA \u7ea7\u522b\uff0c\u4f46\u662f\u7535\u78c1\u6ce2\u8f90\u5c04\u5fc5\u7136\u643a\u5e26\u80fd\u91cf\uff0c\u6240\u4ee5\u53d1\u5c04\u4fe1\u53f7\u7684\u65f6\u5019\u7535\u6d41\u53ef\u8fbe2-5mA\u5de6\u53f3\uff0c\u800c\u4e14\u53d1\u5c04\u8017\u80fd\u662f\u4e0d\u53ef\u80fd\u907f\u514d\u7684\u3002\u6240\u4ee5\u51cf\u5c11\u53d1\u5c04\u6b21\u6570\u663e\u5f97\u81f3\u5173\u91cd\u8981\u3002\u7684\u8baf\u8054\u7535\u5b50\u7684\u51fa\u5382\u56fa\u4ef6\u5012\u662f\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4fee\u6539\u9891\u7387\u7684\u63a5\u53e3\uff0c\u4f46\u662f\u8fd9\u4e2a\u56fa\u5b9a\u9891\u7387\u5e76\u4e0d\u662f\u6700\u4f18\u7684\uff0c\u6211\u4eec\u6f14\u793a\u7684\u65f6\u5019\u7528\u7684\u662f 1s \u95f4\u9694\uff0c\u5982\u679c\u63d0\u9ad8\u95f4\u9694\u5219\u54cd\u5e94\u901f\u5ea6\u4f1a\u53d8\u6162\uff0c\u964d\u4f4e\u95f4\u9694\u5219\u529f\u8017\u4e0d\u53ef\u63a5\u53d7\u3002<\/p>\n\n\n\n<p>\u6211\u9009\u62e9\u7684\u65b9\u6848\u662f\u5728\u7247\u4e0a\u5bf9\u52a0\u901f\u5ea6\u4fe1\u606f\u505a\u5904\u7406\uff0c\u8ba1\u7b97\u76f8\u5bf9\u4e0a\u6b21\u53d1\u5c04\u7684\u65cb\u8f6c\u89d2\u5ea6\uff0c\u5982\u679c\u5927\u4e8e5\u00b0\u624d\u53d1\u5c04\uff0c\u5e76\u4e14\u4e4b\u540e\u4ee5 200ms \u7684\u95f4\u9694\u8fde\u7eed\u53d1\u5c045\u6b21\u4ee5\u5e94\u5bf9\u8fde\u7eed\u65cb\u8f6c\u6216\u8005\u5176\u4ed6\u9700\u8981\u7cbe\u5ea6\u548c\u7a33\u5b9a\u6027\u7684\u9700\u6c42\uff0c\u6b64\u5916\u6bcf\u9694 10s \u6216\u8005\u66f4\u957f\u4e5f\u53d1\u9001\u4e00\u6b21\u4ee5\u786e\u4fdd\u80fd\u4fdd\u6301\u6d3b\u8dc3\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2.\u542f\u7528 NRF51822 \u4e0a\u7684\u7247\u4e0a DCDC \u6a21\u5757<\/h4>\n\n\n\n<p>\u7535\u6c60\u7535\u538b\u5bf9\u4e8e\u6211\u4eec\u9700\u8981\u7684\u65e0\u7ebf\u7535\u53d1\u5c04\u6709\u70b9\u9ad8\uff0c\u542f\u7528 DCDC \u53ef\u4ee5\u964d\u4f4e\u5929\u7ebf\u653e\u5927\u5668\u7684\u7535\u538b\uff0c\u964d\u4f4e\u529f\u8017\uff0c\u51fa\u5382\u56fa\u4ef6\u867d\u7136\u6ca1\u6709\u6e90\u7801\uff0c\u4f46\u662f\u6211\u901a\u8fc7\u8c03\u8bd5\u63a5\u53e3\u786e\u8ba4\u4e86 DCDC \u76f8\u5173\u5bc4\u5b58\u5668\u7684\u8bbe\u7f6e\uff0c\u786e\u5b9a\u539f\u5382\u56fa\u4ef6\u6ca1\u6709\u542f\u7528 DCDC\u3002<\/p>\n\n\n\n<p>\u5f85\u7eed<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3. \u542f\u7528 MPU6050 \u7684\u4f4e\u529f\u8017\u6a21\u5f0f<\/h4>\n\n\n\n<p>MPU6050 \u4e0a\u6709\u52a0\u901f\u5ea6\u4f20\u611f\u5668\uff0c\u9640\u87ba\u4eea\uff08\u89d2\u52a0\u901f\u5ea6\u4f20\u611f\u5668\uff09\uff0c\u548c\u6e29\u5ea6\u4f20\u611f\u5668\u3002\u5168\u90e8\u5f00\u542f\u7684\u7535\u6d41\u7ea6\u4e3a 3.2mA\u3002MPU6050 \u5f88\u8d34\u5fc3\u7684\u63d0\u4f9b\u4e86\u4f4e\u529f\u8017\u6a21\u5f0f\uff0c\u5982\u679c\u53ea\u9700\u8981\u52a0\u901f\u5ea6\uff0c\u53ef\u4ee5\u5c4f\u853d\u5176\u4ed6\u529f\u80fd\u5e76\u7531 MPU6050 \u81ea\u884c\u5468\u671f\u6027\u7761\u7720\uff0c\u4e0d\u9700\u8981 MCU \u5e72\u9884\u3002\u5728 1.25 Hz \u7684\u5524\u9192\u9891\u7387\u4e0b\u7535\u6d41\u4e3a 10\u03bc\u5b89\uff0c\u6211\u91c7\u7528\u4e86 5Hz\u7684\u9891\u7387\uff0c\u7535\u6d41\u4ec5\u4e3a 20 \u03bcA\u3002\u662f\u539f\u59cb\u6a21\u5f0f\u7684\u767e\u5206\u4e4b\u4e00\u3002<\/p>\n\n\n\n<p>\u5f85\u7eed<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u603b\u7ed3<\/h2>\n\n\n\n<p>\u5176\u5b9e MPU6050 \u7684\u4f4e\u529f\u8017\u6a21\u5f0f\u662f\u6700\u91cd\u8981\u7684\uff0c\u524d\u4e24\u4e2a\u65b9\u6cd5\u52a0\u4e0a\u4e4b\u540e\u90fd\u6ca1\u4ec0\u4e48\u660e\u663e\u7684\u529f\u8017\u964d\u4f4e\u3002MPU6050 \u4f4e\u529f\u8017\u6a21\u5f0f\u5f00\u542f\u540e\u6548\u679c\u7acb\u7aff\u89c1\u5f71\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u4e2a\u6708\uff08Jul 2019\uff09\u5728\u516c\u53f8\u505a\u4e00\u4e2a Hackathon \u9879\u76ee\uff0c\u60f3\u7684\u662f\u7ed9 PC \u7684\u5c4f\u5e55\u52a0\u4e0a\u91cd\u529b\u611f\u5e94\u65cb\u8f6c\uff0c\u5c31\u548c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[1],"tags":[],"class_list":["post-1069","post","type-post","status-publish","format-standard","hentry","category-1"],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6XQWE-hf","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/comzyh.com\/blog\/wp-json\/wp\/v2\/posts\/1069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/comzyh.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/comzyh.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/comzyh.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/comzyh.com\/blog\/wp-json\/wp\/v2\/comments?post=1069"}],"version-history":[{"count":2,"href":"https:\/\/comzyh.com\/blog\/wp-json\/wp\/v2\/posts\/1069\/revisions"}],"predecessor-version":[{"id":1086,"href":"https:\/\/comzyh.com\/blog\/wp-json\/wp\/v2\/posts\/1069\/revisions\/1086"}],"wp:attachment":[{"href":"https:\/\/comzyh.com\/blog\/wp-json\/wp\/v2\/media?parent=1069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/comzyh.com\/blog\/wp-json\/wp\/v2\/categories?post=1069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/comzyh.com\/blog\/wp-json\/wp\/v2\/tags?post=1069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}