Showing posts with label analogWrite. Show all posts
Showing posts with label analogWrite. Show all posts

Sunday, November 8, 2020

#2 Arduino AnalogWrite Explained

ManiTesla.tech

led circuit diagram


 Hi everyone, I'm your Manitesla.In the last post, we learned how to turn Arduino pins on and off with the Arduino digitalWrite command. This command is best if you only want 0 or 5 volts. In this post, I'll show how you can get the in-between values (0-5)by using the analogWrite command. In the upcoming post, I will in detail how analogWrite works, but this present post  gets you started, and shows you how to control the brightness of an LED. U can watch the video below to learn how to control led brightness.