logo elektroda
logo elektroda
X
logo elektroda

ESP32 encoder connection (which pins) with 16x2 I2C LCD display

CC_PL 870 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20560052
    CC_PL
    Level 13  
    I have an ESP32 DEVKIT V1 board - pinout:

    https://lastminuteengineers.b-cdn.net/wp-content/uploads/iot/ESP32-Pinout.png

    https://lastminuteengineers.b-cdn.net/wp-content/uploads/iot/ESP32-GPIO-Pins.png

    I have connected an encoder to it, it works fine (although it loses some signals, rotations). However, I want to connect a 16x2 LCD display on the I2C interface.

    Encoder and LCD have "want" on the same pins: 21 and 22. how to deal with this? Is it possible to move the encoder to other pins? Which ones?
    Alphanumeric LCD display compatible with HD44780 2x16 with I2C signal converter inserted.

    Thanks in advance for the hints!
  • ADVERTISEMENT
  • #2 20560097
    inot
    Level 37  
    CC_PL wrote:
    The encoder and LCD have a "want" on the same pins: 21 and 22
    This should not cause a problem. The I2C bus is characterised by the fact that each component ( in this case the Encoder and the display) has its own address.
    The question is which oprogamme you are using.
  • ADVERTISEMENT
  • #3 20560100
    JacekCz
    Level 42  
    With software you can (almost)
    also without talking about software (what do you have loaded there?) it is talking in vain, e.g. about losing the
  • #4 20560157
    khoam
    Level 42  
    The I2C bus pins on the ESP32 can be redefined if desired. GPIO 21 and GPIO22 are the default pins for SDA and SCL, but not mandatory.
    Link .
ADVERTISEMENT