Controlling microcontrollers over USB with the Web Serial API

Under Control

© Photo by Johnny Briggs on Unsplash

© Photo by Johnny Briggs on Unsplash

Article from Issue 276/2023
Author(s):

Upgrade your computer with LEDs, buttons, or sensors to control a microcontroller board over USB from your web browser.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Tracking Planes

    Curious about the planes that fly over your home? With some simple and affordable equipment, you can receive their ADS-B signals and uncover detailed flight information.

  • USB and Microcontrollers

    Learn how to enable a microcontroller's USB interface and exchange data with a host Linux machine. We'll first emulate a serial port, then build a pen-drive-type device, and finally create a fully custom data transfer interface.

  • Meshtastic

    Want to communicate without relying on mobile networks? Meshtastic lets you create your own off-the-grid wireless mesh network with an inexpensive LoRa device and an Android phone.

  • Bluetooth Communication

    We use a Raspberry Pi, a Pi Pico, and a smartphone to communicate over Bluetooth.

  • Perl: Arduino Project

    With a few lines of self-written firmware and a simple Perl script, Perlmeister Mike Schilli trains one of his Linux computers with a plugged in Arduino board to switch electrical equipment on and off using a relay. Enchanting.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News