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.
[SOLVED] I2C Scan see nothing
Moderators: grovkillen, Stuntteam, TD-er
[SOLVED] I2C Scan see nothing
Last edited by Dodfr on 13 Feb 2017, 00:01, edited 4 times in total.
Re: I2C Scann see nothing
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.
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:
Regards
Shardan
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.
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:
Regards
Shardan
Regards
Shardan
Shardan
Re: I2C Scan see nothing
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.
But the values are zero
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
But the values are zero
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
Who is online
Users browsing this forum: No registered users and 21 guests