Fade / Pulse effect with Arduino Micro: video tutorial

The Arduino Micro is a very compact microcontroller board based on the ATmega32U4 microcontroller. It’s super handy for small projects, and the good thing about Arduinos is that they have a bunch of compatible stuff you can find rather easily on the market, and they have less moving parts compared to a Raspberry; however, you have less flexibility since it goes more low level and you’ll have to code in C.

The video shows how to create an LED circuit with the Arduino Micro to run the “Fade” basic example available through the Arduino IDE. To  save you some time, this is the code you should upload to the board to get this effect using one of the PWM pins of the Arduino:

int led = 6; // our led uses pin 6
int brightness = 0;
int fadeAmount = 5; 

void setup() {
 pinMode(led, OUTPUT);

void loop() {
 analogWrite(led, brightness);

 brightness = brightness + fadeAmount;

 if (brightness <= 0 || brightness >= 255) {
   fadeAmount = -fadeAmount;


If you want to see a detailed guide on how to get started with an Arduino Micro to blink a LED, check this post: LED blinking on Arduino Micro Tutorial.

#videotutorials #led #arduinomicro #featured #videos #handson #arduino

5 views0 comments