From the course: Learning Arduino: Interfacing with Analog Devices
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
How Arduino generates analog output - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Analog Devices
How Arduino generates analog output
- [Instructor] To generate a analog output signal, the Arduino uses a converter that is called Digital to Analog Converter, or DAC. The DAC receives a digital value from the microcontroller and converts it to an analog voltage. The value of analog voltage is determined by the digital value sent to the ADC. The larger the digital value, the larger the analog output voltage. For generating analog output signals, the Arduino board uses pulse with modulation with the digital pins. The pulse with modulation digital pins are marked on the Arduino board with a tilde before the digital pin number. Pulse with modulation is a technique for getting analog results with digital means. The generated analog output voltage using pulse with modulation is between zero and five volts.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
How Arduino generates analog output1m 4s
-
(Locked)
Understanding pulse-width modulation (PWM)2m 8s
-
(Locked)
Understanding the analogWrite function with PWM1m 19s
-
(Locked)
Wire up an LED1m 5s
-
(Locked)
Write code to use PWM with the LED1m 56s
-
(Locked)
Understanding the map() function1m 45s
-
(Locked)
Wiring a potentiometer to control LED1m 13s
-
(Locked)
Coding to control the LED with a potentiometer3m 42s
-
(Locked)
-
-
-