Skip to content

test/automated: PWM duty cycle verification test using GPIO loopback#3568

Open
wiktorkwiatkowski wants to merge 1 commit intoapache:masterfrom
wiktorkwiatkowski:pwm_app
Open

test/automated: PWM duty cycle verification test using GPIO loopback#3568
wiktorkwiatkowski wants to merge 1 commit intoapache:masterfrom
wiktorkwiatkowski:pwm_app

Conversation

@wiktorkwiatkowski
Copy link
Copy Markdown
Contributor

@wiktorkwiatkowski wiktorkwiatkowski commented Feb 2, 2026

Add test that verifies PWM duty cycle accuracy by sampling the
output pin via GPIO reads. The test uses a timer to sample GPIO state
and calculates measured duty cycle from high versus total samples.

Each test configures PWM duty, collects samples via timer callback,
and validates measured duty falls within tolerance.

Test requires physical loopback between PWM output and GPIO input pin.

Related to #3566

Add test that verifies PWM duty cycle accuracy by sampling the
output pin via GPIO reads. The test uses a timer to sample GPIO state
and calculates measured duty cycle from high versus total samples.

Each test configures PWM duty, collects samples via timer callback,
and validates measured duty falls within tolerance.

Test requires physical loopback between PWM output and GPIO input pin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants