question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PWM provider not found

See original GitHub issue

Hello, after a few days of not touching my project I came to this error which seemingly happened out of nowhere despite it working numerous times before, com.pi4j.provider.exception.ProviderNotFoundException: Pi4J provider [pigpio-pwm] could not be found. Please include this 'provider' JAR in the classpath. I have not made any changes to the code that “breaks” my program, and it is actually taken right from the pi4j website:

public static com.pi4j.io.pwm.PwmConfig buildPwmConfig(Context pi4j, int address, PwmType type) {//pwm config builder return Pwm.newConfigBuilder(pi4j) .id(“BCM” + address) .name(“Buzzer”) .address(address) .pwmType(type) .provider(“pigpio-pwm”) .initial(0) .shutdown(0) .build(); }

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
RLEO94commented, Sep 28, 2022

Hi and thanks for your help No thanks it’s ok for me 😃

Anyway I would like to share my solution. Maybe it’s useful for others. I removed the pi4j-plugin-raspberrypi from my build.gradle

When I generated the jar, the line: “com.pi4j.plugin.pigpio.PiGpioPlugin” was inserted in the META-INF/services/com.pi4j.extension.Plugin then it worked

Probably this line was overwritten because of the other plugin

0reactions
FDelportecommented, Oct 4, 2022

I’m a Maven user, so, unfortunately, my Gradle knowledge is very limited… The only Gradle we have in Pi4J was also contributed by others to prove it also works with Pi4J V2, see https://github.com/Pi4J/pi4j-example-minimal/blob/main/build.gradle.

BTW I’m very interested in the Maven output you mentioned about the clean up, can you add it to your comment?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with PWM configuration ("unable to load health data ...
Hello, I have been trying to setup PWM along with LDAP, but I am running into the error: "unable to load health data...
Read more >
No hardware PWM's on all GPIO · Issue #31 · Pi4J/pi4j-v2
Hi! Just started with Pi4J 2.0 and I got an error. 2020-07-10 15:44:02 gpioHardwarePWM: bad gpio for PWM (3) [http-nio-8080-exec-5] WARN ...
Read more >
PWM not working - Infineon Developer Community
Hi, I recently implemented PWMhl module on my device (Tc222L) . Pwm init without any failures, but it does not works at all....
Read more >
pwm - issue #244 - Google Code
I uninstalled the application and I installed it again and I'm getting the following logs in Tomcat. I'm maybe missing some configuration but...
Read more >
NI-DAQmx: M Series Pulse Width Modulation (PWM) not ...
I guess my other option is to find a PWM controller that uses the analog outputs. I have two of these as well...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found