[SOLVED] I2C Scan see nothing

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Dodfr
Normal user
Posts: 12
Joined: 12 Feb 2017, 11:17

[SOLVED] I2C Scan see nothing

#1 Post by Dodfr » 12 Feb 2017, 11:27

Hello,

I try to use ESPEasy with I2C devices but can't make I2C Scan find them with ESP 12F 4Mb.

I tried with a few firmware versions (including the up to date R148 I compiled my self) and different ESP modules (but all 12F).

I2C is very simple to wire so I don't understand what could possibly go wrong.

I try to use BME280 (works well with my Arduino and RaspPi) also tried with a HTU21D (also a T°/humidity sensor) that I know is not managed by ESP Easy but it should at least show its ID in I2C Scan.

Any idea ? are they some I/O PIN not working with 12F (I tried different PIN with no result).

regards.
Last edited by Dodfr on 13 Feb 2017, 00:01, edited 4 times in total.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: I2C Scann see nothing

#2 Post by Shardan » 12 Feb 2017, 14:44

Hello,

i use BME280, BMP180, SI7021, OLED and LCD Display and some Luminosity sensors, I can say all these work without problem.

In general i use GPIO 4 & 5 for SDA/SCL lines. The most common mistake i often made is not checking the GPIO Pins.
ESPEasy-HWsettings.jpg
ESPEasy-HWsettings.jpg (84.24 KiB) Viewed 6276 times
Check settings in the "Hardware" tag: Are SDA and SCL connected correctly? Often they are swapped and scanning shows no result.
Leave the pin modes for your I²C GPIO's to "Default".
If connected directly to the ESP-Chip, the sensors must be powered with 3,3 volts.
Now check I²C Scan, it should give a result like this:
ESPEasy-I2C-Scan.jpg
ESPEasy-I2C-Scan.jpg (53.3 KiB) Viewed 6276 times
Regards
Shardan
Regards
Shardan

Dodfr
Normal user
Posts: 12
Joined: 12 Feb 2017, 11:17

Re: I2C Scan see nothing

#3 Post by Dodfr » 12 Feb 2017, 22:48

I just connected the ESP again to recheck and now it detect the BME thinking about it may be I have mixed the GPIO numbers with the PIN numbers for example I may have selected GPIO-5 with ESP D4 Pin but connected wire to D5 it's the only reason that come into my mind.
2017-02-12 22_54_33-Clipboard.png
2017-02-12 22_54_33-Clipboard.png (6.64 KiB) Viewed 6246 times
But the values are zero
2017-02-12 22_55_38-ESP1.png
2017-02-12 22_55_38-ESP1.png (20.17 KiB) Viewed 6246 times
So it's not 100% OK for now.

Edit : after reading some info on the WIKI I see I had to set IDX/Var to non Zero value as I do not use Domoticz now it's fine
2017-02-13 00_00_17-ESP1.png
2017-02-13 00_00_17-ESP1.png (20.67 KiB) Viewed 6244 times

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests