logo elektroda
logo elektroda
X
logo elektroda

ESP8266 WebServer: Control of 4 servos via WiFi

koperplay 828 5
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20507268
    koperplay
    Level 3  
    Hi. Is it possible to control 4 servos, via the ESP8266 WebServer? If so, I would be very grateful for your help.
  • ADVERTISEMENT
  • #2 20508069
    kaczakat
    Level 34  
    Yes, you install a websocket server, you make sliders on the web page, for example, and you can spin them with the servers. I think in the examples there is even a slider to control the RGB LEDs, I mean there are three, you have to turn it into four, just in one uint32_t variable you can send four bytes.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20513549
    koperplay
    Level 3  
    Thanks for your help. I have one more question; maybe you know how to use the Wemos D1 R2 with the L293D motor shield from Arduino.
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #5 20513555
    koperplay
    Level 3  
    Wemos using Arduino motor shield l293d
    Best Webserver on the internet I could not find at all such a combination of Wemos D1 R2 with l293D Arduino shield I used to use the NodeMCU V3 to control several servos via the Blynk app but since they disabled it I am looking for other solutions.
  • #6 20514057
    kaczakat
    Level 34  
    I don't think you know anything about the subject because you don't even know how to ask a question. How to operate some shield you have a tutorial and a list of libraries for Arduino here.
    If someone locked you out of the Blynk then make yourself a new one. A Blynk with a server outside the home allows you to control it from anywhere, the device connects to the server, you connect to the server and control yourself. If you have one device at home and you make an interface to it via WWW/HTML, it's OK, but if you have a couple of devices, you have to redirect each one to the world, redirect the ports, write down in your phone what you will have where.
    A big mess.
    You can also install your own Blynk server, the app for your phone is available in such a version that you can enter the address of your server. Then you only put out into the world this your home Blynk server. You can make a server on a Raspberry pi, an old tablet/laptop with WIN (you have to get rid of it and install some Linux), on a PC terminal from Allegro for a few dozen zlotys.
    There are also other systems for home automation, Supla https://forum.supla.org/viewtopic.php?t=5925&start=10,
    ESPhome https://esphome.io/components/servo.html
    Tasmota https://github.com/arendst/Tasmota/discussions/10443
    You don't have to reinvent the wheel if you don't know how, you get the firmware with WWW access right away, you just have to click on what you want to do, based on the tutorials generate a few lines of script for a given function, define which pin for what.
    Then you can control it by entering each ESP, or connect it to some server, e.g. from Home Assisant and control all of them from one place.
    Helpful post? Buy me a coffee.
ADVERTISEMENT