Read Duty Cycle of a PWM Signal Using Visuino & Arduino
In this tutorial we are going to read the Duty Cycle of a PWM signal using Visuino. For a PWM source we are going to use a PWM generator connected to the Arduino interrupt digital pin [2], We are going to measure the pulse width of the HIGH and LOW then use this formula TotalDuration = highDuration + lowDuration; DutyCycle = 100.0 * highDuration / totalDuration to get the Duty Cycle in percentage. Watch the video!
Components and supplies
1
PWM
1
Arduino UNO R3 - Made in italy
1
10 jumper wires 150mm male
Apps and platforms
1
Visuino - Graphical Development Environment for Arduino
Project description
Code
Visuino
c
Downloadable files
Visuino File
pwm-read.zip
Comments
Only logged in users can leave comments