All posts by admin

Robotics Training LESSON 18: Obstacle Detection and Collision Avoidance

In this lesson we explore using the HC-SR04 to detect obstacles, and then avoid collisions by stopping the car. This requires a more sophisticated control algorithm for the desired distance for the car to travel. Making it even more tricky, after the obstacle is removed, the car needs to resume its programmed mission. The video shows my solution to this problem

 

Robotics Training LESSON 17: Measuring Distance to Obstacle using the HC-SR04


In this video lesson we show how to use the HC-SR04 ultrasonic sensor to detect the distance to obstacles in a robotic application. We use the sensor to measure the time it takes for a ping to travel from the sensor, to the target, and then back. We use this measured time, and the known speed of sound to calculate the distance to the target. This will be used in future lessons to keep the robot from running into an obstacle.

 

Robotics Training LESSON 16: Using the HC-SR04 Ultrasonic Sensor for Echolocation

In this lesson we explain the concept of echolocation, and how the HC-SR04 ultrasonic sensor can be used to measure the time it takes a ping to go out, bounce off a target and come back. From this ping travel time, it is possible to  precisely calculate the distance to the target. For your convenience, the code we developed is included below.

 

AI on the Jetson Nano LESSON 62: Create a Streaming IP Camera from a Raspberry Pi Zero W

In this lesson we learn to make a streaming IP camera with a Raspberry Pi Zero W, and Raspberry Pi camera. The Pi will create a RTP stream, which can then be read by a Jetson Nano on the same network. We use OpenCV to read the frames on the NVIDIA Jetson Nano side.

This is the command to launch the Raspberry Pi camera, and start the RTP stream. This command works well for the Raspberry Pi Camera, version 1.

For the Version 2 Camera, I recommend:

This is the Gstreamer code on the Jetson Nano side to grab the RTP Frames. On host= below, be sure to use the IP address of your Raspberry Pi.

 

 

AI on the Jetson Nano LESSON 61: Image Recognition and Speech (TTS) on the Nano

In this video lesson we learn how to add speech to our NVIDIA Jetson Nano we demonstrate how the Jetson can not only recognize an item, but can audibly speak the item it sees. The video takes you through the process step-by-step, and shows you how to make it all work together properly. For your convenience, the code we developed is included below.