EasyManuals Logo

Freenove Ultimate Starter Kit User Manual

Freenove Ultimate Starter Kit
286 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #77 background imageLoading...
Page #77 background image
77
Chapter 4 Analog & PWM
www.freenove.com
support@freenove.com
In practical application, we often use binary signal as digital signal, that is 0 and 1. The binary signal only has
two forms (0 or 1), so it has strong stability. And digital signal and analog signal can be converted to each
other.
PWM
PWM, namely Pulse-Width Modulation, is a very effective technique for using digital signals to control analog
circuits. The common processors can not directly output analog signals. PWM technology make it very
convenient to achieve this purpose.
PWM technology uses digital pins to send certain frequency of square waves, that is, the output of high level
and low level that last for a while alternately. The total time for each set of high level and low level is generally
fixed, which is called period (the reciprocal of the period is frequency). The time of high level outputting is
generally called pulse width, and the percentage of pulse width is called duty cycle.
The longer the output of high level last, the larger the duty cycle and the larger the corresponding voltage in
analog signal will be. The following figures show how the analog signals voltage vary between 0V-5V (high
level is 5V) corresponding to the pulse width 0%-100%:
The larger PWM duty cycle is, the lager the output power will be. So we can use PWM to control the brightness
of LED, the speed of DC motor and so on.
It is evident from the above that PWM is not real analog, and the effective value of the voltage is equivalent
to the corresponding analog. so, we can control the output power of the LED and other output modules to
achieve different effects.
In RPi, only GPIO18 has the ability to output hardware PWM with a 10-bit accuracy, that is, 100% of the pulse
width can be divided into 2
10
=1024 equal parts.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Freenove Ultimate Starter Kit and is the answer not in the manual?

Freenove Ultimate Starter Kit Specifications

General IconGeneral
BrandFreenove
ModelUltimate Starter Kit
CategorySingle board computers
LanguageEnglish