Тёмный

Raspberry Pi Tutorial on Connecting the Ultrasonic sensor HC SR04 

RaspBerry Pi Made Easy
Подписаться 332
Просмотров 42 тыс.
50% 1

Connecting the Ultrasonic Sensor( HC-SR04) to the Raspberry Pi to measure distance.
Equipment you need:
Raspberry Pi 3 or 4
Breadboard
Ultrasonic Sensor
One 1 kilo-Ohm resistor
One 2 kilo-Ohm resistor
8 Female-Male Jumper Wire
Stay ahead of the curve with the latest news on Pi. Subscribe to our newsletter at bit.ly/3TRf3x7
Credits:
The steps in this tutorial, including the code, were obtained from the Pi Hut at the link below, with minor adjustments.
Reference:
thepihut.com/b...

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 37   
@RixtronixLAB
@RixtronixLAB 9 месяцев назад
Nice video, thanks :)
@vomm27
@vomm27 3 года назад
bro seems you connected pin 2 to negative railway and pin 6 to positive railway can you please confirm
@Detopie
@Detopie 11 месяцев назад
i don’t have a 2kohm resistor, but i have lots of 1KOhm. how would i wire it that way?
@JellyFoxYT
@JellyFoxYT 11 месяцев назад
the resistance can stack
@mrkeji1002
@mrkeji1002 Месяц назад
any idea why echo pin can't reach high?
@siriustoolshobbies229
@siriustoolshobbies229 2 года назад
Can i add 2 more sensor in the same raspberry? volts/amps problems?
@JellyFoxYT
@JellyFoxYT 11 месяцев назад
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.
@lagtabhamza1676
@lagtabhamza1676 5 месяцев назад
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 5 месяцев назад
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 5 месяцев назад
@@raspberrypimadeeasy I just want to know if there's sensor's do the same thing, that i can use in proteus simulation
@raspberrypimadeeasy
@raspberrypimadeeasy 5 месяцев назад
You can simulate the ultrasonic sensor in Proteus using the Ultrasonic Sensor Library
@egbuzobijoel581
@egbuzobijoel581 2 года назад
very nice and simple work
@WalkingBlock
@WalkingBlock 9 месяцев назад
great thanks
@vomm27
@vomm27 3 года назад
im getting waiting for sensors to settle then no reading any idea bro whatwent wrong
@marck4039
@marck4039 2 года назад
did you figure it out
@wajadadkarim1708
@wajadadkarim1708 2 года назад
@@marck4039 change TRIG from 16 to 23 and ECHO from 18 to 24 into the code only.
@wajadadkarim1708
@wajadadkarim1708 2 года назад
it needs GPIO value not pin number
@JellyFoxYT
@JellyFoxYT 11 месяцев назад
@@wajadadkarim1708 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 6 месяцев назад
@@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 Год назад
Yes , You can add “while (True):” Then put your code after this sentence then it will run continuously
@leenavin2005
@leenavin2005 11 месяцев назад
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.
@nedsonbeulamw870
@nedsonbeulamw870 2 года назад
Thank you very much
@bliqtv2043
@bliqtv2043 3 года назад
What coding software did u use
@raspberrypimadeeasy
@raspberrypimadeeasy 3 года назад
The Raspberry Pi comes preloaded with Python which you can use to code
@thefishersfisher2378
@thefishersfisher2378 3 года назад
Terminal or thonny that come preinstalled into the pi
@siddharthgarg6641
@siddharthgarg6641 2 года назад
@@thefishersfisher2378 idk if you still need it but it's a command line text editor called GNU Nano
@wajadadkarim1708
@wajadadkarim1708 2 года назад
working
@FHCRT2
@FHCRT2 4 месяца назад
not working
@raspberrypimadeeasy
@raspberrypimadeeasy 4 месяца назад
@FHCRT2 can you provide more details on what's not working ?
@FHCRT2
@FHCRT2 4 месяца назад
@@raspberrypimadeeasy It does not work
@raspberrypimadeeasy
@raspberrypimadeeasy 4 месяца назад
@@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 4 месяца назад
@@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 Год назад
Did you film with potato?
Далее
ROBLOX TRAND AGAIN. Part 7☠️🗿🙋🏻‍♀️
00:16
How To Control A Standard Servo With Raspberry Pi
7:40
Raspberry Pi 5: Getting Started
24:43
Просмотров 373 тыс.
Effective Ways To Detect People With Common Sensors
7:43
12 Brilliant Cyberdecks to try using Raspberry Pi!
8:53
How to interface ultrasonic sensor with Raspberry Pi
14:26
Raspberry Pi Weather Station
21:42
Просмотров 295 тыс.
ROBLOX TRAND AGAIN. Part 7☠️🗿🙋🏻‍♀️
00:16