I'm working on a project and I want to control a whole bunch of LEDs, but I don't have enough GPIO pins on my microcontroller. If you’ve been tinkering with electronics for any amount of time, you’ve probably run into this situation before. Maybe it wasn’t LEDs, but some other output like relays. Or maybe you were trying to read a ton of button inputs and you were short on GPIO pins. I'm going to show you how to solve this problem and potentially save your project by using a technique called multiplexing.
Bill of materials:
10mm RGB LED www.digikey.com/short/3vj2wjvv
Arduino Board www.digikey.com/short/70bf53w8
Breadboard www.digikey.com/short/nbh4q298
Resistor Kit www.digikey.com/short/q4w7wj75
Jumper Wire Kit www.digikey.com/short/8n0p92pn
Keypad 12 keys www.digikey.com/short/f51mmwwv
Keypad 16 keys www.digikey.com/short/zp50wmz3
7 segment LED board Github project
github.com/bytesizedengineeri...
Learn More:
Arduino page explaining direct port manipulation: docs.arduino.cc/hacking/softw...
DigiKey blog post diving further into the topic of direct port manipulation: www.digikey.com/en/blog/the-c...
Негізгі бет Ғылым және технология Save your project by multiplexing GPIO pins - The Byte Sized Engineer | DigiKey
Пікірлер: 6