Run Python on old Arduino modules

Old Dogs, New Tricks

© Lead Image © margaritatkahcenko, 123RF.com

© Lead Image © margaritatkahcenko, 123RF.com

Article from Issue 284/2024
Author(s):

Reuse your old Arduino hardware while learning Python.

Snek [1] is a tiny embeddable language that can run on processors too small for MicroPython. It supports about 20 of the older Arduino modules (e.g., Duemilanove, LilyPad, Mega, Nano, and Uno), as well as Snekboard controllers and LEGO robotics projects that use the LEGO EV.

Snek is based on Python syntax, but it only supports a small subset of the full Python language. The Snek implementation on Arduino hardware allows you to build some enjoyable Python projects with just a few lines of code. The programming experience you gain in Snek can be used in larger Python 3 or MicroPython projects.

In this article, I introduce Snek by showing you how to install and set up some simple Arduino projects. None of these examples use more than 10 lines of code.

[...]

Use Express-Checkout link below to read the full article (PDF).

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

  • MicroPython and ESP8266

    An airboat project uses a standalone WiFi web server for remote control.

  • BBC micro:bit

    Designed for students, the BBC micro:bit, in conjunction with MicroPython and the Mu editor, can help you get started with microcontroller programming.

  • CircuitMess Nibble

    The Nibble kit by CircuitMess is a freely programmable mobile game console that makes getting started with microcontroller programming a breeze.

  • littleBits and Python

    Communicate with your littleBits sensors and devices through Python programs.

  • Sensor Data in SQL Tables

    If you need to store long-term historical data, you can cobble together some Arduino modules, sensors, and displays and get them all to talk to an SQL server.

comments powered by Disqus