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

can u help for new codes ? #41

Open
kucukonur opened this issue Nov 20, 2023 · 1 comment
Open

can u help for new codes ? #41

kucukonur opened this issue Nov 20, 2023 · 1 comment

Comments

@kucukonur
Copy link

hi i think u missunderstood me

i can load with your interface it s amazing and so good work
but i need to change some variable for example i need to read angle (motor angle) with a encoder
and i will add a gps timer system will show us to time and clock
i will use a liner axsel (with motor control) i need to change position when it s running

first thanks for ur shares . Can i ask to some questions
how can i change to webbrowser
than how can i use my web browser
than how can i write to my new code for new controls
the last one ? how can i load my new codes

i can write to html code than i can controll stepper motors but i need to help
best regards

@pkerspe
Copy link
Owner

pkerspe commented Nov 21, 2023

I do not mean to be rude, but from the terminology you use, I feel you are not a developer but your task seems to be custom software development.

To answer your questions as best as I can:

"but i need to change some variable for example i need to read angle (motor angle) with a encoder"

The library does currently not support interfacing with encoders and in fact when using a stepper motor you might get around using one in general since steppers are so precise (unless you loose steps) that you know the position at any time. You would of course make sure you are using some homing switch during initialisation to have a reference position.

"and i will add a gps timer system will show us to time and clock"

Not sure what the GPS is for, if you just need a time source you can always use an ntp server as long as your esp is connected to the internet. But this is also not a feature of the stepper server.

"i will use a liner axsel (with motor control) i need to change position when it s running"
Not sure about this statement and what to answer here.

"how can i change to webbrowser"
You can use any webbrowser you want to open the integrated UI. Not sure if you maybe mean that you want to change the Web User Interface.
You can of course write your own web interface and communicate with the ESP via the REST API and websocket connection that the default UI uses as well.

"than how can i use my web browser"
Again, I guess you mean you own Web UI not a browser:
Write a web UI in a framework of your choice and communicate with the stepper motor REST API. See readme for available end functions.
Once you created your own UI you can either run it locally from your PC or upload it to the ESP SPIFFS. You will most likely need to change the code on the ESP webserver though for the second approach to deliver you custom files. This I suggest running the web UI from you local PC instead to keep things simple for the beginning.

"than how can i write to my new code for new controls
the last one ? how can i load my new codes"
You can always check out the related git project (https://github.com/pkerspe/ESP-StepperMotor-Server-UI) for the actual User Interface code, but you need to be experienced with developing single page applications in vue js then.
After packaging your custom UI you need to upload it to spiffs in your ESP using the upload filesystem function in platformio

"i can write to html code than i can controll stepper motors but i need to help
best regards"
If you can code HTML (and js if course) you can interact with the Rest API of the stepper motor server. See readme for exposed endpoints in the section "REST API documentation"

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