Raspberry Pi Tutorial on Connecting the Ultrasonic sensor HC SR04

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

КОМЕНТАРІ • 37

  • @RixtronixLAB
    @RixtronixLAB 10 місяців тому +2

    Nice video, thanks :)

  • @vomm27
    @vomm27 3 роки тому +7

    bro seems you connected pin 2 to negative railway and pin 6 to positive railway can you please confirm

  • @egbuzobijoel581
    @egbuzobijoel581 2 роки тому +2

    very nice and simple work

  • @siriustoolshobbies229
    @siriustoolshobbies229 2 роки тому +2

    Can i add 2 more sensor in the same raspberry? volts/amps problems?

    • @JellyFoxYT
      @JellyFoxYT Рік тому +1

      I know this is super late but volts are the amount of pressure and won't change unless you either add more power sources change the voltage on the existing one. The sensor needs 5V and the GPIO pins get fried on anything more than 3.3V. Amps shouldn't be a problem either.

  • @Detopie
    @Detopie Рік тому +1

    i don’t have a 2kohm resistor, but i have lots of 1KOhm. how would i wire it that way?

    • @JellyFoxYT
      @JellyFoxYT Рік тому +2

      the resistance can stack

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

    any idea why echo pin can't reach high?

  • @lagtabhamza1676
    @lagtabhamza1676 6 місяців тому +1

    Hi can i ask you please, is there's is a sensor that can present radar sensor ( calculating speed and velocity ) ? if yes tell me and thaak you so much brother

    • @raspberrypimadeeasy
      @raspberrypimadeeasy  6 місяців тому +1

      Yes, there are radar sensors that can be used with a Raspberry Pi to calculate speed and velocity. Here are a couple of examples:
      • OmniPreSense OPS243-A Doppler Radar Sensor: This sensor was used in a project to build a “speed trap” that uses machine learning to identify vehicles and a radar sensor to measure speed1. The data was then reported to the cloud1.
      • HB100 Radar Sensor: This sensor can be wired to a Raspberry Pi to calculate the speed/velocity of an object2.
      • A111 Pulsed Radar Sensor: This is a single-chip solution for pulsed coherent radar (PCR) and comes complete with antennae and an SPI interface capable of speeds of up to 50MHz3. Applications for PCR include distance-sensing, gesture, motion, and speed detection.
      Check out this links below
      wiki.ros.org/Drivers/Tutorials/SpeedMeasurementWithRadarSensorHB100Python
      www.tomshardware.com/news/raspberry-pi-mobile-speed-trap
      learn.sparkfun.com/tutorials/getting-started-with-the-a111-pulsed-radar-sensor/all

    • @lagtabhamza1676
      @lagtabhamza1676 6 місяців тому +1

      @@raspberrypimadeeasy I just want to know if there's sensor's do the same thing, that i can use in proteus simulation

    • @raspberrypimadeeasy
      @raspberrypimadeeasy  6 місяців тому

      You can simulate the ultrasonic sensor in Proteus using the Ultrasonic Sensor Library

  • @WalkingBlock
    @WalkingBlock 10 місяців тому +1

    great thanks

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

    Thank you very much

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

    What coding software did u use

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

      The Raspberry Pi comes preloaded with Python which you can use to code

    • @thefishersfisher2378
      @thefishersfisher2378 3 роки тому +1

      Terminal or thonny that come preinstalled into the pi

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

      @@thefishersfisher2378 idk if you still need it but it's a command line text editor called GNU Nano

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

    im getting waiting for sensors to settle then no reading any idea bro whatwent wrong

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

      did you figure it out

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

      @@marck4039 change TRIG from 16 to 23 and ECHO from 18 to 24 into the code only.

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

      it needs GPIO value not pin number

    • @JellyFoxYT
      @JellyFoxYT Рік тому +1

      @@Waja_Dadkarim I have it wired to GPIO pins 21 and 20 and in the code, I assigned the right values to the variables. I don't know what the issue is though.

    • @suomynona7261
      @suomynona7261 7 місяців тому

      @@JellyFoxYTdid you figure it out?

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

    I'm not getting a continuous output. I need to keep pressing Run on the code in order to get a single reading. Anyone knows how to fix this?

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

      Same here did you find the answer

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

      @@wanderingsaint2659 nope

    • @sameel9777
      @sameel9777 Рік тому +2

      Yes , You can add “while (True):”
      Then put your code after this sentence then it will run continuously

    • @leenavin2005
      @leenavin2005 Рік тому +1

      Put your code in a for loop or while loop and that should give you a continuous reading. I have noticed that the sensor gets overheated sometimes, hence make sure that you let it rest for some time using sleep.

  • @FHCRT2
    @FHCRT2 5 місяців тому +1

    not working

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

      @FHCRT2 can you provide more details on what's not working ?

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

      @@raspberrypimadeeasy It does not work

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

      @@FHCRT2 if you require more help please provide more detail on what's not working. I won't be able to help you if I don't know what's not working

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

      @@raspberrypimadeeasy I used the whole code you wrote and it is not working. Also I have a raspberry pi 4 not arduino Uno. And I have a breadboard connected with a transfer of all GPIO pins to the breadboard.

  • @amroelmughrabi
    @amroelmughrabi Рік тому +1

    Did you film with potato?

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

    working