How to interface ultrasonic sensor with Raspberry Pi

Поделиться
HTML-код
  • Опубликовано: 27 май 2020
  • Kitflix has currently more than 5000 students from 150+ countries. We’re slowly progressing towards becoming a community of like minded people who love to experiment on embedded systems, IoT and all things electronics and coding.
    Please join kitflix by enrolling to any one of free courses mentioned below
    Crash Course on Raspberry Pi Computer : kitflix.com/course/crash-cour...
    Arduino Programming using Drag and Drop blocks : kitflix.com/course/arduino-pr...
    Crash Course on Embedded C Programming : kitflix.com/course/crash-cour...
    PCB Design using Proteus ISIS : kitflix.com/course/pcb-design... #Kitflix #RaspberryPi #Interfacing
    This is a detailed tutorial about Interfacing of HC-04 Ultrasonic Distance sensor with Raspberry Pi and its Python Code
    This is a complete tutorial covering every thing from hardware interfacing of ultrasonic sensor with raspberry pi to complete explanation of the Python Program.
    Tools needed for this tutorial
    -- Raspberry Pi 3 / 4
    -- Ultrasonic Sensor
    -- 1K and 1.5K resistor
    -- Breadboard
    -- Connecting wires
    The code and circuit diagram is available here
    kitflix.com/how-to-interface-...
    If you're interested in more, please visit our website here at www.kitflix.com
    and join the course Beginners Masterclass on IoT with Raspberry Pi and Azure at lowest price using below link
    www.udemy.com/course/internet...
    Thank you for watching the video
    If you like our work, please support us by purchasing a full course from us at
    kitflix.com
    they're affordable and super helpful
    We also love helping you in solving any of your problems and issues, feel free to reach out to us for any guidance, consultation or to simply connect with us
    Contact us here : kitflix.com/contact/
    Our Facebook Channel: kitflixdotcom
    Linkedin: linkedin.com/in/amit-rana/
    For any clarifications, please comment.
    Thank you
  • НаукаНаука

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

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

    Thank you very much for the calm and engaging video!
    I certainly enjoyed this video!

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

      Thank you 😊
      Please support our work by visiting learn.kitflix.com and buying any course that'll help you further :)
      You can also use kitflix app on Android

  • @riogaming668
    @riogaming668 3 года назад +5

    Great work and such an amazing explanation in the code.👍

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

      Glad you liked it :) :)

  • @phanchhayfong4001
    @phanchhayfong4001 3 года назад +1

    this video make me understand clearly on using an ultrasonic sensor with raspberry>>>
    thank you for this video.

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

      Glad it helped Phan
      Please consider buying full course at kitflix.com

  • @kodhalemanmath5595
    @kodhalemanmath5595 Год назад +1

    Great Video Today I Have Lab Exam .Mam told that Ultra Sonic Sensor Is Common Question It Helped me Today

    • @Kitflix
      @Kitflix  Год назад

      please visit our website for free online course www.kitflix.com/course

  • @jawedhawari6927
    @jawedhawari6927 Год назад

    Thanks for your clean and clear explanation sir

  • @lexlesuedois1133
    @lexlesuedois1133 Год назад +1

    very well explained, good job (even me I understood :) )

  • @RadioVoiceFM
    @RadioVoiceFM 3 года назад +1

    Great Work sir and very Well Explained Thanks!

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

    great tutorial i ever found, 👌🤘

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

      Thank you.. Glad it helps.. 🙂

  • @amd756
    @amd756 3 года назад +1

    Thanks for the great video with very clear explanation. Exactly what I needed to start off my project. I need to use IoT to display the sensor value on a web app. Do you have any advice for doing that?

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

      Great to hear and am glad it helped :)

  • @ranjanpal7217
    @ranjanpal7217 3 года назад +1

    Amazing..Thanks a lot..Plz make a video on how to interface current sensor with Raspberry Pi

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

      Sure,
      it'll need external ADC as RPi Don't have one, but we'll try for sure

  • @aishahabib2710
    @aishahabib2710 Год назад

    Sir the way you explained everything is so Amazing!!
    I would like to react ❤️ on this video but unfortunately we only have 👍

  • @skycomputerandrobotics5561
    @skycomputerandrobotics5561 3 года назад +1

    Nicely explained

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

      Thank you :)
      Please consider buying full course at kitflix.com

  • @akshaymhapankar2107
    @akshaymhapankar2107 8 месяцев назад

    Great video 👍👍. I want to understand the calculation done to find the resistors required in this circuit. Also what is the purpose of 1.5k resistor if the current will directly flow to the gpio pin?

    • @Kitflix
      @Kitflix  5 месяцев назад

      Essentially, we don't want input pin to have get more than 3.3 as signal voltage, hence a voltage divider is created generating not more than 3 volt when 5 v echo signal comes from ultrasonic sensoe

  • @proboyadi
    @proboyadi 10 месяцев назад

    Sir I did the same as instructed by you but it is showing an attribute error ( float has no attribute pulse_start ) what to do pls help

  • @lagtabhamza1676
    @lagtabhamza1676 Месяц назад +1

    Hi please how we can concept out circuit and is this applicable in proteus ? thank you so much

    • @Kitflix
      @Kitflix  11 дней назад

      Am not sure as I haven't used proteus in long time :/

  • @proboyadi
    @proboyadi 10 месяцев назад +1

    Sir nice explanation but I am having an issue that when I connect vcc and gnd pins with raspberry pi it gets off and lights in raspberry pi gets dim what to do pls help

    • @Kitflix
      @Kitflix  10 месяцев назад +1

      please check pinout of ultrasonic sensor if LED gets off may be sensor damage buy new one and check proper Vcc and Ground pin on 5v

  • @ragavivenkat6014
    @ragavivenkat6014 3 года назад +1

    Sir , i need an help could you please suggest any idea of connecting this ultrasonic sensor to raspberry pi wirelessly..

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

      Sure
      Can u contact me on Amit at kitflix dot com?

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

    I used this one.

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

      Glad it helps you.. 😀

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

    can you please do a video on grove ultrasonic ranger with raspberrypi

    • @Kitflix
      @Kitflix  Год назад

      I don't have that sensor, but will try to grab and make one :)

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

    sir i've use the same code but it is giving me error
    TypeError: 'float' object is not callable
    please anyone help

  • @ABHi-oe7sy
    @ABHi-oe7sy Год назад +1

    What to if it doesn't show the correct distance
    For me it's 1211 and only decimal point change y?

    • @Kitflix
      @Kitflix  Год назад

      can you post your code? there has to be some small mistake

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

    sir can you please tell that how can we simulate it online

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

      Simulating raspberry Pi is not possible yet :(

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

    I am having importError stating that my device doesn’t have RPi.GPIO module. I have used sude apt-get -y install python-rpi.gpio. But it’s not solving the error.

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

      Hi, please send me a whatsapp with error screenshot on 919404865609

  • @akshatsingh1974
    @akshatsingh1974 2 года назад +3

    well for me its stuck on waiting for sensor to settle

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

      Meaning connection is not done properly or something wrong on sensor

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

    Hi, Will this work on a Raspberry Pi 1B

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

      yes, it will

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

      @@Kitflix Thanks, I get really odd numbers coming back from the code that do not relate to the distance.

  • @nandinigarbham3023
    @nandinigarbham3023 Год назад

    Why duration is multiplied with 17150

    • @Kitflix
      @Kitflix  Год назад

      Hi, it's explained in video, half of speed of sound ( because we cover double distance)

    • @nandinigarbham3023
      @nandinigarbham3023 Год назад

      @@Kitflix thank you😄

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

    sir i've use the same code but it is giving me error
    TypeError: 'float' object is not callable
    please anyone help

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

    sir i've use the same code but it is giving me error
    TypeError: 'float' object is not callable
    please anyone help

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

      Send a detailed email with screenshot to support at kitflix.com

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

    sir i've use the same code but it is giving me error
    TypeError: 'float' object is not callable
    please anyone help