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 Changeable Frequency Per Pin - For Better Servo Opperation With High End Servos #62

Closed
3 tasks done
Machinelearning3Dprinting opened this issue Feb 13, 2023 · 1 comment
Assignees
Labels
conclusion: duplicate Has already been submitted conclusion: off topic Off topic for this repository topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@Machinelearning3Dprinting
Copy link

Machinelearning3Dprinting commented Feb 13, 2023

Describe the request

To have the frequency of a servo pin be adjustable depending on what Hz the Servo needs to operate properly

example code:

#include <Servo.h>

Servo myServo;

void setup() {

    myServo.attach(pin, min, max, hz);
//pin = "the number of the pin that the servo is attached to"
//min = "the pulse width, in microseconds, corresponding to the minimum (0 degree) angle on the servo"
//max = "the pulse width, in microseconds, corresponding to the maximum (180 degree) angle on the servo "
//hz = the operation frequency of the servo in hz

and have all the calculation done within the library

Describe the current behavior

The current and unchangeable frequency of the the library is set to 50Hz which works with the basic servos in the kit's and this is set for all servo not just individuals

The examples version

NOT ACTUALLY A PART OF THE "built-in examples" see additional context please

Additional context

the servo library from "Examples for any board"

I did not see a repository dedicated to "Examples for any board" so as it is pre-installed with the software I saw it fitting to put it under this repository

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest version
  • My request contains all necessary details
@Machinelearning3Dprinting Machinelearning3Dprinting added the type: enhancement Proposed improvement label Feb 13, 2023
@per1234 per1234 self-assigned this Feb 13, 2023
@per1234 per1234 added the topic: code Related to content of the project itself label Feb 15, 2023
@per1234
Copy link
Contributor

per1234 commented Feb 15, 2023

Hi @Machinelearning3Dprinting. Thanks for your suggestion. As you mention, this request is not related to the example sketches hosted in this repository but instead is a request for an enhancement in the Servo library, which is hosted in a separate repository:

https://github.com/arduino-libraries/Servo

I see we have already have a proposal for adding frequency setting support to the library at arduino-libraries/Servo#91.

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

I did not see a repository dedicated to "Examples for any board" so as it is pre-installed with the software I saw it fitting to put it under this repository

Those example sketches are hosted in the individual library repositories. The official Arduino libraries are all listed here:

https://github.com/arduino-libraries

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 15, 2023
@per1234 per1234 added conclusion: off topic Off topic for this repository conclusion: duplicate Has already been submitted labels Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted conclusion: off topic Off topic for this repository topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants