Video není dostupné.
Omlouváme se.

How to Control a Servo Motor with ESP32 and ESP Rainmaker - Step by Step Tutorial

Sdílet
Vložit
  • čas přidán 21. 03. 2023
  • Learn how to control a servo motor using ESP Rainmaker and ESP 32 in this step-by-step tutorial. This project uses an ESP 32 board, a servo motor, a breadboard, and jumper wires. First, you will learn how to wire the components together correctly, then write the code to control the servo motor. You will also set up the ESP Rainmaker app and test everything to show how the project works. The video includes instructions on installing the ESP 32 board and servo library and demonstrates how to use the Rainmaker app to control the servo motor. Watch this video to learn how to create a servo motor project using ESP Rainmaker and ESP 32.
    --------------------------------------------------------------------------------------------------------------------
    Buy Parts
    --------------------------------------------------------------------------------------------------------------------
    1. ESP32 Espressif - amzn.to/3YCq2dS
    2. Servo Motor - amzn.to/3Ywvb7v
    3. Breadboard - amzn.to/3ysOvHX
    --------------------------------------------------------------------------------------------------------------------
    Useful Video Links
    --------------------------------------------------------------------------------------------------------------------
    Raspberry Pi Pico Servo Motor
    • Raspberry Pi Pico Serv...
    Arduino IR Remote Servo Control | Servo Motor | IR Sensor
    • Arduino IR Remote Serv...
    --------------------------------------------------------------------------------------------------------------------
    Social Media Links
    --------------------------------------------------------------------------------------------------------------------
    GitHub:
    github.com/ahm...
    --------------------------------------------------------------------------------------------------------------------
    Download Code
    --------------------------------------------------------------------------------------------------------------------
    github.com/ahm...
    --------------------------------------------------------------------------------------------------------------------
    Disclaimer
    --------------------------------------------------------------------------------------------------------------------
    Disclaimer: All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.
    Warning: I will use High Voltages which if incorrectly or improperly used could result in serious injuries or death. So be careful of what you are doing because I will take no responsibility for any of your actions.
    Warning: In some countries it is required to register GSM module from govt authorities before using it. So, get proper understanding of govt laws related to GSM technologies.
    #esp32 #servomotors #rainmaker

Komentáře • 58

  • @davisle4350
    @davisle4350 Před 9 měsíci

    Excellent video. One of the best on this topic. How would I make the servo rotate 90 degrees and then back to 0 from a single button? I am trying to make a "fingerbot" like the comment below. Basically I just need the servo to push a button whenever it is activated through the app. Thanks, you've got a new subscriber!

  • @masoudjafarzadeh
    @masoudjafarzadeh Před rokem

    Hello Ahmed Khan You were absent for a while Whats up I'm glad it's back on

    • @AhmadLogs
      @AhmadLogs  Před rokem +2

      Thank you for taking interest in my channel. I apologize for my absence from CZcams for a while. I had to take a break due to some personal and professional commitments that needed my attention.
      During my break, I was busy with some important tasks and projects that required my full focus and dedication, which unfortunately left me with very little time for creating content for my CZcams channel.
      However, I am excited to say that I am back now and ready to create more content for my channel.
      Once again, thank you for your support and for your patience during my absence. I appreciate your interest in my channel and look forward to connecting with you in the future.

  • @gideonz74b
    @gideonz74b Před 6 měsíci

    You assumed Arduino ide, but you didn't mention it. How do you do this with Esp-idf?

  • @SuitableBat9
    @SuitableBat9 Před 9 měsíci +1

    when i try to upload the code i get this error message
    WARNING: library Servo claims to run on avr, megaavr, sam, samd, nrf52, stm32f4, mbed, mbed_nano, mbed_portenta, mbed_rp2040, renesas, renesas_portenta, renesas_uno architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
    In file included from C:\Users\suita\Downloads\esp32-main\esp32-main\esp32-servo\esp32-servo.ino:21:
    C:\Users\suita\AppData\Local\Arduino15\libraries\Servo\src/Servo.h:79: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."
    ^~~~~
    exit status 1
    Compilation error: exit status 1

    • @markstacey6082
      @markstacey6082 Před 8 měsíci +1

      Rename Servo.h to ESP32Servo.h make sure you have the ESP32 servo library installed. Took me ages to figure this out myself, now i have a not enough memory problem :/

    • @abdougharouabi962
      @abdougharouabi962 Před 6 měsíci

      change servo.h to ESP32Servo.h

  • @willytwo53072
    @willytwo53072 Před 3 měsíci

    I have a WEMOS D! R32. Is this not compatible with Rainmaker? I have no setting for Partition for rainmaker. I also get an error "Compilation error: SimpleTimer.h: No such file or directory" Thanks for any help.

  • @nightwing8164
    @nightwing8164 Před 10 měsíci

    hey there,
    I'm trying to make a garage door opener using esp rainmaker, but I don't know what to do. Can you give me a hand, please?
    greetings.

  • @masoudjafarzadeh
    @masoudjafarzadeh Před 11 měsíci

    Hi dear friend
    While admiring you
    I have a question
    I wrote a program in which I want to use the following command to send an important message to the phone
    esp_err_t esp_rmaker_raise_alert(const char *alart_str)
    Can you show me its format with an example?
    Thank you again

  • @gdhdshdhdsa
    @gdhdshdhdsa Před 7 měsíci

    Why did you choose a rotation angle of 180 degrees but the servo only rotates 90 degrees?

  • @toptechautomation6649

    Brother, waiting for your feedback regarding the project of vending machine

  • @PinheiroEngenharia
    @PinheiroEngenharia Před rokem

    Fantastic project. Is it possible to give an idea on how to programming to create an fingerbot with servo and physical button to work togheter?

    • @AhmadLogs
      @AhmadLogs  Před rokem

      can you explain a bit more about fingerbot

  • @andreprasasti3497
    @andreprasasti3497 Před 10 měsíci

    Hi my friend i wanna ask, can i use this on esp8266 and uf i can what app for controlling the motor servo or what code that i use can you help???

  • @hassanzaenali9266
    @hassanzaenali9266 Před rokem

    Hello
    very good
    You can control a RGB with the software ESP Rainmaker along with various effects
    Thankful

  • @axellonsticks981
    @axellonsticks981 Před 5 měsíci

    Hi sir great video, the code and everything works but then when I move slider I'm getting no output form servo motor, everything is connected and blue light on esp32 is on, do help please

  • @Voyage06
    @Voyage06 Před rokem

    Hi Ahmed I want to make a live gps tracker using esp32 and neo 6m gps module and connecting it to a portable wifi dongle
    can you please provide the code for it
    it should display location on map

  • @harounmethamem1259
    @harounmethamem1259 Před rokem

    Hello the pins on my esp32 are different than urs, I'm using the espressif made esp32. Pls help

    • @AhmadLogs
      @AhmadLogs  Před rokem

      just google it. search for pin mapping esp32 and your module.

  • @IshidaQuincy
    @IshidaQuincy Před rokem

    Hello sir, there is a way to make the servo motor work with on/off? In a way that it goes to 90° when turned on, and back to 0º when turned off?
    Thank you.

    • @AhmadLogs
      @AhmadLogs  Před rokem

      #include
      Servo servoMotor; // Create a servo object
      int switchPin = 2; // Connect the switch to digital pin 2
      void setup() {
      servoMotor.attach(9); // Attach the servo to pin 9
      pinMode(switchPin, INPUT_PULLUP); // Set the switch pin as input with internal pull-up resistor
      }
      void loop() {
      if (digitalRead(switchPin) == LOW) {
      // Switch is pressed, move the servo to 90 degrees
      servoMotor.write(90);
      } else {
      // Switch is not pressed, move the servo to 0 degrees
      servoMotor.write(0);
      }
      }

    • @IshidaQuincy
      @IshidaQuincy Před rokem

      Thank you for your response sir, I am sorry that i wasn't clear but I would like to make it work with the digital button on rainmaker, I don't have a switch in my project. I follow your tutorial and could make it work with a slide, but I will use the servo to simulate a gate, so would be better to open and close directly. Could you help me please? And again, thank you for take your time to try to help me.

  • @affanrathore5439
    @affanrathore5439 Před rokem

    Hello , brother what will be connection if we want to also add ldr that work as indoor and outdoor to automatically open and close the curtains. and what will be the code for that.. smart curtain using servo motor and ldr ... I haven't found any satisfactory video on youtube ..I think u r the one who can help me with that....

    • @AhmadLogs
      @AhmadLogs  Před rokem +1

      I think this code is google starting for you
      #include
      Servo curtainServo;
      int ldrPin = A0;
      int servoPin = 9;
      int threshold = 500; // Adjust this threshold to your preference
      void setup() {
      curtainServo.attach(servoPin);
      curtainServo.write(0); // Initialize the servo position to fully closed
      delay(1000); // Wait for the servo to reach its initial position
      Serial.begin(9600);
      }
      void loop() {
      int lightLevel = analogRead(ldrPin);
      if (lightLevel < threshold) {
      curtainServo.write(0); // Close the curtain
      } else {
      curtainServo.write(90); // Open the curtain
      }
      delay(1000); // Adjust the delay as needed
      }

    • @affanrathore5439
      @affanrathore5439 Před rokem

      @@AhmadLogs Thank you

    • @affanrathore5439
      @affanrathore5439 Před rokem

      Brother there is No A0 pin in Esp32

    • @AhmadLogs
      @AhmadLogs  Před rokem

      @@affanrathore5439 it is just sample code for arduino. you just change the pin as per your neeeds

  • @akydisplay
    @akydisplay Před rokem

    Dear Ahmed
    Please Make A Display
    Moon Rise Moon Set Time..
    That Are Not Available In Internet.

    • @AhmadLogs
      @AhmadLogs  Před rokem

      can you give me the detail about the project

  • @prakashharash8380
    @prakashharash8380 Před rokem +1

  • @manjudevi9783
    @manjudevi9783 Před rokem

    Brother I am not getting this QR code,I am getting some letters,boxes etc...can you pls help me pls

    • @manjudevi9783
      @manjudevi9783 Před rokem

      I am not getting this blue colour light please help me brother😢

  • @arslan1580
    @arslan1580 Před rokem

    Aoa Bro
    Your work is practically awesome. Kindly guide me on the project (Getting multiple GPS location on offline map) using HC-12, Arduino UNO, Neo 6M GPS and offline map app.
    No GSM or Network(else HC-12 connectivity)

  • @tsgrizwan1366
    @tsgrizwan1366 Před rokem

    Ye kesa kaam hai kis kaam aata hai

  • @dragon-cu6cc
    @dragon-cu6cc Před rokem

    Hello
    Rainmaker stepper motor right left turn please make code

    • @AhmadLogs
      @AhmadLogs  Před rokem

      will try

    • @dragon-cu6cc
      @dragon-cu6cc Před rokem

      @@AhmadLogs
      Thank you very much

    • @dragon-cu6cc
      @dragon-cu6cc Před rokem

      @@AhmadLogs
      czcams.com/video/BVQWa1esOxU/video.html

    • @dragon-cu6cc
      @dragon-cu6cc Před rokem

      @@AhmadLogs
      I want to make ESP RainMaker or blynk stepper motor I want to make a door lock please help code

    • @dragon-cu6cc
      @dragon-cu6cc Před rokem

      I am waiting

  • @imransajid7615
    @imransajid7615 Před rokem

    Bhai Ager ap sa rabta krna ho to kasy

  • @anmolkasabe
    @anmolkasabe Před rokem

    Hello sir I needed your help with one project of gps tracker using esp8266. Can you please provide your email or any other contact method

    • @AhmadLogs
      @AhmadLogs  Před rokem

      you can ask anything here.

    • @anmolkasabe
      @anmolkasabe Před rokem

      @@AhmadLogs I tried to make gps tracker using esp8266 and sim800l but when checked on serial monitor it shows garbage values in place of phone numbers. So phone number aren't getting resistered.

    • @AhmadLogs
      @AhmadLogs  Před rokem

      @@anmolkasabe you just clean the eprom and then store the phone number by sending the R command

    • @AhmadLogs
      @AhmadLogs  Před rokem

      @@anmolkasabe you just clear the eeprom memory and then try to register the phone number

    • @anmolkasabe
      @anmolkasabe Před rokem

      @@AhmadLogs I tried it but it didn't worked i also tried inserting mobile number directly into the code still no luck