{"id":2081,"date":"2016-02-01T00:11:08","date_gmt":"2016-01-31T15:11:08","guid":{"rendered":"https:\/\/hack.gpl.jp\/?p=2081"},"modified":"2021-02-20T07:04:16","modified_gmt":"2021-02-19T22:04:16","slug":"post-2081","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2016\/02\/01\/post-2081.html","title":{"rendered":"\u30ed\u30b8\u30c3\u30af\u30a2\u30ca\u30e9\u30a4\u30b6\u3067I2C \u4fe1\u53f7\u3092\u898b\u308b\u3068"},"content":{"rendered":"

INA226 \u3068 arduino \u306e I2C \u4fe1\u53f7\u3092\u30ed\u30b8\u30c3\u30af\u30a2\u30ca\u30e9\u30a4\u30b6\u3067\u898b\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n

\u30b3\u30fc\u30c9\u306f\u524d\u56de\u3068\u540c\u3058\u3082\u306e\u3067\u3059\u30021\u79d2\u3054\u3068\u306b\uff14\u3064\u306e\u30c7\u30fc\u30bf\u3092\u30b2\u30c3\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n

\"\uff11\"<\/a> <\/p>\n

\u30c8\u30ea\u30ac\u306f\u3001SDA \u306b\u304b\u3051\u307e\u3057\u305f\u3002Hi \u304b\u3089 Low \u306b\u306a\u3063\u3066\u4fe1\u53f7\u304c\u884c\u304f\u3088\u3046\u3067\u3059\u3002<\/p>\n

\u307e\u305a\u3001I2C \u30a2\u30c9\u30ec\u30b90x40 \u306e\u30ec\u30b8\u30b9\u30bf 0x02 \u3092\u6295\u3052\u3066\u3001\u5024\u304c\u5e30\u3063\u3066\u304f\u308b\u6d41\u308c\u304c\u898b\u3048\u307e\u3059\u3002\u8aad\u307f\u51fa\u3057\u306b\u306f\u30011.7ms \u307b\u3069\u304b\u304b\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002\u30d3\u30c3\u30c8\u306e\u4fe1\u53f7\u306f\u30014us \u7a0b\u5ea6\u306e\u3088\u3046\u3067\u3059\u3002SDA\u3067\u30d3\u30c3\u30c8\u304c\u7acb\u3063\u3066\u3044\u308b\u306e\u3092\u5224\u5225\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n

 <\/p>\n

\u305f\u3068\u3048\u3070\u3001\u6700\u521d\u306f INA226_REG_BUSVOLTAGE  (0x02) \u3092\u8aad\u307f\u51fa\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3001\u5024\u306f16\u9032\u6570\u3067 0x0E9E \u304c\u5e30\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u300210\u9032\u6570\u3067\u306f\u30013742 \u3067\u3053\u308c\u306b1.25 \u3092\u639b\u3051\u305f\u3082\u306e\u304c mV \u306b\u306a\u308b\u306e\u3067\u30014677.5 mV = 4.6775V \u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306d\u3002\u7cbe\u5ea6\u306f\u30010.1mV \u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n

 <\/p>\n

I2C \u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306a\u751f\u30c7\u30fc\u30bf\u3092\u898b\u308b\u306e\u306f\u4eca\u56de\u304c\u521d\u3081\u3066\u3067\u3059\u3002\u306a\u304b\u306a\u304b\u3001IC\u540c\u58eb\u3067\u901a\u8a71\u3057\u3066\u3044\u308b\u611f\u3058\u304c\u304a\u3082\u3057\u308d\u3044\u3067\u3059\u306d\u3002<\/p>\n

1000\u5206\u306e1,2\u79d2\u3067\u3001\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u3066\u30010 \u3068 1 \u306e Hi \u3068 Low \u306e\u4fe1\u53f7\u306e\u3084\u308a\u53d6\u308a\u3067\u305d\u308c\u3092\u3084\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u306e\u304c\u76ee\u3067\u898b\u3048\u3066\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u3002\u30ed\u30b8\u30c3\u30af\u30a2\u30ca\u30e9\u30a4\u30b6\u3063\u3066\u5049\u3044\u5b58\u5728\u3067\u3059\u306d\u3002<\/p>\n

 <\/p>\n

\u25bc\u307e\u3068\u3081<\/p>\n

\u30fbINA226 \u3068 arduino \u306e I2C \u4fe1\u53f7\u3092\u898b\u3066\u307f\u305f<\/p>\n

\u30fbSDA \u306e LOW \u306b\u30c8\u30ea\u30ac\u30fc\u3092\u304b\u3051\u3066\u63a1\u53d6\u3002<\/p>\n

\u30fb\u30b9\u30ec\u30fc\u30d6\u30a2\u30c9\u30ec\u30b9+\u30c7\u30fc\u30bf\u9818\u57df\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u5bfe\u5fdc\u3059\u308b\u30b9\u30ec\u30fc\u30d6\u304b\u3089\u5024\u304c\u5e30\u3063\u3066\u304f\u308b<\/p>\n

\u30fbSCL \u306b\u30d3\u30c3\u30c8\u30c7\u30fc\u30bf\u304c\u6d41\u308c\u3001SDA \u306b\u30c7\u30fc\u30bf\u6d41\u308c\u308b\u611f\u3058\u3002\u4e21\u65b9\u3068\u3082Hi \u306b\u306a\u3063\u305f\u90e8\u5206\u304c \u30d3\u30c3\u30c8\u304c\u7acb\u3064\u611f\u3058\u3002<\/p>\n

\u30fb\u30d3\u30c3\u30c8 \u306eHi \u306b\u306a\u308b\u6642\u9593\u306f\u30014us \u307b\u3069\u3002<\/p>\n

\u30fb\uff11\u3064\u306e\u30ec\u30b8\u30b9\u30bf\u306e\u8aad\u307f\u51fa\u3057\u306b\u306f\u30011.7ms \u307b\u3069\u304b\u304b\u308b\u3002<\/p>\n

\u30fb\u547c\u3073\u51fa\u3057\u304b\u3089\u5fdc\u7b54\u307e\u3067\u306e\u9593\u9694\u306f\u30011ms \u307b\u3069\u30020.7ms \u3067\u30c7\u30fc\u30bf\u3092\u3084\u308a\u53d6\u308a\u3057\u3066\u3044\u308b\u3002\u5408\u8a08\u30671.7ms<\/p>\n

\u30fb\u5b89\u7269\u306e\u30ed\u30b8\u30c3\u30af\u30a2\u30ca\u30e9\u30a4\u30b6\u3067\u3082\u5341\u5206\u73fe\u8c61\u3092\u89b3\u5bdf\u3067\u304d\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

INA226 \u3068 arduino \u306e I2C \u4fe1\u53f7\u3092\u30ed\u30b8\u30c3\u30af\u30a2\u30ca\u30e9\u30a4\u30b6\u3067\u898b\u3066\u307f\u307e\u3057\u305f\u3002 \u30b3\u30fc\u30c9\u306f\u524d\u56de\u3068\u540c\u3058\u3082\u306e\u3067\u3059\u30021\u79d2\u3054\u3068\u306b\uff14\u3064\u306e\u30c7\u30fc\u30bf\u3092\u30b2\u30c3\u30c8\u3057\u3066\u3044\u307e\u3059\u3002 \u30c8\u30ea\u30ac\u306f\u3001SDA \u306b\u304b\u3051\u307e\u3057\u305f\u3002Hi \u304b\u3089 Low \u306b\u306a\u3063\u3066 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[9,40,64,470],"tags":[],"acf":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"JunkHack","author_link":"https:\/\/hack.gpl.jp\/author\/junkhack\/"},"uagb_comment_info":0,"uagb_excerpt":"INA226 \u3068 arduino \u306e I2C \u4fe1\u53f7\u3092\u30ed\u30b8\u30c3\u30af\u30a2\u30ca\u30e9\u30a4\u30b6\u3067\u898b\u3066\u307f\u307e\u3057\u305f\u3002 \u30b3\u30fc\u30c9\u306f\u524d\u56de\u3068\u540c\u3058\u3082\u306e…","_links":{"self":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/2081"}],"collection":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/comments?post=2081"}],"version-history":[{"count":0,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/2081\/revisions"}],"wp:attachment":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/media?parent=2081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/categories?post=2081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/tags?post=2081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}