Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to get Servo to work #25

Open
Magicperf opened this issue Jun 28, 2022 · 1 comment
Open

Not able to get Servo to work #25

Magicperf opened this issue Jun 28, 2022 · 1 comment

Comments

@Magicperf
Copy link

I am trying to move my servo on BCM PIN 25. I have a Spring Boot REST webapp and when submitting an angle, the servo doesnt move.

I have initialized the PI4J Context and passed into the ServoComponent, and added a new constructor for flexibility on changing the PIN value.

I have my servo connected to a power supply and rPi GND PIN to the GND of the Power Supply.
Using java 17.

@FDelporte
Copy link
Member

Just an idea... to make sure the Pi4J context is OK and so on, can you just start with a simple LED to see if it turns on/off?

I created this example application with Spring Boot (and Vaadin) that uses the same approach I think: https://foojay.io/today/blink-a-led-on-raspberry-pi-with-vaadin/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants