theelims / strokeengine Goto Github PK
View Code? Open in Web Editor NEWA library to create a variety of stroking motions with a stepper or servo motor on an ESP32.
License: MIT License
A library to create a variety of stroking motions with a stepper or servo motor on an ESP32.
License: MIT License
Right now the lib has no feature to set up the depth and get a live feedback. It can only go full in or full out. However, it would be desirable to have it follow the depth setting to find an optimal position before starting the stroking.
invertDirection does not appear to be implemented. Is there an easy way to invert the motor direction?
At the moment, you can download this library with the following syntax in your platformio.ini
file, however it will not pull in the dependencies:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
https://github.com/theelims/StrokeEngine.git#main
This is easily solved by adding an additional line:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
https://github.com/theelims/StrokeEngine.git#main
gin66/FastAccelStepper@^0.30.5
however it would be good if the dependencies could be installed automatically via https://docs.platformio.org/en/latest/manifests/library-json/fields/dependencies.html
Reported via Discord from jo_schi_man
Additionally I thind Deeper does "Un-Deeper" because it pushes to a top point and then just varyies the bottom point, the top point seems to be the same
Write virtual motor driver which spits out coordinates and speeds over serial
To be used with e.g. Better Serial Plotter
Elk could be a viable candidate. Very bare bone and only exported functions. No general access to the underlying ESP
Refactor structure with dedicated motor drivers.
No state machine anymore
Two reports via Discord from abonthedl / jo_schi_man.
I just get long pauses followed by 1 random movement, and repeat. Or no motion at all. Varying the stroke length or speed seems to cause it to move again but it's intermittent at best.
I've seen similar behavior when testing the patterns during development of the new StrokeEngine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.