012 - ESP32 MicroPython: HC-SR04 Ultrasonic Sensor in MicroPython

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

Комментарии • 30

  • @TechToTinker
    @TechToTinker  4 года назад +2

    Hello guys, if you noticed the occasional spikes in this video I just verified that that is due to the loose dupont jumper wires.
    Cheers,
    George Bantique

  • @marciuse70
    @marciuse70 9 месяцев назад +1

    Hi! I´m loving your lessons! Your didactic is very clear and simple! Congratulations!

  • @mytechnotalent
    @mytechnotalent 4 года назад +2

    Really coming along great! I hope you make 100 of these.

    • @TechToTinker
      @TechToTinker  4 года назад +1

      thanks @Kevin, we will see what we can.

  • @legend_6483
    @legend_6483 2 года назад

    super straight forward and easy tutorial thank you for sharing

  • @sonnybalut
    @sonnybalut 3 года назад

    Salamat sa mga video mo, very helpful.

    • @TechToTinker
      @TechToTinker  3 года назад

      Walang anuman @Sonny Cruz. Im glad of help :) Thank you.

  • @alzalame
    @alzalame 3 года назад

    Thank you this tutorial is very helpfull .

    • @TechToTinker
      @TechToTinker  3 года назад

      @Jan Ibrahim, I am glad that it helps you. Thanks.

  • @ProfessorMarcosCarnevali
    @ProfessorMarcosCarnevali 4 года назад +1

    Bom dia! Parabéns pelo vídeo!!! Abraços...

  • @cyrix_1
    @cyrix_1 3 года назад

    Thanks for. Good walk thru. Could use some help adding OSC to this.

  • @ihutesolution9451
    @ihutesolution9451 2 года назад +1

    Hello man great video, am trying to follow your example here to make the ultrasonic sensor change its state from free to occupied . my Qn is when you declare this line
    ultrasonic = hcsr04.HCSR04(trigger_pin=13, echo_pin=12, echo_timeout_us=1000000)
    any advise on how i can go about that thanks

    • @TechToTinker
      @TechToTinker  2 года назад

      I do not understand what you intend to do. Can you explain it further?

  • @waleedaiad3411
    @waleedaiad3411 2 года назад +1

    How can i use hc-12 with arduino using python language?.

    • @TechToTinker
      @TechToTinker  2 года назад

      I don't have an HC-12 but after reading this www.allaboutcircuits.com/projects/understanding-and-implementing-the-hc-12-wireless-transceiver-module/ it seems it is using a serial UART communication. You can look for my MicroPython videos regarding UART and you should be able to make some progress in using tthe HC-12.
      Cheers.

  • @phanidharkumar7007
    @phanidharkumar7007 2 года назад

    Sir, I am using the same 'ultrasonic_distance.cm' but I am getting a value like -0.0343. And strangely, it remains the same even though I changed the object distance. I thought there might be something wrong with the sensor and tried using it with Arduino but it was working fine. I am getting expected results and infact I was able to even perform intruder alert. I request you to let me know what could be the possible mistake.

    • @TechToTinker
      @TechToTinker  2 года назад +1

      I am not sure what could be wrong with your setup. I would suggest to try to re-assemble again the circuit. Notice also that Arduino Uno uses 5V while ESP32 uses 3.3V. That could be the difference.

  • @shubhamshirbhate9068
    @shubhamshirbhate9068 4 года назад +1

    can we connect database in micropython

    • @TechToTinker
      @TechToTinker  4 года назад +1

      Definitely yes, I will try to create this for future uploads.

  • @jeremiaspinedaramos3435
    @jeremiaspinedaramos3435 4 года назад +1

    I Have a measurement error, in cm the measurement is 0.3436426 and when i put the sensor in mm the measurement is 0, how can i solve this?

    • @TechToTinker
      @TechToTinker  4 года назад +1

      Hi @Jeremias Pineda Ramos, have you tried multiplying cm to 10? Such as mm = cm x 10.

    • @jeremiaspinedaramos3435
      @jeremiaspinedaramos3435 4 года назад

      @@TechToTinker Yes, thank you, I've done that but the error is the same... I mean, if i put an object in a know measure, the printed measure is the same: 0

    • @TechToTinker
      @TechToTinker  4 года назад +1

      @@jeremiaspinedaramos3435 that's weird. Can you try the following:
      1. Make sure that the VCC of ultrasonic sensor is around 5V.
      2 Share your code, there might be something.

    • @jeremiaspinedaramos3435
      @jeremiaspinedaramos3435 4 года назад

      @@TechToTinker Thank you so much for the help, the problem is solve, I had powered with 3v3 pin instead of vin pin ... I had to saw how you powered the sensor

  • @boopeshkumarprabhakaran
    @boopeshkumarprabhakaran 3 года назад

    Sr04 needs 5v and esp32 3.3v soo how does it even work?

    • @TechToTinker
      @TechToTinker  3 года назад

      @Boopesh kumar, you may have your 5V voltage from the VIN pin. VIN pin is connected to USB power.

    • @boopeshkumarprabhakaran
      @boopeshkumarprabhakaran 3 года назад

      @@TechToTinker thanks.. I want to do automatic stair case with esp32 and ws2812b using Two ultra sonic... Do you have an idea about this...? Could you vouch me?