Arduino AnalogWrite Function

preview_player
Показать описание
Welcome back! This tutorial is based upon Arduino analogWrite command. It uses values from 0 to 255.
Remember :
0Volts = HIGH = 0
5Volts = LOW = 255

The code used is:
#define Green 10
int waitT=2000;
void setup() {
// put your setup code here, to run once:
pinMode(Green,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
analogWrite(Green,255);
delay(waitT);
analogWrite(Green,125);
delay(waitT);
}

Contents:
0:00 Introduction
1:06 Circuit on Tinkercad
4:50 Coding
6:20 Understanding Analog Function
8:56 Uploading
10:00 Analog and Digital difference
13:50 Disconnecting Arduino board

Thanks for Watching :)
Рекомендации по теме
visit shbcf.ru