Raspberry pi with Python for Robotics 12 - Autonomous beginnings

preview_player
Показать описание

In this video we cover the code necessary for turning our Raspberry Pi robot car into a somewhat autonomous robot that moves around and avoids objects. To do this, we have an HC-SR04 ultrasonic distance sensor on the front, which will notify our car whenever we are close to running into an object. From here, we program the car to handle these events.

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6
Рекомендации по теме
Комментарии
Автор

This video series is AWESOME !!! Thank you so much for taking the effort to make this and share your skill and knowledge with us.

cyz
Автор

I just stumbled on these videos is there walk through to get the robot to follow you? I'm trying to print a r2d2 like Droid and was originally thinking of doing R/C, but autonomous follow would be so much cooler.

NightWolfa
Автор

Hii!
Amazing. i am a python beginer how long it take to make a car like this?

gowtham
Автор

Hey @sentdex is there a way to implement reinforcement learning in this like the one you're implementing with the help of Carla in your recent videos. Thanks

mukeshiyer
Автор

I have a question, how can we manage to use the sensors as well as the motors using threading/multiprocessing? I am building a side project auto parking, I would like to do everything in sync

batman
Автор

have you added rear sonic sensor yet  or have used seeedstudios 3-pin sensor?

jamesmartel
Автор

for the commented code will I need to un-comment to in order to make robot fully run?

funnygum
Автор

hello my dear - that looks great: i love it: can we have the code plz.!? Love to hear from you!

martinkaspar
Автор

i try to run the new sensor.py script and it said there is a problem with the letter t please help.

markrothwell
Автор

Hi @sentdex,
I am following your tutorial and I'm getting the following error:
File "/usr/local/lib/python2.7/dist-packages/rrb2.py", line 58, in set_motors
GPIO.output(self.LEFT_DIR_PIN, left_dir)
ValueError: The channel sent is invalid on a Raspberry Pi

LiLMaNSerG
Автор

H @sentdex, just above where you commented out print distance, you added a few lines of code. I have copied it exactly and where you have used the, 'except:' function it does not seem to work for me. when i try to run the script i get an syntax error saying:


Traceback (most recent call last):
File "robot6.py", line 5, in <module>
from sensor import distance
File "/home/pi/robotics/sensor.py", line 28
except:
^
SyntaxError: invalid syntax


I try to run


File "sensor.py", line 28
except:
^
SyntaxError: invalid syntax



If you know what the problem is i would greatly appreciate your advice, anyway love the vids and keep up the good work. :)

MRCALLUMGAMES
Автор

Hi, an urgent question here, I can't seem to import sensor as it is not in the module library, even after i downloaded the PySensor module online. Anyone help me?

ongchilli
Автор

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

waleedaiad
Автор

what am i supposed to do if i want the sensor to read the distance continuously and print it out?

ahmednouman
Автор

I don't believe that programming is SO easy.🤓

hiwotyirgu
visit shbcf.ru