A short and easy to learn Arduino UNO LED project is presented here. I am using a free Arduino Simulator called Wokwi to demonstrate. Wokwi is a powerful Arduino simulator that supports Arduino UNO, Arduino Mega, Arduino Nano, Raspberry Pi Pico, ESP32, ATTiny85, and more.
Arduino Simulation link:https://wokwi.com/arduino/projects/325044470794945108
Connection diagramconst int LED = 11;
void setup()
{
}
void loop()
{
float in, out;
for (in = 0; in < 6.283; in = in + 0.001)
{
out = sin(in) * 127.5 + 127.5;
analogWrite(LED,out);
}
}
Arduino Simulation
Comments/Suggestions
Please share your feedback and comments about the article as well as what you like to see projects about.
Comments
Please log in or sign up to comment.