I recently picked up an older network switch, 26 port, from the town dump. Like most quality network switches, it had an array of LEDs to show the status of every port. 2 LEDs per port, plus a few other status LEDs - close to 64 LEDs.
Well, that's cute, but what use is it... How do they control all those LEDs anyway?
Oh - with 74HC595's, like anyone else would...
I know how to use those! A bit of prodding around with an ohm meter got me the pinout, and I wired it up to an external power supply and an Espruino Pico
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I recently picked up an older network switch, 26 port, from the town dump. Like most quality network switches, it had an array of LEDs to show the status of every port. 2 LEDs per port, plus a few other status LEDs - close to 64 LEDs.
Well, that's cute, but what use is it... How do they control all those LEDs anyway?
Oh - with 74HC595's, like anyone else would...
I know how to use those! A bit of prodding around with an ohm meter got me the pinout, and I wired it up to an external power supply and an Espruino Pico
ST_CP -> B8 (GPIO)
SH_CP -> A5 (SCK)
DS -> A7 (MOSI)
MR -> A8 (GPIO)
Gnd -> Espruino Ground, external supply ground
Vcc -> Ext. supply +3.3v
Powered it up off an external supply, and a little experimentation with SPI and:
Whole thing took only a few minutes once I had figured out the pinout