APC

Building a web-based robot control interface

PART 5

Don’t miss next issue, subscribe on page 20!

YOU’LL NEED THIS

• All of the code for this project, circuit diagrams and images can be downloaded from this GitHub repository:

https://github.com/lesp/ Linux-Format-Robot/archive/refs/heads/main. zip

By the end of part four, we had successfully built our robot from a kit, tested the motors and looked at a number of sensors, then we learnt how to use a Bluetooth controller. All of the previous parts are building up to our robot becoming complete in the final sixth part.

For this section of the build, we are going to learn how to use a free web service called Anvil (https://anvil.works). The Anvil service is where we can develop web apps in pure Python. Using an uplink, we will connect our robot to a custom-created web interface and then use that interface to control our robot.

This might sound a little scary right now, and while Anvil does have a learning curve, fear not! Anvil is extremely easy to use once you understand how it works. With that in mind, let’s get started.

"As Anvil is based in the cloud, we can access and create projects from any web-enabled device."

Hammer the Anvil

As Anvil is based in the cloud, we can access and create projects

from any web-enabled device. As we’re using a Raspberry Pi 4 for the robot, open a Chromium browser and visit https://anvil.works/. Click on Pricing or Start Building to sign up for a free account.

Anvil works by creating ‘apps’. These are all web-based,

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

More from APC

APC3 min read
Asus Dual RTX 4060 Ti SSD
PRICE $779 WEB www.asus.com It’s one thing to release an RTX 4060 Ti 8GB model with a factory overclock or a marketing tie-in, but one with a built-in SSD slot? That’s something else entirely. Asus has done just that, creating an RTX 4060 Ti 8GB wit
APC3 min read
Create Engaging Slideshows
IT WILL TAKE 10 minutes YOU WILL LEARN How to navigate the changes to the TV app made in tvOS 17.2 YOU’LL NEED An Apple TV running tvOS 17.2 Keynote has long been a powerful tool for creating compelling presentations but now there are even more re
APC9 min readSecurity
How Do You Know If You’ve Been Hacked
Cyberattacks don’t look like you might expect – and they certainly don’t look like they do in the movies. If your security is compromised, you probably won’t see a big flashing sign saying “YOU HAVE BEEN HACKED”, or weird skull-and-crossbones graphic

Related Books & Audiobooks