MENU

Fun & Interesting

The Cheapest Microcontroller? Getting started with the 10 cent Puya PY32.

Zach of All Trades 69,712 1 year ago
Video Not Working? Fix It Now

The Puya PY32 is an amazingly cheap 32-bit microcontroller with an ARM Cortex M0+ core. These parts can be had for under 10 cents each in modest quantities, making projects requiring large numbers of microcontrollers affordable for us DIYers. This video gives a brief introduction to the Puya PY32F0 series of microcontrollers, starting first with the benefits and drawbacks. I’ll then discuss the four options available and their respective features and cost. Next, I’ll go over the software and hardware tools needed to develop code and program these, including details on how to set up the software. Finally, I will show two demonstration codes to prove that these microcontrollers work as advertised and are relatively straightforward to use. First, I’ll do a classic blinking LED test using the onboard LED and one of the timer peripherals. The second example will use the internal analog to digital converter (ADC) to read an analog voltage and send the result out over the serial UART peripheral. Check out these previous videos where I’m putting the PY32 to use: Programming the PY32 for the tile backsplash project: https://youtu.be/wtv82TfahRA Introduction to the smart LED tile backsplash project: https://youtu.be/3QHFTsDGk6E Chapters: 00:00 Introduction 01:40 Why you might want a 10 cent microcontroller 06:12 The PY32 options 08:43 Getting started with uVision 13:53 Blinking an LED with a timer example 16:55 Reading an analog voltage and sending the result over UART example 19:42 Conclusion The code used in this video can be found in this repository: https://github.com/AllTradesZach/PY32-Examples The microcontrollers can be procured from LCSC here: https://www.lcsc.com/products/Microcontroller-Units-MCUs-MPUs-SOCs_11329.html?keyword=PY32 The development board: https://www.lcsc.com/products/Development-Boards-Kits_11135.html?keyword=PY32 Some of the tools I’m using in this video can be found here: ST Link V2 Clone: https://amzn.to/4arg6u1 Official ST Link V3: https://amzn.to/4auZe5G Quality Breadboards: https://amzn.to/43wJw82 As an Amazon Associate I earn from qualifying purchases.

Comment