How to use I2C in ESP32 || Interface LCD 1602 || Espressif IDE

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025
  • Purchase the Products shown in this video from :: controllerstec...
    ________________________________________________________________________________________
    Check out the Library Explained :: • How Did I write the I2...
    To download the code, and for details goto:: controllerstec...
    ESP32 Playlist :::: • ESP32 Tutorials using ...
    ________________________________________________________________________________________
    ****** SUPPORT US BY DONATING*****
    paypal.me/cont...
    ******Join the Membership******
    / @controllerstech
    Join the Discord Server / discord
    Join the Telegram Group t.me/controlle...
    Follow me on Instagram / controllerstech
    For more info, visit www.controller...

ความคิดเห็น • 43

  • @gtcollection6933
    @gtcollection6933 2 ปีที่แล้ว +1

    This was a great tut, thank you. It would be nice to see more esp-idf material coming from your level of engineering. As you've probably noticed most are dumping ST Microelectronics and aren't participating in their pricing and hoarding scams anymore. Espressif and GigaDevice seems to be the "Go To" alternatives

    • @JoseLucasd
      @JoseLucasd 27 วันที่ผ่านมา

      keeps dreaming, lol.

  • @DanteVidaurri
    @DanteVidaurri 11 หลายเดือนก่อน

    Do you know what I would need to change to the code inorder to use it for NHD CIZ model

  • @waltersa9584
    @waltersa9584 2 ปีที่แล้ว

    Great teacher!! Thank you! Do you have an example with 2 components? For example: using uart and display.

  • @ortani
    @ortani 11 หลายเดือนก่อน +1

    Thanks a lot for this article. I am trying hard to make this lcd screen work on my esp32, but for some reason I can't. Maybe it's because of some config related to the espressif idf, like clock speed? When I use Arduino IDE with the same hardware, It works, but with the IDF. Does not. I tested my codes using the wokwi and I'ts working too. Probably it's something related to my environment.

    • @subhramaiti9108
      @subhramaiti9108 10 หลายเดือนก่อน +1

      Try by not right shifting the address
      #define SLAVE_ADDRESS_LCD 0x27 // change this according to ur setup

  • @mehmetemin3703
    @mehmetemin3703 2 ปีที่แล้ว

    you are a great teacher 👍

  • @MikhailGoncharov-tl4cr
    @MikhailGoncharov-tl4cr 7 หลายเดือนก่อน

    We need to see your face. Tell us about yourself. Your video is very good. Please make video about yourself.

  • @sloushi7235
    @sloushi7235 6 หลายเดือนก่อน +5

    it doesn't work for me my lcd displays random things and i used chatgpt to understand why but till now i didn't find a solution to that problem. I modified the delays and i used the address 0x27 in my code according to my i2c but nothing works 😢😢 HELP SOS

    • @ibrahimgundogmus2111
      @ibrahimgundogmus2111 5 หลายเดือนก่อน

      did you solve the problem?

    • @sloushi7235
      @sloushi7235 4 หลายเดือนก่อน +1

      @@ibrahimgundogmus2111 unfortunately no

    • @JoseLucasd
      @JoseLucasd 26 วันที่ผ่านมา

      where's the code, huh?

  • @christelting1359
    @christelting1359 ปีที่แล้ว

    What is the text to speech software you used... I heard it on multiple youtube videos. It's iconic.

  • @chronobot2001
    @chronobot2001 ปีที่แล้ว

    Is there a panic mode?

  • @noweare1
    @noweare1 2 ปีที่แล้ว +1

    I had to increase my delays in the lcd_init function to get it to work. Before that random garbage was displayed on the lcd so maybe can help others.

    • @ControllersTech
      @ControllersTech  2 ปีที่แล้ว +1

      The next video coming soon.. i have explained everything there.
      Anyway, in the manual, they have only shown for D7, D6, D5, D4 = 0011. The D3-D0 are not mentioned, so they are assumed 0's..

  • @SpodCiemnejGwiazdy
    @SpodCiemnejGwiazdy 2 ปีที่แล้ว +1

    Hi,
    Where did you find i2c-lcd library?

    • @ControllersTech
      @ControllersTech  2 ปีที่แล้ว +1

      Here...
      th-cam.com/video/WAGLQOIHEio/w-d-xo.html

  • @noweare1
    @noweare1 2 ปีที่แล้ว

    Excellent tutorial video. I will be following this series, thanks.
    Why did you not have to #include "esp_log.h" in i2c-lcd.c I got an error when I didn't. I will have to put a logic analyzer on the display I am getting garbage, even though the code is the same except I use vtaskdelay instead of the usleep() functions which should not make any difference.

  • @SY_ViralShorts360M
    @SY_ViralShorts360M 2 ปีที่แล้ว

    Thanks for sharing knowledge.
    I am going to subscribe

  • @tungvu8181
    @tungvu8181 ปีที่แล้ว

    can i change the default pin for i2c connection of ESP32

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      I don't know. Check in the documentation if the pin remapping is possible or not.
      Alternatively you can use another i2c instance.

  • @chlaxmikanth5695
    @chlaxmikanth5695 9 หลายเดือนก่อน

    i am using 128*160 rgb tft_lcd display but i get error after flash like end of the video what you shown please can you solve my queory

    • @ControllersTech
      @ControllersTech  9 หลายเดือนก่อน

      This video is for 1602 character lcd, not rgb tft_lcd.

    • @chlaxmikanth5695
      @chlaxmikanth5695 9 หลายเดือนก่อน

      Could you take a video for us showcasing the ESP32 TFT LCD display? expressif project

  • @zomstein
    @zomstein ปีที่แล้ว

    can you make a video but without the i2c?

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      There is already a video on without i2c.

    • @zomstein
      @zomstein ปีที่แล้ว

      @@ControllersTech I can´t find it. can you showme the link??

    • @wagnerduarte8010
      @wagnerduarte8010 ปีที่แล้ว

      @@ControllersTech pode mandar o link, tambem nao encontrei

  • @HousseinDroubi-o9i
    @HousseinDroubi-o9i หลายเดือนก่อน

    Hello, welcome to you.

  • @BehzadSaffarian
    @BehzadSaffarian ปีที่แล้ว

    Hi, Very nice video but I see the using flash over 133K bytes!! is this really true? for a small simple program like this?

  • @qzorn4440
    @qzorn4440 2 ปีที่แล้ว

    high great info. i am trying to play with the: LILYGO I2C TTGO T-CAN485 ESP32 CAN RS-485 Supports TF Card WIFI Bluetooth Wireless... do you know how to find the I2C SDA SCL pins to use with any of the SSD1306 oled 3.3v displays? thank you.

  • @chlaxmikanth5695
    @chlaxmikanth5695 9 หลายเดือนก่อน

    i am using #define SLAVE_ADDRESS_LCD 0x27 in esp32 but data not sending error comes

  • @kdd2
    @kdd2 2 ปีที่แล้ว

    How to Bt201 bluetooth module +16x2 lcd display + IR remote control in esp32 program for song track name and song track current and total number and song track current time and total time in lcd display

  • @HariprasathT-y5e
    @HariprasathT-y5e ปีที่แล้ว

    Can anyone help me to find out I2C SCL AND SDA pin 'ESP32C3 mini 1' ?

  • @MetallKnighT
    @MetallKnighT 2 ปีที่แล้ว

    can you do a video about TFTP client, STM will acte as client --> request a flash file from tftp server and do a firmware or software update

  • @mmt1024
    @mmt1024 2 ปีที่แล้ว

    How hard would it be to use debug esp32?

    • @ControllersTech
      @ControllersTech  2 ปีที่แล้ว +1

      You mean debugger ? Well i tried using one or twice using the usb cable itself and it didn't work. I guess there might be some other pins for it like STM32.. I don't know much I didn't research it yet.

  • @shoyur
    @shoyur ปีที่แล้ว

    whatever im doing, this doesnt work on the ESP32-S3-WROOM-1 :(
    anyone else ?

    • @subhramaiti9108
      @subhramaiti9108 10 หลายเดือนก่อน

      I declared
      #define SLAVE_ADDRESS_LCD 0x27 // change this according to ur setup
      and it worked for me.
      also make sure what is your i2c address

  • @ElettronicaRiparo
    @ElettronicaRiparo 2 ปีที่แล้ว

    like molto interessante grazie amico