\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.\/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
Initialize INA226\n-----------------------------------------------\nMode: Shunt and Bus, Continuous\nSamples average: 1 sample\nBus conversion time: 1.100ms\nShunt conversion time: 1.100ms\nMax possible current: 3.28 A\nMax current: 3.28 A\nMax shunt voltage: 0.08 V\nMax power: 117.96 W\n-----------------------------------------------\nBus voltage: 4.67875 V\nBus power: 0.01250 W\nShunt voltage: 0.00007 V\nShunt current: 0.00300 A\n\nBus voltage: 4.68125 V\nBus power: 0.01250 W\nShunt voltage: 0.00007 V\nShunt current: 0.00300 A\n\nBus voltage: 4.67750 V\nBus power: 0.01250 W\nShunt voltage: 0.00007 V\nShunt current: 0.00300 A<\/pre>\nPC \u304b\u3089\u306eUSB \u96fb\u5727\u306f4.67V \u7a0b\u5ea6\u306e\u3088\u3046\u3067\u3059\u30023mA \u306712.5mW \u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002\u3061\u3083\u3093\u3068\u8a08\u6e2c\u3067\u304d\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u306d\u3002<\/p>\n
arduino \u3060\u3068\u88c5\u5099\u304b\u3089LCD\u306a\u3069\u306b\u51fa\u3059\u7528\u9014\u3067\u4f7f\u3048\u305d\u3046\u3067\u3059\u306d\u3002\u30c7\u30fc\u30bf\u3092\u3069\u3053\u304b\u306b\u98db\u3070\u3059\u3082\u306e\u3067\u3042\u308c\u3070\u3001ESP8266 \u304c\u826f\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n
<\/p>\n
IC \u56de\u8def\u306e\u96fb\u5727\u306f3.3V \u3067\u30825V \u3067\u3082OK\u3067\u3059\u3002LED\u306e\u8ca0\u8377\u3092 arduino \u306e 3.3V \u304b\u3089\u53d6\u3063\u3066\u8a08\u6e2c\u3057\u3066\u307f\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n
Initialize INA226\n-----------------------------------------------\nMode: Shunt and Bus, Continuous\nSamples average: 1 sample\nBus conversion time: 1.100ms\nShunt conversion time: 1.100ms\nMax possible current: 3.28 A\nMax current: 3.28 A\nMax shunt voltage: 0.08 V\nMax power: 117.96 W\n-----------------------------------------------\nBus voltage: 3.26875 V\nBus power: 0.00500 W\nShunt voltage: 0.00004 V\nShunt current: 0.00150 A\n\nBus voltage: 3.27000 V\nBus power: 0.00500 W\nShunt voltage: 0.00004 V\nShunt current: 0.00150 A\n\nBus voltage: 3.26875 V\nBus power: 0.00500 W\nShunt voltage: 0.00004 V\nShunt current: 0.00160 A<\/pre>\n<\/p>\n
\u3061\u3087\u3063\u3068\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u3001\u30ec\u30b8\u30b9\u30bf\u30fc\u306e\u5024\u3092\u53d6\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n
Initialize INA226\n-----------------------------------------------\nMode: Shunt and Bus, Continuous\nSamples average: 1 sample\nBus conversion time: 1.100ms\nShunt conversion time: 1.100ms\nMax possible current: 3.28 A\nMax current: 3.28 A\nMax shunt voltage: 0.08 V\nMax power: 117.96 W\n-----------------------------------------------\nINA226_REG_CONFIG (0x00):16679 ---\nINA226_REG_SHUNTVOLTAGE (0x01):30 ---\nINA226_REG_BUSVOLTAGE (0x02):3749 ---\nINA226_REG_POWER (0x03):5 ---\nINA226_REG_CURRENT (0x04):30 ---\nINA226_REG_CALIBRATION (0x05):2048 ---\n-----------------------------------------------\nBus voltage: 4.68250 V\nBus power: 0.01250 W\nShunt voltage: 0.00007 V\nShunt current: 0.00300 A<\/pre>\n\u30ec\u30b8\u30b9\u30bf\u30fc\u5024\u306f10\u9032\u3067\u3059\u3002\u30a2\u30d9\u30ec\u30fc\u30b8\u306e\u56de\u6570\u3068\u304b\u3082\u5b9a\u6570\u304c\u3042\u308b\u306e\u3067\u4fbf\u5229\u3067\u3059\u306d\u3002
\n
\u7cbe\u5ea6\u306f\u30010.1mA \u306e\u3088\u3046\u3067\u3059\u306d\u3002PCB \u306e\u3042\u307e\u308a\u90e8\u5206\u3067\u4f5c\u3063\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3082\u7d50\u69cb\u904a\u3079\u307e\u3057\u305f\u3002\u3042\u3068\u3001\u5c0f\u3055\u306a\u30d1\u30fc\u30c4\u306e\u534a\u7530\u4ed8\u3051\u306e\u7df4\u7fd2\u306b\u3082\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<\/p>\n
\u25bc\u53c2\u8003\u30b5\u30a4\u30c8<\/p>\n
http:\/\/denshi-kousaku.fan.coocan.jp\/report030.html<\/a><\/p>\n
\u25bc\u307e\u3068\u3081<\/p>\n
\u30fb\u30e9\u30a4\u30d6\u30e9\u30ea\u4fbf\u5229\uff01<\/p>\n