User Tools

Site Tools


charlieplexing_on_the_esp32

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
charlieplexing_on_the_esp32 [2020/09/02 02:31]
49.180.4.219
charlieplexing_on_the_esp32 [2021/02/02 01:24] (current)
Line 106: Line 106:
 {{ :​charlieplexing:​schematic-3-pin.png?​nolink |}} {{ :​charlieplexing:​schematic-3-pin.png?​nolink |}}
  
-Notice there are now two groups of two LEDs, plus two more bridging across at the bottom. This arrangement lets us use lots of pin mode combinations to get all the LEDs to light up one at a time.+Notice there are now two groups of two LEDs, plus two more bridging across at the bottom. This arrangement lets us use lots of pin mode combinations to get each LED to light up on it's own.
  
 We'll trace the schematic to see what is needed to light LED1. If we set pin 21 to be ''​OUTPUT''​ and ''​HIGH''​ to supply voltage, and on pin 22, we set to ''​OUTPUT''​ and ''​LOW''​ to act as ''​GND'',​ then we can be pretty sure that current will happily flow on that path and LED1 will light up. We'll trace the schematic to see what is needed to light LED1. If we set pin 21 to be ''​OUTPUT''​ and ''​HIGH''​ to supply voltage, and on pin 22, we set to ''​OUTPUT''​ and ''​LOW''​ to act as ''​GND'',​ then we can be pretty sure that current will happily flow on that path and LED1 will light up.
Line 168: Line 168:
 | LED6 | OUTPUT LOW  | INPUT       | OUTPUT HIGH | | LED6 | OUTPUT LOW  | INPUT       | OUTPUT HIGH |
  
-Now it is time to breadboard the schematic. This can be tricky. I like to take the existing schematic and stretch it out to be as similar as possible ​as how it will be on a breadboard. I used KiCad to move the existing schematic to be laid out like this:+Now it is time to breadboard the schematic. This can be tricky. I like to take the existing schematic and stretch it out to be as similar as possible ​to how it will be on a breadboard. I used KiCad to move the existing schematic to be laid out like this:
  
 {{ :​charlieplexing:​3-pin-schem-stretched.png?​nolink |}} {{ :​charlieplexing:​3-pin-schem-stretched.png?​nolink |}}
Line 292: Line 292:
  
 Hope that helps you work through Charlieplexing on ESP32. Let me know if it helped and send me a pic of your breadboard. I'll post it on this page. Hope that helps you work through Charlieplexing on ESP32. Let me know if it helped and send me a pic of your breadboard. I'll post it on this page.
 +
 +Here's my lovely effort cramming everything on a small breadboard and using a 10-LED block:
 +
 +{{ :​charlieplexing:​charlieplexed-led-bar.jpg?​nolink |}}
charlieplexing_on_the_esp32.1599013891.txt.gz ยท Last modified: 2021/02/02 01:24 (external edit)