07-26-2016, 02:59 AM
Hi,
I found the problem that cause the I2c communication brake down when installing the I2c POT. The problem is due to the internal pull up feature is not enabled by default on the i2c i/o pin. I manage to come up with a small program that enable the internal pull up for the I2c Pin. You can download it from the wiki page. The archive is included with the source code and the compiled binary (I use ubuntu 20160716-1 image with gcc to compile the code).
You just need to execute the program once (with root access privilege) to enable the internal pull. After that, you can test it out using the i2cdetect to detect the i2c devices.
../KH Goh
I found the problem that cause the I2c communication brake down when installing the I2c POT. The problem is due to the internal pull up feature is not enabled by default on the i2c i/o pin. I manage to come up with a small program that enable the internal pull up for the I2c Pin. You can download it from the wiki page. The archive is included with the source code and the compiled binary (I use ubuntu 20160716-1 image with gcc to compile the code).
You just need to execute the program once (with root access privilege) to enable the internal pull. After that, you can test it out using the i2cdetect to detect the i2c devices.
../KH Goh