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

Servo Library Inoperable on LoRa thing plus Explorable #488

Open
e-deck opened this issue Oct 29, 2023 · 3 comments
Open

Servo Library Inoperable on LoRa thing plus Explorable #488

e-deck opened this issue Oct 29, 2023 · 3 comments

Comments

@e-deck
Copy link

e-deck commented Oct 29, 2023

The servo library does not function on the Sparkfun Explorable board.
Servos are verified to function correctly using analogeWrite, but issued writes from the Servo library simply do nothing.
There is no output voltage on the signal pin.
Again, pin works fine. Servo works fine. I tried on multiple pins too.

@paulvha
Copy link
Contributor

paulvha commented Oct 29, 2023

It might be the pin-to-pad numbering.

what happens if you use myServo.attach(D8); instead of myServo.attach(8); (so an 'D' in front in front of the pin).

@e-deck
Copy link
Author

e-deck commented Oct 29, 2023

It might be the pin-to-pad numbering.

what happens if you use myServo.attach(D8); instead of myServo.attach(8); (so an 'D' in front in front of the pin).

Yeah, this worked. Wow, I spent so long looking up and down trying to figure out what was wrong, making COMPLETELY sure it was the library and not something I screwed up. I guess this is related to the previous issue report with the pin mapping. I just couldn't quite make the connection from that to what I had to change to fix it. Well hopefully now anybody else who has the same problem will stumble on this and won't waste as much time as I did. Thanks for the quick feedback. You're a lifesaver. Hopefully, this gets patched soon.

@paulvha
Copy link
Contributor

paulvha commented Oct 29, 2023

Good to hear this works. With the early versions of the Artemis boards the PIN and PAD numbers were the same. In later boards that is not the case, but indeed the examples should be updated to reflect that.

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