Multiplexing 7-Segment Display #9453
Replies: 2 comments 1 reply
-
I did something similar with the 74HC595 shift register, using bit bang and SPI: For flicker-free, I prefer using an external controller, such as the TM1637: If you want more than 4x 7-segments, there's other TM chips with more IOs: |
Beta Was this translation helpful? Give feedback.
-
You can find a driver for SN74HCS264, 8-Bit Parallel-Out Serial Shift Registers With Schmitt-Trigger Inputs and Inverted Outputs |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to use a Raspberry Pi Pico and a CD4094BE shift register to multiplex a common cathode 25 mm 7-segment display. I am using the CD4094BE as it allows for greater voltages then the Pico can provide. Also eventually I want to multiplex several 7-segment displays instead of multiplexing individual LEDs on a single display. I have attached a diagram of my wiring setup and I am using MicroPython v1.19.1 ( installed via Thonny).
Below is the code I came up with to display an '8' on the 7-segment display by quickly turning on/off individual LEDs.
While this code does turn on the correct LEDs, it will occasionally flicker. I think I am refreshing the display fast enough, and the flicker persists even if I take the refresh time down to 1 microsecond. I've also tried adding a time constraint within the for loop, but that didn't help:
I also experimented with asyncio as suggested in this thread, and that didn't fix the issue either. I'm still new to electronics, so apologies if I am making a silly error.
Thanks so much for any help!
-Tyler
Beta Was this translation helpful? Give feedback.
All reactions