-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Program additional functions #38
Comments
Hi Frank, How would you implement the solar tracker? Simple LDR (Photoresistiors) Setup or something more sophisticated? |
Hello paul,
so I just forked your project and want to add an additional feature in my
version, regardless of your version. Just4Fun :)
So, I have developed a stepper motor or rather servo (Xmoto), which
consists of a gear DC motor with extended shaft and magnetic disk as well
as motor driver and MCu. Here then the revolutions of the magnetic disk are
translated into steps and also the position is held. Here the Hackaday page
to it:
https://hackaday.com/2022/01/01/teaching-a-dc-servo-motor-to-act-like-a-stepper/
I would start from the manually entered GPS position and get the time via
ntp, then the azimuth and elevation angle of the sun is calculated and the
motors are set that way.
In the UI I would like to have the GPS data as well as Altitude entered and
saved. An extra page in the UI would then display the calculated sun
position and allow reference runs. Something like this:
https://github.com/happytm/SunTracker
My question, how would you best implement this in your project, where would
you put the SunCalc logic? I already tried to read out the GPS position
seriel in the loop, but that seemed to influence your program too much.
I look forward to your answer
Frank
|
Hi Frank, When you talk a lot reading gps via serial, are you referring a gps receiver connected via serial interface or do you mean you wanted to input some coordinates via the serial interface? To create a new view in the webinterface (in esp-steppermotor-server-ui repository https://github.com/pkerspe/ESP-StepperMotor-Server-UI/tree/master/src/views) you can just add a new vue.js view with the needed form elements, then rebuild the vue application and upload to the esp32.
|
Hi Paul, Well, I have tried to read out the data seriel via a GPS sensor. But since my solar tracker is mostly stationary, it is also sufficient to simply enter the data manually in the UI and save it. Since we have a client/server system, it is quite easy to extend the UI and control the ESP via REST interface. Thank you very much for your help. Greetings |
Hello Paul,
I would like to program an additional function (solar tracker), how would you go about it. So I guess I need a separate module, but at which point should I put it in? Besides of course extend the UI, but that I should deal with the UI.
If you would make me there a short suggestion, I would be very grateful :)
Greetings
Frank
The text was updated successfully, but these errors were encountered: