{"id":2074,"date":"2016-01-30T23:27:20","date_gmt":"2016-01-30T14:27:20","guid":{"rendered":"https:\/\/hack.gpl.jp\/?p=2074"},"modified":"2016-01-30T23:27:20","modified_gmt":"2016-01-30T14:27:20","slug":"post-2074","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2016\/01\/30\/post-2074.html","title":{"rendered":"INA226 \u3092 arduino nano \u3067"},"content":{"rendered":"
\u3082\u30461\u6708\u3082\u7d42\u308f\u308a\u3067\u3059\u306d\u3002\u306a\u3093\u3060\u304b\u901f\u304f\u6708\u65e5\u304c\u7d4c\u3064\u3088\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n
\u3055\u3066\u3001\u4eca\u65e5\u306f \u5148\u65e5\u4f5c\u3063\u305f INA226 \u306e\u96fb\u6d41\u96fb\u5727\u30bb\u30f3\u30b5\u30fc\u3092 I2C \u3067 arduino nano \u30af\u30ed\u30fc\u30f3\u306b\u3066\u8a08\u6e2c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n
\u524d\u56de\u306e\u8abf\u67fb\u3067\u898b\u3064\u3051\u305f\u3001\u30dd\u30fc\u30e9\u30f3\u30c9\u306e\u30b5\u30a4\u30c8\u306b\u3044\u3044\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n
\nKorneliusz Jarz\u0119bski\u306e\u30b5\u30a4\u30c8
Dwukierunkowy cyfrowy czujnik pr\u0105du\/mocy INA226<\/a><\/p>\ngithub
Arduino-INA226
https:\/\/github.com\/jarzebski\/Arduino-INA226<\/a><\/p>\n<\/blockquote>\n\u3053\u306eGitHub \u306esimple \u306e\u30bd\u30fc\u30b9\u306b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u914d\u7f6e\u3057\u3001<\/p>\n
.\/INA226_simple\n\u251c\u2500\u2500 INA226.cpp\n\u251c\u2500\u2500 INA226.h\n\u2514\u2500\u2500 INA226_simple.ino<\/pre>\nINA226.cpp \u306e\u8a18\u8ff0\u3092\u4ee5\u4e0b\u306b\u5909\u66f4\u300225mR \u306e\u30b7\u30e3\u30f3\u30c8\u62b5\u6297\u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<\/p>\n
#include "INA226.h"\n::\nvoid setup() \n{\n::\n \/\/ Calibrate INA226. Rshunt = 0.025 ohm, Max excepted current = 4A\n ina.calibrate(0.025, 1);\n::<\/pre>\n\u914d\u7dda\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u3061\u3087\u3063\u3068\u308f\u304b\u308a\u306b\u304f\u3044\u3067\u3059\u304c\u3001Arduino \u306e A5(SCL) \u3068 A4(SDA) \u3092\u3064\u306a\u3044\u3067\u3001GND \u3068 3.3V \u3092 VSS \u306b\u5165\u308c\u307e\u3059\u3002\u3042\u3068\u306f\u3001\u8ca0\u8377\u3092\u96fb\u6d41\u8a08\u6e2c\u306b\u30cf\u30a4\u30b5\u30a4\u30c9\u5074\u306b\u4ed8\u3051\u308b\u611f\u3058\u3067\u3059\u3002<\/p>\n