Hello everybody! Forgive me for my bad English. I need to use ina3221 together with orange-pi one. I have installed Armbian 5.30. I have connected the device properly. when you call the command: sudo i2cdetect -y 0-I see the address 0x40 appeared. The photo is attached "i2cdetect.png".
![]()
![]()
That is, the orange-pi one saw the device on the i2c bus.
Next, I downloaded this from here:
github.com/switchdoclabs/SDL_Pi_INA3221. all files and put them on orange-pi one.
i2cdetect
After I try to run the file: testSDL_Pi_INA3221.py and see the following:
root@orangepione:/test2# ./testSDL_Pi_INA3221.py
Test SDL_Pi_INA3221 Version 1.0 - SwitchDoc Labs
Sample uses 0x40 and SunAirPlus board INA3221
Will work with the INA3221 SwitchDoc Labs Breakout Board
Program Started at:2017-11-16 11:46:12
Traceback (most recent call last):
File "./testSDL_Pi_INA3221.py", line 30, in
ina3221 = SDL_Pi_INA3221.SDL_Pi_INA3221(addr=0x40)
File "/test2/SDL_Pi_INA3221.py", line 91, in init
self._write_register_little_endian(INA3221_REG_CONFIG, config)
File "/test2/SDL_Pi_INA3221.py", line 123, in _write_register_little_endian
self._bus.write_word_data(self._addr, register, switchdata)
IOError: [Errno 70] Communication error on send
err
I'm completely new in this matter. I ask you not to judge strictly. I would be very grateful if anyone could help me solve my problem. Thank you in advance!