This project aims to implement fast GPU power monitoring system using INA260 sensors connected to a Raspberry Pi 3
Four INA260 are used to measure two GPU powers simultaneously
In order to achieve higher i2c speed, it is required to change the default i2c speed of Raspberry Pi from 100Mbp to 2Mbps
- Open /boot/config.txt file
sudo nano /boot/config.txt
- Find the line containing
/boot/config.txt
and add,i2c_arm_baudrate=1200000
to the end of the line. Also addforce_turbo=1
line to the file. The resut would become like the following
...
force_turbo=1
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on,i2c_arm_baudrate=1200000
...
- reboot the Raspberry Pi
sudo reboot
- Verify if the changed are applied
bash i2cspeed.sh