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

manjuk123
Posts: 7
Joined: Fri May 03, 2019 3:58 am

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

Postby manjuk123 » Fri May 03, 2019 4:29 am

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 .. ..
.. .. .. .. .. .. .. .. .. .. .. .. .. .. ..

ESP_@In逍遥子
Posts: 132
Joined: Thu Nov 15, 2018 2:06 am

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

Postby ESP_@In逍遥子 » Mon May 06, 2019 2:23 am

Please review #39

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Mon May 06, 2019 3:51 am

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.)

manjuk123
Posts: 7
Joined: Fri May 03, 2019 3:58 am

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

Postby manjuk123 » Tue May 07, 2019 10:31 am

@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.

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Wed May 08, 2019 1:16 am

Do you have anything connected to the ESP32 board? Did you do anything that may have broken the hardware?

manjuk123
Posts: 7
Joined: Fri May 03, 2019 3:58 am

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

Postby manjuk123 » Wed May 08, 2019 6:48 am

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.

manjuk123
Posts: 7
Joined: Fri May 03, 2019 3:58 am

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

Postby manjuk123 » Thu May 09, 2019 7:05 am

@ESP_Sprite any thought on this behavior

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Thu May 09, 2019 8:01 am

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?

manjuk123
Posts: 7
Joined: Fri May 03, 2019 3:58 am

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

Postby manjuk123 » Thu May 09, 2019 9:47 am

@ESP_Sprite I tried but still no data from any sensors.

manjuk123
Posts: 7
Joined: Fri May 03, 2019 3:58 am

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

Postby manjuk123 » Thu May 09, 2019 9:48 am

Nothing on the OLED too...

Who is online

Users browsing this forum: No registered users and 41 guests