APC

Controlling the Pi from a web-based app

We’re going to create a web interface using Anvil that uses just Python. This interface will enable us to control real components: a red and blue LED along with a buzzer, connected to a Raspberry Pi.

The hardware build for this project is just two LEDs, one connected to GPIO17 and the other to GPIO27. We used a 330 Ohm resistor to connect each LED to the GND pins of a Raspberry Pi 4. The buzzer is connected to GPIO22 and GND, and requires no resistor. Please see the diagram in the download for this project for detailed

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