Understanding Servo Motors: A Guide to ESPHome, ESP32, and Home Assistant

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

КОМЕНТАРІ • 58

  • @3ATIVE
    @3ATIVE  4 місяці тому +3

    Please feel free to Comment on Use-Cases / Projects (Fun or Otherwise) / Etc... That you'd like me to tackle. #StayTuned

  • @willenestvedt1376
    @willenestvedt1376 3 місяці тому +2

    FINALLY an explanation of servos that I am able to follow. Cheers!!

    • @3ATIVE
      @3ATIVE  3 місяці тому

      That's so good to hear - Happy to be of service. 👍

  • @mirosaari8960
    @mirosaari8960 8 днів тому

    Thanks for the video! Very clear presentation and exactly the info I needed

    • @3ATIVE
      @3ATIVE  8 днів тому

      You are most welcome and I'm glad I was able to help.

  • @morticiaskeeper
    @morticiaskeeper 2 місяці тому +1

    This is really helpful. I already have a d1 mini controlling a servo on an air diverter in my campervan, but it just responds to a switch. This will allow me to divert the air to the water heat exchanger from Home Assistant, and then switch on the air heater via mqtt to heat a tank of water.

    • @3ATIVE
      @3ATIVE  2 місяці тому

      That's a cool (no pun intended) use of a servo. It's great to hear you found my tutorial helpful and how you're putting it to good use!
      Do you think they should make a _Mobile-Home Assistant_ version?

    • @morticiaskeeper
      @morticiaskeeper 2 місяці тому

      @@3ATIVE A few people have used HA in vans, but most go with the Victron system. I have a full Victron system, but I can't control everything with it, so I also have Switchbot & Afterburner & WLED, plus some important switches that have to be physically pressed..
      At the moment, to heat water, I have to make sure there is water in the tank, Victron tells me this. If I'm going to use electric heating, I have physical sensors, like voltage & a float switch to ensure the element is covered. If, like most mornings, I'm going to use the diesel heater, I have to switch the air diverter to the heat exchanger. Switch on the heater via the Afterburner mqtt, raise the heater temperature so it's doesn't ramp back if the room is warm, switch on the recirculation pump, which will stop when the water reaches 50c. But the heater is still running and then needs to be turned off.
      Filling the hot tank involves reaching a tap under the bed and waiting until a float switch sounds a buzzer. This could be automated with a valve. Pump & fridge isolators could also be smartened, possibly isolate the pumps if the level falls too low, or if the room temperature falls below 0c.
      A simple button in the kitchen could turn on the inverter for the Induction hob/Airfryer, rather than via 3 pages of the victron GUI.
      Plenty of projects to come.

  • @patrickalbury8901
    @patrickalbury8901 4 місяці тому +1

    Wow, alot of information in this video. Now i need to start to think of how to use.
    Another great video

    • @3ATIVE
      @3ATIVE  4 місяці тому

      Well the Thumbnail does say: "Everything you need..." LOL
      Finding some uses for these is gonna be one of my next quests too. If you have any suggestion on what you'd like me to tackle, I'd love to heard them.

  • @ruslanmustaev8170
    @ruslanmustaev8170 4 місяці тому +1

    Thanks mate, I was thinking about to build an air duct motorised damper to control heating flow accurately. You video helps a lot, I'm considering buying a servo with metal gearbox and use it to rotate a valve.

    • @3ATIVE
      @3ATIVE  4 місяці тому +1

      Nice... Coupled with my OLED Thermostat Project (LOL) you could have room-level Heating/Cooling control.
      - FYI: The servos I show are all metal geared. I've linked them in the description (Amazon Link).

    • @ruslanmustaev8170
      @ruslanmustaev8170 3 місяці тому

      @@3ATIVE yeah, that’s the idea! Pair it with home assistant and temperature sensors

  • @D4VEW
    @D4VEW 3 місяці тому

    Top video as always. While I expect the answer is no, if you move the servo manually does the slider in home assistant update to the position of the servo. I am looking for a solution to motorise a venetian blind tilt but still having the manual control intact thus some accurate real time position feedback is required.

    • @3ATIVE
      @3ATIVE  3 місяці тому

      Thanks fella.
      While the Servo will know you've moved it from it's on-board Variable Resistor, it doesn't communicate anything out.
      - Servos only have inputs.

  • @JohnMayfield-NS
    @JohnMayfield-NS 4 місяці тому

    Just starting to play with some of this stuff so great timing. :) Thanks!

    • @3ATIVE
      @3ATIVE  4 місяці тому +1

      Oh hey John. Yes, I heard you started looking into these.. So, I rushed the tutorial out for you! LMAO

    • @JohnMayfield-NS
      @JohnMayfield-NS 4 місяці тому +1

      😂 well I appreciate it!

  • @werkstoff8667
    @werkstoff8667 3 місяці тому +1

    Finally. now it works. Thank´s

    • @3ATIVE
      @3ATIVE  3 місяці тому

      LOL I take it you were having problems before?

  • @roystervi
    @roystervi 4 місяці тому

    Thanks for this video, you know l needed this.

    • @3ATIVE
      @3ATIVE  4 місяці тому

      Cool... I plan to do a Stepper Motor tutorial soon too. #StayTuned LOL

  • @HATipsByLarry
    @HATipsByLarry 4 місяці тому +1

    Nice one dave 👍👍

    • @3ATIVE
      @3ATIVE  4 місяці тому +1

      Thank you larry two ;)

  • @Mh-yo2sz
    @Mh-yo2sz 2 місяці тому

    This a another exceptional tutorial and I've got my setup running except one fundamental issue. I've got a touch screen ILI9488, and I want to send those touch screen events to the trigger the servo to move to a specific angle. Touchscreen and Servo are on different ESP's, how is the signal moved between them? An automation or another function?

    • @3ATIVE
      @3ATIVE  2 місяці тому +1

      Thank you, I glad to hear it was useful for you.
      As for the Screen to Servo: Yes a Home Assistant Automation would do it.

  • @fibranijevidra
    @fibranijevidra Місяць тому

    Well explained.
    Is it also possible to adjust from the HA the frequency value (not for servos) of the LEDC platform? Finding a suitable PWM frequency without recompiling would be great.

    • @3ATIVE
      @3ATIVE  Місяць тому +1

      Thanks. 👍
      You can adjust the LEDC Output: component's frequency "externally". As it's "Templatable" you simply setup a "Slider" and an "Action"...
      More info here: esphome.io/components/output/ledc#output-ledc-set-frequency-action

    • @fibranijevidra
      @fibranijevidra Місяць тому

      @@3ATIVE Thanks mate. I'll try to do that.

  • @automatizaciondynamica2609
    @automatizaciondynamica2609 20 днів тому

    I already did everything of your video is so helpfull, but I just want to rotate the motor 360 not just 180 degrees, how can i do that?, thank you for you reply

    • @3ATIVE
      @3ATIVE  20 днів тому

      You need a "360" or continuously rotating servo for that.

    • @automatizaciondynamica2609
      @automatizaciondynamica2609 19 днів тому +1

      ​@@3ATIVE Thank you, I will try it. 😀

  • @neilos2085
    @neilos2085 4 місяці тому +1

    Another great!

    • @3ATIVE
      @3ATIVE  4 місяці тому

      I appreciate the support - I hope it's both informative and
      inspirational.

  • @steverhysjenks
    @steverhysjenks 4 місяці тому

    I'm wondering if I could use this for a set of blinds that are pull rather than twist to open and close blinds (not pull up/down). How you would take the small travel of the server guessing 50 > 100 mm and get it to pull 200mm on the blinds.

    • @3ATIVE
      @3ATIVE  4 місяці тому +2

      Not sure if a Servo would be the right choice here, as it may not be able to pull hard-enough.
      - _Especially as you want a 1:2 (2x) ratio on it._
      I would go for a Stepper Motor for blinds, etc. With many more revolutions available, it would be easier to gear down to get the extra torque required.
      #StayTuned one of my up-coming tutorials is for Stepper Motors !!! ;)

  • @korayberk
    @korayberk 15 днів тому

    which servo motors would work for this code, no mention of hardware of servo?

    • @3ATIVE
      @3ATIVE  14 днів тому

      Any. Apart from specialist ones, servos are all the same.
      - If you want to get the ones I use in the video, as in all my videos, there's a (Amazon) Link in the description.

  • @galdakaMusic
    @galdakaMusic 4 місяці тому

    Great video!. But in my short experience, the biggest problem in this type of projects is assembling and powerized project. Other problem is the protocol, is posible Zigbee2mqtt or Bluetooth instead Wifi? Thanks

    • @3ATIVE
      @3ATIVE  4 місяці тому

      Thank you, I'm glad you like it... _you did "Like" Button it right!_ LOL
      Yes, the hardware and connecting things to move will always be harder than Electronics and Coding.
      - I'm not sure about Zigbee and Bluetooth... Although, I am thinking about making some Zigbee devices in the future.

    • @galdakaMusic
      @galdakaMusic 4 місяці тому

      ​@@3ATIVENow yes sorry!!

  • @SupersonRS
    @SupersonRS 4 місяці тому +1

    You’re a legend! Nice work 😊
    Can you share link to the servo you use or the modelname? Thanks 🙏

    • @3ATIVE
      @3ATIVE  4 місяці тому +1

      No-No-No... My audience are the legends. I couldn't do any of this without y'all.
      Oh yes, a link to servo, I have an Amazon affiliate link in the description. Gimme a few and I'll add the Servo to it.
      FYI: Pretty Much all Servos work the same (The 5 Volts ones) So you can use any Servo you find/have..

    • @3ATIVE
      @3ATIVE  4 місяці тому +1

      Hang on... to save you waiting...
      These are the ones I showed: amzn.to/3VzUVAg
      But, I started by playing with these: amzn.to/4ct8Rmq

    • @SupersonRS
      @SupersonRS 4 місяці тому

      Thanks alot ❤

    • @3ATIVE
      @3ATIVE  4 місяці тому

      @@SupersonRS You are most welcome. 🙏

    • @MarkJones-lr2lk
      @MarkJones-lr2lk 4 місяці тому

      Very interesting video. Been trying to think of potential applications ... maybe a pet feeder or a weather indicator using symbols on a clock face.

  • @substandard649
    @substandard649 4 місяці тому +2

    Excellent video as usual. Id love to see a practical implementation, i have servos sitting in a draw but im struggling to find a use for them!

    • @3ATIVE
      @3ATIVE  4 місяці тому +1

      I appreciate the compliment - Thnx.
      Use-cases: Same here. Hopefully, now people can easily control them, We'll get some suggestions for future projects. 🤞

  • @Sums2483
    @Sums2483 Місяць тому

    Could someone help me on the script to add a momentary switch along with the slider that is used in the video? I would like to still have to the option to operate with a physical switch.

    • @3ATIVE
      @3ATIVE  Місяць тому

      By "momentary switch" I guess you mean "push button". ESPHome has a 'component' for that it's called a 'binary_sensor'.
      See here for more info: esphome.io/components/binary_sensor/
      It would also be useful if you described what you want this to do.

  • @avri210984
    @avri210984 4 місяці тому +1

    First comment!!!
    Awesome video!!

    • @3ATIVE
      @3ATIVE  4 місяці тому

      Yes, 1st comment Confirmed 🥳
      Thanks for the feedback, I hope you find it useful.
      - Feel free to comment again if you think of any Use-cases / Projects / Etc... you want me to tackle.

  • @ZoomtronicBlogspot
    @ZoomtronicBlogspot 4 місяці тому

    ventilation vanes powered with servo, egg incubator climate control with servo...

    • @3ATIVE
      @3ATIVE  4 місяці тому +1

      Vent slats is a good one and should make for a great tutorial 💖
      I have to admit, that Egg-thing is a mystery thou - What needs moving there? 😊

    • @ZoomtronicBlogspot
      @ZoomtronicBlogspot 4 місяці тому

      @@3ATIVE precise control of humidity, venting too humid air I guess, just making egg incubator via esp home and HA :)