0

I want to control a 7 segment display that has a TM1637 integrated with an ESP32.

Some time ago I created a layout that used an ESP12e but I need more GPIO pins so I'm switching over to an ESP32.

This was how I had it hooked up:

CLK -> GPOI14
DIO -> GPIO12

I think I did it this way because I had to use the special CLK pin tou can see in this pinout.

Only I don't know if I need to hook them up with special pins on the ESP32. I can't find a good tutorial and I don't have the parts yet to test with.

Do you guys know which pin(s) are suitable for the TM1637?

2
  • any. playground.arduino.cc/Main/TM1637. io 14 on esp8266 can be SPI CLK, for your connection it was gpio
    – Juraj
    Commented Jul 27, 2018 at 8:09
  • It says I can connect it to any gpio, do I understand that correctly?
    – Tvde1
    Commented Jul 27, 2018 at 8:13

1 Answer 1

1

The label CLK on esp8266 is in a context of SPI pins CLK, MISO, MOSI, SS. You had no reason to connect TM1637 CLK to this pin, since with TM1637 you can use any GPIO pins of the MCU for CLK and DIO.

4
  • Shouldn't TM1637 can use any GPIO pins for CLK and DIO be ESP32 can use any GPIO pins for CLK and DIO?
    – LotPings
    Commented Jul 27, 2018 at 11:35
  • I edited the answer
    – Juraj
    Commented Jul 27, 2018 at 11:39
  • IMO still a bit misleading, in my understanding the ESP32 is the active component controlling the TM1637 using any of it's pins to do that.
    – LotPings
    Commented Jul 27, 2018 at 11:42
  • the protocol is determined by the sensor. it it would be SPI you could use only spi pins of the mcu for that sensor. I answer in a context of the question, adding more refinements doesn't help readability.
    – Juraj
    Commented Jul 27, 2018 at 11:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.