logo elektroda
logo elektroda
X
logo elektroda

ESP8266, PCF8574 and 7-segment LED how to connect it correctly?

CiekawyŚwiata 2202 30
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #31 19266606
    janek_wro
    Level 29  
    CiekawyŚwiata wrote:
    This is probably already too high a threshold for fox legs.... I'm still not able to figure out what specific circuit it might be about. I'm looking for 74AHC674, 74LV-A674, 74LV674 - something's not right here
    You're right, they're not manufactured with these technologies. At least I can't see them being available. So take the HC, give the diode limiting a diode barrage on the inputs, you should be fine. As if you had trouble getting a 674, there is also a 74HC165, only this one is 8 bit. It is possible to connect two in series. The advantage over two PCF8574s is that you will latch all the input bits at the same time.

    Here is an example code
    https://github.com/InfectedBytes/ArduinoShiftIn
  • ADVERTISEMENT

Topic summary

The discussion revolves around connecting an ESP8266 (NodeMCU V3) with a PCF8574 to read the status of 7-segment LEDs from another device. Users explore the voltage requirements of the PCF8574 and the LED specifications, particularly the KT10521BJ1B model, which lacks a datasheet. Various methods for interfacing the PCF8574 with the LEDs are proposed, including using resistors, multiplexing, and level shifting. The importance of handling interrupts for efficient reading of the LED states is emphasized, along with suggestions for using alternative components like SPI expanders (MCP23S17, MAX7317) and shift registers (74HC165). The conversation also touches on practical implementation challenges, such as voltage levels, debounce handling for buttons, and the potential for using simpler components like transistors or optocouplers for circuit control.
Summary generated by the language model.
ADVERTISEMENT