APC

Robot object detection, side motion and video

PART 6

Our robot project comes to a mighty end!

YOU’LL NEED THIS

• Robot build from part five

• Pi camera

• Code and more from GitHub: https://tinyurl.com/ APC522robot

GENIUS TIP!

Quick connections for motors and power can be made using a breadboard with screw terminals. But the quickest and safest solution is Wago terminals. Used in the electrical installation industry, these connectors create a common connection, so one GND becomes many, for example.

At the end of part five, our robot had been connected to the Anvil web service and was successfully controlled via a web interface. In this final part, we will unleash the robot in autonomous mode, where it can use its sensor to navigate the world around it. We’ll refine our motor.py module to add further debug features, before finally adding a special sliding mode for our mecanum wheels. We’ll also take a quick look at a video-streaming Python script from Raspberry Pi which will let us view what our robot can see as it traverses the kitchen floor.

Using the sensors

The primary sensor for this build is an HC-SR04P ultrasonic sensor. These are what typically feed your parking sensors. You’re reversing the car and you hear a “beep, beep, beep” and then as you get nearer to the garage door you hear “BEEP!” That is an ultrasonic distance sensor. It sends a ping of ultrasound at 34,300cm per second (the speed of sound), then waits for the returning echo. The time taken for the ping to

You’re reading a preview, subscribe to read more.

More from APC

APC8 min readIntelligence (AI) & Semantics
Working With Robots: Will It Make Us Lazy?
We explore the trends and technologies that are set to shape the future Robots make us lazy. Not because Roombas are vacuuming our houses, but because humans have a habit of slacking off when sharing tasks. That’s according to recent research that h
APC2 min read
Reviews
35 Asus Zenbook 14 OLED 36 Acer Helios Neo 18 37 Samsung 990 Evo 38 MSI MPG 321URX QD-OLED 39 Samsung Odyssey G9 OLED 40 Benq XL2546X 41 Thermaltake Tower 300 Micro Case 42 Sapphire 7600 XT 43 Sapphire Nitro+ RX 7900 GRE 45 XP Pen Artist Pro 16 44 Wa
APC3 min read
Asus Zenbook 14 OLED (UX3405)
PRICE $2,399 WEB asus.com/au Asus has been putting out some cracking laptops in recent years, and while the Zenbook 14 OLED isn’t perfect, it offers a compelling range of features for a quite reasonable price. The UX3405 sits in the diverse Zenbook

Related Books & Audiobooks