Comments (2)
The way servos work is that the signal indicates their destination, e.g. "turn to 180 degrees". The speed is controlled by the servo itself. To turn slower, you'd need to repeatedly tell it to turn part of the way. Something like the example servo.js
where you provide a range of values and use a timer to move to the next one slowly. If you feel like implementing this in a general way (something with a start
and end
position, number of "steps" and total time to spread it over), I would accept a pull request.
from pca9685.
Thank you 101100 ... I'll look at the example. Unfortunately I don't have skills in TypeScript ... I'll look at the sample in detail and see if I can use that as the basis for a higher level consumer/wrapper of the module.
from pca9685.
Related Issues (13)
- Error in the main example HOT 1
- Error reported when running simple script. HOT 1
- Version 2.2.0 appears broken HOT 3
- tsconfig.json contains "target" twice HOT 1
- when two servos given simultaneous instructions, madness ensues HOT 13
- Error initializing PCA9685 HOT 2
- LEDs flicker due to PCA9685 load balancing. HOT 4
- Don't find sample for continuous rotating servos HOT 5
- Update i2c-bus version HOT 1
- PCA9633 compatibility HOT 1
- About ESC HOT 4
- How to reverse the throttle? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pca9685.