Learning CircuitPython with Circuit Playground Express

Learning CircuitPython with Circuit Playground Express

1h 45mIntermediate2021-02-24

Authors

Robert Gallup

Robert Gallup

Technologist, Designer, Maker, and Speaker

Course details

Python is coming to the Internet of Things. That opens vast possibilities, but you need to learn to apply Python differently on the constrained resources of microcontrollers. In this course, instructor Robert Gallup walks you through how to get started, control hardware, add interaction, and connect external components. Robert introduces you to the purpose, background, and limitations of CircuitPython and shows you how to write and upload your first script. He explains the basic elements of a microprocessor, then steps through identifying components on the Circuit Playground Express (CPX) board, controlling the CPX onboard LED, and controlling NeoPixels on the CPX. Robert shows you how to add several different interactions with the CPX. He concludes by showing you how to connect external components, such as a potentiometer and external libraries.

Skills covered

ElectronicsMicrocontrollersHardwarePythonLearningProgramming LanguagesOpen SourceSoftware Development

Concepts

Introduction

  • Addressing hardware with Python
  • What you should know

CircuitPython First Steps

  • CircuitPython overview
  • Connect the Circuit Playground Express
  • Run programs on Circuit Playground Express CPX
  • Set up an editor
  • Your first script
  • Challenge
  • Solution

Controlling Hardware

  • Microcontroller principles
  • The Circuit Playground Express CPX
  • Controlling the CPX onboard LED
  • More controlling the CPX onboard LED
  • Meet the REPL
  • NeoPixels intro
  • NeoPixels programming
  • NeoPixels advanced programming

Adding Interaction

  • Using buttons and the switch
  • Making sounds
  • Sensing temperature
  • Using the accelerometer
  • Responding to touch

Connecting External Components

  • Understanding basic circuits
  • Using a potentiometer
  • External libraries
  • Using external libraries
  • Additional external components

Conclusion

  • Next steps
40,000 Toman