What are MicroPython and CircuitPython?
- So, let’s talk about MicroPython ! It’s basically a lighter version of Python, super cool for embedded systems where you don’t have all the bells and whistles of a desktop computer.
- Instead of the usual coding languages like C that most people use for these types of projects, MicroPython lets you whip up some Python scripts to control your hardware – how awesome is that? Now, the focus here will be on CircuitPython , which is a variant of MicroPython designed by Adafruit.
- They’ve really fine-tuned it to make programming hardware easier and more user-friendly.
- Think of CircuitPython as a version of MicroPython, but it’s been adapted specifically for simplicity..
What’s the nrf-52840 Development Kit all about?
- Let’s dive into the nrf-52840 Development Kit, shall we? This cool kit from 01 Studio, available through DeviceMart, uses CircuitPython to control all sorts of hardware.
- At the heart of it is the nrf-52840, which packs a popular Bluetooth chip, making it super easy to control things like LEDs with just Python code.
- You’ve got options, too, with modules for GPIO and an MCU, plus you can update your Python code via Jlink or USB.
- For those looking to expand their projects, it comes bundled with a Jlink programmer and additional components divided into three handy packages.
- We’re focusing on the Bundle 3 standard package and trust me, this kit has some exciting features—like built-in NeoPixels and buttons—just waiting for you to explore.
- It even opens the door for connecting to expansion boards for more fun with peripherals and sensors!.
How to Set Up CircuitPython on nrf-52840?
- Setting up CircuitPython on your nrf-52840 is easier than you might think! First, swing by the CircuitPython page where you can search the download section for boards compatible with the nrf-52840.
- You’ll want to grab the firmware made just for it so that you get the best performance possible.
- Once you hook up your board to your PC using the Micro-B USB port, you’ll see a drive pop up named CircuitPy.
- This means you’ve successfully got the CircuitPython environment all ready to roll! To keep things fresh, don’t forget to check the Boot-out.txt file on the drive to confirm which version is installed..
What are the basics of CircuitPython programming?
- So, let’s dive into some fundamental programming concepts using CircuitPython! In the example we’re looking at, we’re making an LED blink and displaying “Hello World,” all while controlling hardware components.
- To get started, we first import the Digital In Out library and set the pin mode—this step is super important for managing hardware.
- We then configure the module’s LED as an output, making it blink every second.
- This blinking acts as a handy visual cue that shows us the module is up and running.
- Plus, this setup makes it really easy to keep an eye on things and troubleshoot, since you can see the LED’s blinking pattern change as you tweak the code.
- We’re also using standard Python functions like Print and Sleep to make it all work smoothly with the nrf-52840 kit..
What learning opportunities lie ahead?
- And just like that, the session wraps up with an exciting hint at more ways to control CircuitPython using the nrf-52840 kit in future chats.
- The speaker is really looking forward to the next gathering, teasing a continuation of this incredible learning adventure..