ESP32 Servo Motor Web Server with Arduino IDE

Поділитися
Вставка
  • Опубліковано 20 сер 2024

КОМЕНТАРІ • 86

  • @RuiSantosdotme
    @RuiSantosdotme  6 років тому +9

    You can find the complete project details (schematics + source code) on my blog: randomnerdtutorials.com/esp32-servo-motor-web-server-arduino-ide/

    • @iam726246
      @iam726246 5 років тому

      I need to use a stepper motor or a normal electric motor instead of a servo motor, how should I do it?

    • @SuperiorNav
      @SuperiorNav 3 роки тому

      Hey man i keep getting this( 'const char*' to 'char' [-fpermissive] )when i try to verify code in Arduino IDE when trying to build the web server. It high lights just one line WiFi.begin(ssid, password); . My password and wife password is correct.

    • @keanutype0896
      @keanutype0896 3 роки тому

      Hi man, can you make a guide where i can send data via website to servo? what i mean is there is a dropbox/inputbox where i can input numbers then send it to servo using esp8266 or Wemos R1?

    • @amelinabuenaflor7387
      @amelinabuenaflor7387 2 роки тому

      Hello. My esp32 have no vin.

    • @amelinabuenaflor7387
      @amelinabuenaflor7387 2 роки тому

      May i use other pin? Cause my esp32 has no vin.🥺 still Fatal occured error🥺

  • @chimpspecialist
    @chimpspecialist 4 роки тому +2

    I got lots of errors, but switching from 5 to 3.3V finally got it to work.

    • @lintangijo
      @lintangijo 4 роки тому

      Do you mean the power supply? Btw thanks for sharing

  • @namankasliwal1725
    @namankasliwal1725 4 роки тому +5

    nvalid conversion from 'const char*' to 'char*' [-fpermissive]

  • @MattiaVanniRiccione
    @MattiaVanniRiccione 4 роки тому +3

    wonderful, and how to move two servo motors?

  • @Nestea97
    @Nestea97 4 роки тому +3

    Hi, great video. Very useful. I have a question, is it possible to attach two Micro servos to the ESP32 and how would change the general programm and conecctions? Thank you so much

  • @murungimatthew9660
    @murungimatthew9660 5 років тому

    This is wonderful Rui Santos

  • @PesonaSelebgramIndonesia
    @PesonaSelebgramIndonesia 2 роки тому +1

    Great video. can u share how to control DC Motor from Web Server with esp? thanks

  • @louiswilpitziv4523
    @louiswilpitziv4523 Рік тому

    Great Video!

  • @kamalkamel7559
    @kamalkamel7559 4 роки тому +2

    a very good job, thank you RUI
    I have a problem to control two servos with two sliders. can you help me to do this? thank you in advance

  • @TheRoadTaken
    @TheRoadTaken 23 дні тому

    In the loop, the sample code performa a write to the servo object. Does the servo or does the esp32 know the current position of the shaft? For example, if the shaft is at 45 and I write 45, the shaft should not move, right? Or, should the shaft perform a sweep to calibrate itself? 8 guess that's ultimately what I am asking is do I need to calibrate the servo before writing degree values to the servo?

  • @ramongayo1032
    @ramongayo1032 5 років тому +1

    OK, Solo que con la libreria Servo.h, no funciona hay que utilizar esta libreria #include , todo lo demás parece estar bien. Un saludo desde España.

  • @josephdaquila2479
    @josephdaquila2479 5 місяців тому

    Is there a clearner way of adding in the html? Maybe by referencing the html document somehow?

  • @eclecticlife
    @eclecticlife 5 років тому +4

    Could you use a NodeMCU instead? Thanks for the great tutorial!

  • @tseawell90
    @tseawell90 4 роки тому

    thanks! I'm going to try this when I get my esp32. I'm going to attempt to integrate it with IFTTT webhooks.

  • @eltrolado5764
    @eltrolado5764 3 роки тому

    thanks man this works great

  • @dlmsstuff
    @dlmsstuff 3 роки тому

    thank you very much bro it's totally working alright

  • @JanBogaertsEersel
    @JanBogaertsEersel Рік тому

    Hi Rui, I think it's a great explanation of how to operate the Servo via the web server. But I have one more question, how can I reduce the speed of the servo in this application

  • @davewhite6815
    @davewhite6815 Рік тому

    My servo only rotates 90 degrees, I have this same issues with different .ino files as well

  • @fatih1422
    @fatih1422 Рік тому

    hello my servo motor turns 90 degrees when I get 180 what could be the problem

  • @coolkobe733
    @coolkobe733 6 років тому +2

    Hello, Rui Santos
    can your ESP32 diagram be made with Fritzing? If I have a PCB and a schematic, how do I make it?

  • @woolfy02
    @woolfy02 2 роки тому

    Does anyone know up an upgraded board from the Wemos D1 R2? I read on a forum that there isn't such a thing. I really want to stick with the same layout as the R2

  • @coreuped
    @coreuped Рік тому

    Does this work with the Seeeduino Xiao ESP32C3?

  • @EdiMann
    @EdiMann 4 роки тому

    Nice Video. I have got a question? If I want to control this Servomotor not from WiFi Network, I want it as an Access Point Wifi. So what I have to do?

  • @bcburnettcom
    @bcburnettcom 3 роки тому

    How do you know what the actual position of the servo is? there doesn't appear to be any feedback in the program.

  • @alridaz7329
    @alridaz7329 6 років тому

    Hello friend: First, excuse me if my English is not good. His tutorials are excellent, I've seen others and I really understand much more about his. I have a question. I modified this video of the esp32 with servo and the pin I connected a led and the idea is to make it modulate with the slider with pwm but I did not do well. You can help me? I appreciate it And thank you for enlightening your knowledge.

  • @gabymontesvielma7495
    @gabymontesvielma7495 5 років тому +2

    Do I need to have internet access for using the slider ??

  • @blueshark7737
    @blueshark7737 2 роки тому

    Viva.
    poderei adicionar um outro servo de outro fabricante?

  • @psykopat81
    @psykopat81 Рік тому

    does this only works on local network?

  • @ProjectileGrommet
    @ProjectileGrommet Рік тому

    I keep getting client disconnected every time I try to put a servo position in on the webpage

  • @dahlendo7513
    @dahlendo7513 6 років тому

    How to control servo which is connected to arduino pins through esp wifi module (through a web server).

  • @nishau4030
    @nishau4030 3 роки тому

    Okay, well I tried the existing basic servo example with ESP32 CAM but when I uploaded the code nothing happened to the servo and there were no errors. May I know how to resolve it

  • @moonplant2489
    @moonplant2489 5 років тому

    please make a node mcu slider for LED

  • @DinujaP
    @DinujaP 4 роки тому

    thanks bro

  • @dixienormus4230
    @dixienormus4230 3 роки тому

    what if I want to add another servo with different controls??

  • @kevincostner8536
    @kevincostner8536 5 років тому

    Great Video. Theres a way to control true MQTT?

  • @kartikrajurkar3708
    @kartikrajurkar3708 5 років тому

    How to do multiple web pages as they able to hyperlink with each other using "esp"

  • @alexanderkarakos2198
    @alexanderkarakos2198 3 роки тому

    Can i change the 180 degree to 330 degree?

  • @cyberpunk7088
    @cyberpunk7088 5 років тому +4

    servo.h isnt working! its saying it only runs on avr,arm etc

    • @AdoptaUnEmo
      @AdoptaUnEmo 4 роки тому

      x2

    • @austinhendrick5403
      @austinhendrick5403 4 роки тому +5

      @cyber punk
      This one took a while to find out the answer to, but the main problem is that it’s getting confused with another built in Servo library that is built in to the Arduino IDE. Here is how to fix the issue. First of all, you will need to install a different library. It’s the same exact thing, you just install it differently then the video says. Go to Sketch, hover over include library, and click “Manage Libraries.” From here, you can search “Esp32 Servo” in the search tab. When you click enter, it should be the first one that comes up titled “ESP32Servo.” Click install and wait for it to install. Once it installed, you can click close to close that tab. Then change the first line of code that says “#include ” and change it to “#include ” that should solve the issue, and get the right library. However, for me, it says that there is a timed out warning waiting for packet content error, I’m not sure why. (“Could not auto-detect Flash size”) Aside from that, I hope this helps you and others trying to solve this issue.

    • @austinhendrick5403
      @austinhendrick5403 4 роки тому

      @cyber punk
      Solved! Looked like I connected the Servo to the wrong GND Pin. Do the same thing as I told you the comment before, and make sure you connect the Servo to the right pins!

    • @AdoptaUnEmo
      @AdoptaUnEmo 4 роки тому +2

      @@austinhendrick5403 thak you so much!

    • @austinhendrick5403
      @austinhendrick5403 4 роки тому +2

      Rafael Robles No problem!

  • @Indian-pt4qm
    @Indian-pt4qm Рік тому

    wifi is not getting connected,could anyone solve this please

  • @aimless3827
    @aimless3827 5 років тому

    Hey boss, can you not use tuniot to write the code it's limit the way to write the code and understanding of webpage.

  • @mpkumar7786
    @mpkumar7786 5 років тому

    Great.

  • @boramutludogan3539
    @boramutludogan3539 Рік тому

    why this isn't working with safari browser?

  • @technicalsaikat3502
    @technicalsaikat3502 6 років тому +5

    WiFi.begin(ssid, password); code error

    • @MAS_momo
      @MAS_momo 5 років тому

      Serial.println(); you need to put this before the Serial.print("Connecting to ");

    • @anniyangX
      @anniyangX 5 років тому

      @@MAS_momo No... I just tried.

  • @ihavenocluewhatimdoingplzh3919
    @ihavenocluewhatimdoingplzh3919 5 років тому

    anyone know how to do this with 3 servos and on the web page have 3 sliders?

  • @shubhamvernekar2131
    @shubhamvernekar2131 4 роки тому +1

    Can we use esp32-cam for both video streaming and servo control from web server

    • @tseawell90
      @tseawell90 4 роки тому

      Try the blynk app. You can display servo controls and video stream on one screen.

    • @philpayne4579
      @philpayne4579 4 роки тому

      @@tseawell90 Really? I couldn't find a way to do that in blynk. Do you have any links to projects that do that?

    • @tseawell90
      @tseawell90 4 роки тому

      @@philpayne4579
      look up Rui Santos's video on making an esp32 webcam for an idea of how it could work. you can make code to control a servo motor with the blynk library. I've never tried this combo but it seems like it could work. Also, you could get a raspberry pi zero. much easier to connect a camera and servos imo.

    • @philpayne4579
      @philpayne4579 4 роки тому

      @@tseawell90 I tried using blynk last night but couldn't get video to stream on iOS on xx.xx.xx.xx:81/stream. I will try blynk again on Android because I think it was an iOS problem and not an ESP32 problem because there's definitely a video stream at that address

    • @tseawell90
      @tseawell90 4 роки тому

      @@philpayne4579 Ok cool. check out this link community.blynk.cc/t/esp32-cam-video-stream-on-blynk/40818/24. user gydota shares code that seems to work.

  • @homeautomation7249
    @homeautomation7249 5 років тому +2

    invalid conversion from 'const char*' to 'char*' [-fpermissive]

    • @pintaric007
      @pintaric007 3 роки тому

      Replate code:
      const char* ssid = "YOUR_SSID";
      to
      char ssid[] = "";

  • @sneeakysteve
    @sneeakysteve 5 років тому

    Does this only work for local networks?

  • @arletpaz7685
    @arletpaz7685 3 роки тому

    @6:28 you mention about adding my network info, what info? do we have to have internet?

    • @xfabiosoft
      @xfabiosoft 3 роки тому

      internet is not required, wifi is necessary for accessing the web page with the slider.

  • @marco2carriloo436
    @marco2carriloo436 5 років тому

    l need connect 1 display, 1 servo, the power is sufficient?

    • @mibrahim4245
      @mibrahim4245 4 роки тому

      VU pin on nodemcu is connected to the USB source, so I guess it's ok ..

  • @SS3Badminton
    @SS3Badminton 5 років тому

    Help me! Can an external battery be used for this device for 1-2 years

    • @y.k.7737
      @y.k.7737 3 роки тому

      Wifi is power hungry so no

  • @Popart-xh2fd
    @Popart-xh2fd 4 роки тому

    Hi, in my case it gives this, any help, thanks:
    WARNING: library Servo claims to run on avr, megaavr, sam, samd, nrf52, stm32f4, mbed architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
    In file included from C:\Users\Utilizador\Documents\Arduino\libraries\ESP32-Arduino-Servo-Library-master\examples\01-SimpleServo\01-SimpleServo.ino:1:0:
    C:\Users\Utilizador\Documents\Arduino\libraries\Servo\src/Servo.h:77:2: error: #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."
    #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."
    ^
    Multiple libraries were found for "Servo.h"
    Used: C:\Users\Utilizador\Documents\Arduino\libraries\Servo
    Not used: C:\Users\Utilizador\Documents\Arduino\libraries\ESP32-Arduino-Servo-Library-master
    Not used: C:\Program
    exit status 1
    Error compiling for board DOIT ESP32 DEVKIT V1.

  • @terrylaos9404
    @terrylaos9404 2 роки тому

    how to 2 servo ? master tutorial

  • @fuzzi4694
    @fuzzi4694 5 років тому

    can i do this also with an esp8266

    • @pintaric007
      @pintaric007 3 роки тому

      Just change librery
      #include
      install: wharehauorawifimanager by tzapu

  • @cristibasoc4207
    @cristibasoc4207 4 роки тому

    i have this error
    #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."
    ^
    Multiple libraries were found for "WiFi.h"
    Used: C:\Users\basoc\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
    Not used: C:\Users\basoc\Downloads\arduino-nightly-windows\arduino-nightly\libraries\WiFi
    Multiple libraries were found for "Servo.h"
    Used: C:\Users\basoc\Downloads\arduino-nightly-windows\arduino-nightly\libraries\Servo
    exit status 1
    Error compiling for board DOIT ESP32 DEVKIT V1.

  • @zamhafzam2677
    @zamhafzam2677 5 років тому

    A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

    • @austinhendrick5403
      @austinhendrick5403 4 роки тому +1

      @zam hafzam
      I had this same issue. It has to do to where you connected your Servomotor. After reopening the packaging on my esp32, I looked at the pins and it turns out that I had the wrong GND Pin. Even if you’re sure, check to see if your Servo is connected to the right pins! You have 1 pin that is connected to the flash row. (Pins 6-11 I think) Most likely you have misplaced your GND Pin. Hope this helps!

  • @artyomsummer1744
    @artyomsummer1744 4 роки тому

    Guy uses "indus" code that is hard to understand, sorry