ESP32 I2C read issue

Manish Jugran
Posts: 6
Joined: Mon Jun 10, 2019 6:20 am

ESP32 I2C read issue

Postby Manish Jugran » Tue Jun 18, 2019 9:22 am

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 ?

rodmcm
Posts: 65
Joined: Sat Sep 02, 2017 3:31 am

Re: ESP32 I2C read issue

Postby rodmcm » Thu Jun 20, 2019 9:14 am

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!

Who is online

Users browsing this forum: No registered users and 174 guests