Page 1 of 1

ESP32 I2C read issue

Posted: Tue Jun 18, 2019 9:22 am
by Manish Jugran
Hi ,
I am using ADC121C_MQ4_Methane_Gas_Sensor with esp32 but not able to detect I2C address.What would be the I2C scan code for esp32 ?

Re: ESP32 I2C read issue

Posted: Thu Jun 20, 2019 9:14 am
by rodmcm
The sensor, if it is I2C compatible should have a singular or range of addresses that can be used to read and write to it. If you cannot find this in a manual then search for 'I2C Scanner" this program will register all of the I2C nodes connected.

http://www.ti.com/lit/ds/symlink/adc121c021.pdf

Interfacing ADC121C With Arduino Nano(I2C) - Instructables

Its all out there if you look!