pkerspe / ESP-StepperMotor-Server

Turn your ESP32 into a complete stepper motor control server with web UI, REST API and serial control interface
MIT License
225 stars 39 forks source link

can u help for new codes ? #41

Open kucukonur opened 9 months ago

kucukonur commented 9 months ago

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 commented 9 months ago

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"