Skip to content

Unable to operate DIO pins on rPi 4B using Java #380

Answered by plsherman
plsherman asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for your assistance. Between it and additional research I've been able to get both Python And Java to use the hardware PWM pins. Python uses the hardware as specified but it appears that Java does not. When I set up (java) the hardware PWM pin using a config variable with frequency set to 250, I ended up with a jittery frequency of 167Hz, what I'd expect from a software PWM. My Python tests showed that the HW frequency should be as specified and show no jitter.

********* LATE NIGHT UPDATE - ISSUE RESOLVED ****************
I was correct - My program was not using the hardware PWM! My suspicion is that it's a Pi4J issue involving mishandling the data provided in the config variabl…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@plsherman
Comment options

Comment options

You must be logged in to vote
2 replies
@plsherman
Comment options

Answer selected by FDelporte
@FDelporte
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants