int pin = 9;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
for (int i = 0; i < 256; i = i + 10){
analogWrite(pin, i);
delay(5000);
}
}
Here is the multimeter attached to the Arduino and meter dial:
Here is the graph of the output (10K Ohm resistor used to calculate the current):
No comments:
Post a Comment