Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8082

HATs and other add-ons • Re: Motor controller does not detect Pi 5 signals

$
0
0
And the PWMOutputDevice in gpizero defaults to a frequency of 100Hz. That may not be what you want.
You could add a frequency setting

Code:

freq = 1000 # Defaults to 100 Hzduty = 0.5 # duty cycle 0.5 is 50% high, 50% lowenable = PWMOutputDevice(ENA)enable.value = dutyenable.frequency = freq

Statistics: Posted by neilgl — Tue Dec 09, 2025 7:52 pm



Viewing all articles
Browse latest Browse all 8082

Trending Articles