Python on Hardware Means Choices for Makers #Python #CircuitPython #Makers @apress @BlitzCityDIY

Python on Hardware Means Choices for Makers

Liz Clark on the Apress Blog writes: Python on Hardware Means Choices for Makers

It’s clear that the Python programming language is having a moment right now. Statistics are showing it as having widespread adoption among programmers making it one of the fastest growing programming languages. While it can be easy to surf along on the hype wave, Python does have concrete benefits and unique features that drive its growing appeal.

Easy to Learn 

Easy is an extraordinarily subjective term, especially when used in a technological and educational context. What comes naturally to one person may be a struggle for another. However, as programming languages go Python does seems to check off the “easy” box in the learning curve department. Its syntax is straightforward, and a bit plain compared to other languages, making it appear less menacing to coding newcomers. More experienced programmers also benefit from this. Having already navigated their first programming lessons, and undoubtedly a few bugs, they can use their skills to hit the ground running with Python.

Open Source Community

If the surface level ease of use isn’t enough, there are countless open source resources to reference for Python in the form of books, online repositories and forums. The other unique strength of Python is the community – a community that is passionate and ready to share and contribute in the spirit of open source. If the documentation isn’t enough to get you through a challenging few lines of code, then chances are there is someone in the community willing to help or point you in the right direction.

For the Maker

With these two main attributes in mind, it makes sense that Python is now beginning to grow in popularity among makers (hobbyists who create projects with software and electronics.) It first became common to hear of Python used in these homebrew projects on single-board computers (SBCs) running Linux, since you could, of course, run Python programs in a desktop Linux environment. SBCs also usually have breakout pins, or GPIO, that could be controlled with Python scripts, allowing Python to control hardware.

Python has also been ported to microcontrollers (MCUs), with popular choices being MicroPython and, now, CircuitPython (a fork of MicroPython that is designed from the ground up to be beginner friendly.) This allows end users to use Python for their electronics hardware projects similar to how they may have used C/C++ with the Arduino IDE. This brings the same benefits from the Python programmer side of things to the maker community in an even more dramatic way. Blinking an LED is considered to be the electronic community’s “hello world” equivalent. This can be achieved in CircuitPython with a couple of lines of code that are straightforward and easy to read, making the barrier to entry for beginners to both hardware and software much lower.

If nothing else, the proliferation of Python on hardware, whether it be on a SBC or MCU board, gives makers choices for their projects. Before the main decision was, “Which board should I use?” Now, a maker can draw comparisons between boards and code languages, choosing the combination that best suits their needs based on hardware specs and software library support.

This shift in options and community support for Python on hardware is why I chose to focus the projects in my book, Practical Tinker Board, towards Python. I think that for makers, the Python hype train has arrived. While it may not be the answer for every project, it’s definitely an exciting time to explore Python and as a result join in the growing open source community for Python on hardware.

Read the blog post here, contributed by Liz Clark, author of the book Practical Tinker Board.

cover

The Adafruit contributed library Blinka provides CircuitPython support for single board computers. See the CircuitPython GitHub repository for more on what SBCs have been supported and contribute your ports.

Are you interested in Python on hardware? Let us know in the comments below.


Adafruit publishes a wide range of writing and video content, including interviews and reporting on the maker market and the wider technology world. Our standards page is intended as a guide to best practices that Adafruit uses, as well as an outline of the ethical standards Adafruit aspires to. While Adafruit is not an independent journalistic institution, Adafruit strives to be a fair, informative, and positive voice within the community – check it out here: adafruit.com/editorialstandards

Join Adafruit on Mastodon

Adafruit is on Mastodon, join in! adafruit.com/mastodon

Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 36,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


Maker Business — Philips, an electronics giant, has faded from its former glory

Wearables — You’re a gem

Electronics — Copper keepout!

Python for Microcontrollers — Python on Microcontrollers Newsletter: 100 CircuitPython Community Libraries, a New Arduino UNO and much more! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

Adafruit IoT Monthly — Boxing Glove Tracker, Disconnecting Smart Appliances, and more!

Microsoft MakeCode — MakeCode Thank You!

EYE on NPI — Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 3/31/2023 Featuring Adafruit Feather RP2040 RFM69 Packet Radio – 868 or 915MHz – RadioFruit and STEMMA QT! (Video)

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.