If you missed this week’s Python on Microcontrollers Newsletter, here is the ICYMI (in case you missed it) version.
To never miss another issue, subscribe now! – You’ll get a terrific newsletter each Monday (which is out before this post). 12,370 subscribers worldwide!
The next newsletter goes out Monday morning and subscribing is the best way to keep up with all things Python for hardware. No ads or spam, no selling lists, leave any time.
Looking for help with some coding issues I'm having. I'm fairly new to this but my project isn't the most complicated. I'm using a circuit playground express as my controller, circuit python for coding, a KY-040 encoder, and a 1156 LED bulb with a BA15S base. Here's what I'm trying to do:
I have a modular mechanical sculpture with linear functions that I'm trying to translate into variations in LED intensity. This happens in 44 different places across the sculpture and so I will have 44 identical setups of the hardware I listed above. In each setup the limits of the linear function will be different, moving as short as 3 inches and as long as 9 inches. I already have the encoder mounted appropriately and have been able to read the digital output on my serial feed.
What I'm now trying to do is two things. 1: take the encoder output data and translate it into led intensity, going from 0 to 100% brightness. And 2: program the A and B buttons to identify and set the limits of what is 0 and 100%. I.E. Once I have the mechanics assembled I want to be able to move the linear function to the lowest limit, press button A to reset the encoder position to 0 = zero light output. Then adjust to the highest limit and press button B to set whatever position the encoder is at to the maximum light output. The button functionality will allow the mechanics to be completely modular and not require unique code limits for each of the 44 iterations.
I don't have the bulbs attached yet so I would like to have the digital output be the variable for an on board LED in the meantime. Can anyone please assist with my coding? I have watched multiple videos about programming the buttons and none of them have seemed to work for me.
If you missed this week’s Python on Microcontrollers Newsletter, here is the ICYMI (in case you missed it) version.
To never miss another issue, subscribe now! – You’ll get a terrific newsletter each Monday (which is out before this post). 12,368 subscribers worldwide!
The next newsletter goes out Monday morning and subscribing is the best way to keep up with all things Python for hardware. No ads or spam, no selling lists, leave any time.
If you missed this week’s Python on Microcontrollers Newsletter, here is the ICYMI (in case you missed it) version.
To never miss another issue, subscribe now! – You’ll get a terrific newsletter each Monday (which is out before this post). 12,370 subscribers worldwide!
The next newsletter goes out Monday morning and subscribing is the best way to keep up with all things Python for hardware. No ads or spam, no selling lists, leave any time.
Hi everyone! This is the result of a passion project I've been refining over the last couple of years. Here is link to source code : https://github.com/code2k13/cp-cnn-extension . Repo also contains pre-compiled firmware for pi pico / W . Let me know what you think. I am actively seeking advice on clean integration with official circuit python build system, currently its very patchy !
I'm new to coding micro controllers, so fair warning. I'm looking to host a flask server on one device which takes requests from an esp32 running circuit python on the same network. Does anyone know how i could go about this? I've had success connecting to the server with my phone but not the esp32 unit where I get an ECONNRESET error.
Been building IoT projects every day for my #100DaysOfIoT challenge and kept running into the same problem — monitoring sensor data from ESP32/Pico 2W in a browser was always a mess.
So I built micropidash. real-time web dashboard in under 20 lines of MicroPython. No cloud, no framework.
Just shipped v2.0.0 with live sensor graphs — tested with DHT11 on Pico 2W, temp + humidity updating in the browser over WiFi.
I created an MCP server that lets Codex access a Raspberry Pi Pico running CircuitPython.
With it, Codex can inspect the board, read and edit files, deploy code, run programs, reset the Pico, and watch serial output. Since Codex already understands CircuitPython, it can help write real board-ready code, and it can even find the correct Adafruit libraries online and install them for you.
If you missed this week’s Python on Microcontrollers Newsletter, here is the ICYMI (in case you missed it) version.
To never miss another issue, subscribe now! – You’ll get a terrific newsletter each Monday (which is out before this post). 12,377 subscribers worldwide!
The next newsletter goes out Monday morning and subscribing is the best way to keep up with all things Python for hardware. No ads or spam, no selling lists, leave any time.
ThePython for MicrocontrollersNewsletter is the place for the latest news involving Python on hardware (microcontrollers AND single board computers like Raspberry Pi).
This ad-free, spam-free weekly email is filled with CircuitPython, MicroPython, and Python information that you may have missed, all in one place!
You get a summary of all the software, events, projects, and the latest hardware worldwide once a week, no ads! You can cancel anytime.
It arrives about 11 am Monday (US Eastern time) with all the week’s happenings.
And please tell your friends, colleagues, students, etc.
After days of debugging SPI pins and fighting display flicker, Day 79 is finally here!
A cyberpunk-style smartwatch face on a 1.28" round GC9A01 240x240 TFT display powered by ESP32, with a full boot animation sequence before showing the clock.
If you missed this week’s Python on Microcontrollers Newsletter, here is the ICYMI (in case you missed it) version.
To never miss another issue, subscribe now! – You’ll get a terrific newsletter each Monday (which is out before this post). 12,402 subscribers worldwide!
The next newsletter goes out Monday morning and subscribing is the best way to keep up with all things Python for hardware. No ads or spam, no selling lists, leave any time.
hi there! first time coder here. I'm a cosplayer who want to code a cool light/sound/smoke sword with circuitpython, and I need some help.
i watched video's, tutorials, everyting, but when I wanna code something, and try to save the code, my featherwing gives off a red light. even tho when I check the code, it says there are no errors. so there must be an issue. I just cant comprehend the complexity of it all and im losing hope. so any help is appreciated.
i have an adafruit rp2040 prop maker feather. which is connected to a NeoPixel RGB strip 60LEDs/1m black Adafruit 1461, and a non latching relay featherwing. the neopixel needs to have red light. the non latching relay featherwing is used as a button for a type c mini humidifier with 6 foggers, because the humidifier had a monetary type button instead of a latching type button. the humidifiers are connected to one battery, and the rest needs to go to another. it has one on/off switch. when the on/off button is pressed, all lights need to go on and be red. the humidifiers need to go on as well, and it must play a 16 bit audio file once. when the on/off button is pressed again, everything needs to shut off. I have pictures below and I will name all the pinouts below.
i wired the pins on the Adafruit RP2040 Prop-Maker Feather like this: the NeoPixel RGB strip 60LEDs/1m black Adafruit 1461 is pinned on neo pinout, the G pinout and the 5V pinout. the non latching relay featherwing is connected to the 6, the Rst, the 3.3v and GND. the button is connected to the G and the Btn, and the speaker is connected to the + and -
I am trying to use circuitpython for the first time with my ESP32-S3-WROOM-1 and I can't figure out the solution to a problem that has followed me since using micropython.
My code is as follows:
import board
import digitalio
pin = digitalio.DigitalInOut(board.IO10)
pin.direction = digitalio.Direction.INPUT
pin.pull = digitalio.Pull.UP# or Pull.DOWN depending on wiring
while True:
print(pin.value)
It compiles with no errors.
If I am using an ide such as Thonny or Mu, this will print true regardless if I have a wire straight from 3.3v or gnd directly into pin 10.
If I try this code in the Arduino lab for micro python, this will print false the moment the wire touches gnd. I don't understand if this is an issue with my programming or the way these editors are configured but I have yet to find a solution! Any help would be appreciated, its making me feel quite stupid lol
I would use the arduino editor but it doesnt read the circuitpython file system correctly and I would like to ensure I am doing this as correctly as possible because I would like to play around with making a hid device
Just wrapped up Day 78 of my #100DaysOfIoT challenge — built a DSM Smart Metering Prototype that automatically shifts non-critical loads during peak hours.
What it does:
Monitors real-time AC voltage & current (ZMPT101B + ACS712)
Detects peak hours and auto-cuts the heavy load (iron/100W bulb)
ThePython for MicrocontrollersNewsletter is the place for the latest news involving Python on hardware (microcontrollers AND single board computers like Raspberry Pi).
This ad-free, spam-free weekly email is filled with CircuitPython, MicroPython, and Python information that you may have missed, all in one place!
You get a summary of all the software, events, projects, and the latest hardware worldwide once a week, no ads! You can cancel anytime.
It arrives about 11 am Monday (US Eastern time) with all the week’s happenings.
And please tell your friends, colleagues, students, etc.
If you missed this week’s Python on Microcontrollers Newsletter, here is the ICYMI (in case you missed it) version.
To never miss another issue, subscribe now! – You’ll get a terrific newsletter each Monday (which is out before this post). 12,398 subscribers worldwide!
The next newsletter goes out Monday morning and subscribing is the best way to keep up with all things Python for hardware. No ads or spam, no selling lists, leave any time.
I am working on multiple RP2040 boards, I would love to rename them for better identification, any idea?
EDIT: Sorry, I forgot to mention I use the boards as MIDI controllers, connected via USB to my laptop. The boards are identified by my OS as "CircuitPy" "CircuitPy(1)" "CircuitPy(2)" I would love to identify them with custom names