Page 1 of 2

ssd1306 oled on i2c not showing up ( esp Azure iot kit )

Posted: Fri May 03, 2019 4:29 am
by manjuk123
I used esp32_azure_iot_kit example code from this repo.
I tried using esp_tool to scan for available devices, Except OLED ( addr: 0x3c ) other sensors are showing up. Below is the result on i2cdetect

Scanning I2C Addresses
.. .. .. .. .. .. .. .. .. .. .. .. .. .. 0E ..
.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
.. .. .. 23 .. .. .. .. .. .. .. .. .. .. .. ..
.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. 5F
.. .. .. .. .. .. .. .. 68 .. .. .. .. 6D .. ..
.. .. .. .. .. .. .. .. .. .. .. .. .. .. ..

Re: ssd1306 oled on i2c not showing up ( esp Azure iot kit )

Posted: Mon May 06, 2019 2:23 am
by ESP_@In逍遥子
Please review #39

Re: ssd1306 oled on i2c not showing up ( esp Azure iot kit )

Posted: Mon May 06, 2019 3:51 am
by ESP_Sprite
Does the display actually work if you try to control it? (FWIW, the display has a separate pin on which the ACK is sent, that should, according to the schematic, be tied into theSDA line... but if it's not, you'd get this effect.)

Re: ssd1306 oled on i2c not showing up ( esp Azure iot kit )

Posted: Tue May 07, 2019 10:31 am
by manjuk123
@ESP_Sprite
Board : Esp Azure IOT kit
It has temperature/humidity, light, motion etc,., sensors. Everything was working perfectly working when i bought it.
I flashed a example code from esp-iot-solution repo and suddenly led stopped working, now all the sensors stopped working.
when i scan for i2c device using i2ctool, i am getting this,

esp32> i2cconfig --port=1 --freq=100000 --sda=25 --scl=26

esp32> i2cdetect
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU
10: UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU
20: UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU
30: UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU
40: UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU
50: UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU
60: UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU
70: UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU UU

esp32> i2cget -c 0x5F -r 0x0F
W (136645) cmd_i2ctools: Bus is busy

Iam very new to esp, I dont know how to control display. Please let me know if you have any link where I can go through and debug this.

Re: ssd1306 oled on i2c not showing up ( esp Azure iot kit )

Posted: Wed May 08, 2019 1:16 am
by ESP_Sprite
Do you have anything connected to the ESP32 board? Did you do anything that may have broken the hardware?

Re: ssd1306 oled on i2c not showing up ( esp Azure iot kit )

Posted: Wed May 08, 2019 6:48 am
by manjuk123
No I haven't connected anything to board. I have powered up the board through USB. From debugging what i got to know is SDA value is always 0 and SCL value remains 1.

Re: ssd1306 oled on i2c not showing up ( esp Azure iot kit )

Posted: Thu May 09, 2019 7:05 am
by manjuk123
@ESP_Sprite any thought on this behavior

Re: ssd1306 oled on i2c not showing up ( esp Azure iot kit )

Posted: Thu May 09, 2019 8:01 am
by ESP_Sprite
Sorry, I'm not too familiar with that exact hardware... It seems the default firmware for the board should light up the OLED. Can you try compiling/flashing this perhaps?

Re: ssd1306 oled on i2c not showing up ( esp Azure iot kit )

Posted: Thu May 09, 2019 9:47 am
by manjuk123
@ESP_Sprite I tried but still no data from any sensors.

Re: ssd1306 oled on i2c not showing up ( esp Azure iot kit )

Posted: Thu May 09, 2019 9:48 am
by manjuk123
Nothing on the OLED too...