0

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.


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, or even use Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for MakeCode, CircuitPython, 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.

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

CircuitPython 2019!

Have an amazing project to share? The Electronics Show and Tell with Google Hangouts On-Air is every Wednesday at 7:30pm 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!

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/


Maker Business — SiFive is a startup to pay attention to. RISC-5 is here to stay.

Wearables — Swatch it up

Electronics — Shift away from basic arithmetic

Biohacking — Neuralink – A Closer Look at the Tech

Python for Microcontrollers — CircuitPython takes flight! All aboard with datum, Bluefruit CPX, and more! #Python #Adafruit #CircuitPython #PythonHardware @circuitpython @micropython @ThePSF @Adafruit

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.