Skip to content

Commit

Permalink
dimming illusion
Browse files Browse the repository at this point in the history
  • Loading branch information
ImplFerris committed Dec 26, 2024
1 parent 6a4722d commit 960ed8e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/led/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,17 @@ To make it dim, we use a technique called PWM (Pulse Width Modulation). You can
We will gradually increment the PWM's duty cycle to increase the brightness, then we gradually decrement the PWM duty cycle to reduce the brightness of the LED. This effectively creates the dimming LED effect.


## The Eye
"
Come in close... Closer...

Because the more you think you see... The easier it’ll be to fool you...

Because, what is seeing?.... You're looking but what you're really doing is filtering, interpreting, searching for meaning...
"

Now, here's the cool part: when this switching happens super quickly, our eyes can't keep up. Instead of seeing the blinking, it just looks like the brightness changes! The longer the LED stays ON, the brighter it seems, and the shorter it's ON, the dimmer it looks. It's like tricking your brain into thinking the LED is smoothly dimming or brightening. PWM: the magician of electronics!


<img style="display: block; margin: auto;" alt="pico2" src="../images/pico2-board.png"/>

0 comments on commit 960ed8e

Please sign in to comment.