Robotics Programming: Ultrasonic Sensor | Object Following Arduino Robot

In today's Robotics Programming lab we will examine how to install and use an Ultrasonic sensor. We will learn how to write a program to communicate with and operate the sensor, and use the data proved to provide our robot with the distance to objects. We will then use this knowledge to create an object following behavior for our Arduino based robots.
Throughout this series we will be introducing topics on building and programming an autonomous mobile robot! You can follow along with each lab adding amazing new behaviors to you robot projects and learning the algorithms and tuning techniques that produce incredible robots! We will be exploring reactive algorithms such as PID, Potential Fields and A*. Along the way you will learn how to program behaviors such as object following, wall following, standing / balancing, go-to goal and object avoidance. This series is intended to allow you to follow along with your own robot.
Code access: Direct access to source code and additional resources are available by becoming a Coding Coach supporter. You can join and learn more here: codingcoach.net/sponsor . You may also copy the code from the video as you follow along.
If you missed episode 1, you can find it here: • Robotics Programming: ...
The next video in this series: • Robotics Programming: ...
Playlist of the full series: • Robotics Programming Labs
Video that discusses the future direction of the series: • Robotics Programming: ...
Chapters:
0:00 Introduction
0:48 Robot Hardware Discussion
1:43 Sensor Mounting
3:30 Sensor Wiring
4:50 1st Program - Use and Read the Sensor Data
19:49 2nd Program - Object Following Behavior
33:41 3rd Program - Extra: Fine Motor Control
37:28 Conclusion
#codingcoach #arduinorobot #roboticsprogramming
Pololu 3pi+: www.pololu.com/category/280/3...
Other robots and sensors (Amazon Affiliate links)
HC-SR04 Ultrasonic Sensors: amzn.to/2YUIvGs
Elegoo Smart Car: amzn.to/3iG3uFO
Robot car chassis (with encoder cutout): amzn.to/3odlacY
Pololu Zumo: amzn.to/39TbaAC
Batteries:
EBL Rechargeable batteries: amzn.to/3pdiM7A
Micrometer Caliper Measuring Tool (To measure wheel diameter): amzn.to/3sQ0BqB

Пікірлер: 15

  • @surendrakumarsahoo9878
    @surendrakumarsahoo9878 Жыл бұрын

    Namaskar Sir. I am from India. I love the way you describe things. A lots of respect 🙏

  • @davidlk4947
    @davidlk49473 жыл бұрын

    Hi, thank you for the very helpful videos. I'm really enjoying getting started in programming these devices. Thanks!

  • @CodingCoach

    @CodingCoach

    3 жыл бұрын

    You are welcome!

  • @showtopboxcouk
    @showtopboxcouk3 жыл бұрын

    Thanks I appreciate your kindness

  • @CodingCoach

    @CodingCoach

    3 жыл бұрын

    Any time!

  • @MakingRoboticsColombia
    @MakingRoboticsColombia3 жыл бұрын

    🎈 Muy bonito ese 3pi+ 🥇

  • @ChinchillaBONK
    @ChinchillaBONK2 жыл бұрын

    Thanks for this

  • @CodingCoach

    @CodingCoach

    2 жыл бұрын

    You’re welcome!

  • @michaelhucul6071
    @michaelhucul60713 жыл бұрын

    Excellent approach to presenting this information - especially explaining the importance of using the component datasheet(s). Are you posting your code anywhere?

  • @CodingCoach

    @CodingCoach

    3 жыл бұрын

    Thank you, I thought this was a great opportunity to show how you actually control sensors hardware and how the electrical signals are read. I have been going back and forth in my head on providing code and have not yet primarily because I am hoping it promotes students just starting out to transcribe it themselves. My fear is that many beginning students just open / run the code when it is provided. I do realize there are also many who are not beginners who appreciate the availability of the code and not having to retype everything. I also realize that simply transcribing the code is a minor step but I hope that in combination with having the tune the robot it will help make connections for them. I might make use of that 'community' tab that you tube just granted me and create a poll for this :) Thank you for you comment!

  • @rushikeshdeshmukh3810
    @rushikeshdeshmukh3810 Жыл бұрын

    Kudos to you for making so detailed videos. I'm working on a differential drive robot with quadrature shaft encoder motors and requires PID to control the motors. It seems that Pololu's robot doesn't need PID for motor control and hence millis strategy working in your case. It seems ineffective in my case. Could you please suggest something? Also, your Henry IX robot is pretty much identical with the robot I'm working on. When are you planning to make the next video on it? or could you please at least share a code for the same?

  • @solomonglenda6811
    @solomonglenda68112 жыл бұрын

    . I love the way you explained everything, and your video presentation..very professional! But I just want to be sure about one thing. The Robot only follows one user who holds the other ultrasonic sensor and not just random objects right?

  • @briancoppola7317
    @briancoppola73173 жыл бұрын

    Where dida you find the sensor's user manual?

  • @CodingCoach

    @CodingCoach

    3 жыл бұрын

    www.google.com/url?sa=t&source=web&rct=j&url=web.eece.maine.edu/~zhu/book/lab/HC-SR04%2520User%2520Manual.pdf&ved=2ahUKEwj00vb7hJjvAhVlleAKHQIqAtEQFjADegQIDxAC&usg=AOvVaw1Ixcw2jrWxFgQHXN_nkaoZ

  • @dhruvaseri2082
    @dhruvaseri20823 ай бұрын

    @coding Coach, please provide us with the source code