Questions tagged [circuitpython]

CircuitPython is a programming language designed to simplify experimenting and learning to code on low-cost microcontroller boards.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Multi threads ADC read and save on local file rpi pico

im trying to create a voice recorder using max9814 and raspberry pi pico with circuitpython/micropython and my problem is when it saves the recordings on .wav file some parts of the audio loses ...
Alirezaarabi's user avatar
0 votes
1 answer
30 views

Extend Circuitpython with C modules

I'm trying to follow this article but it's very outdated https://learn.adafruit.com/extending-circuitpython/inside-the-virtual-machine The last part of how to hook the example mymodule. The files ...
utiq's user avatar
  • 103
0 votes
0 answers
19 views

Rpi4 as a mouse and keyboard hid with circuit python to a win10 pc

0 I am looking to control a windows 10 computer with a raspberry pi4, as a mouse and keyboard. I already have the power thing handled, with a usb power blocking but data through connector. I am just ...
partyexpress's user avatar
-1 votes
1 answer
32 views

'rose' and 'fell' in same keyboard script - pico/circuitpython

I have a reed switch (normally closed) attached to a Pico that when open send two key presses to the PC. I need a third key press to be sent when the switch is returned to the closed position. My ...
Nick C's user avatar
  • 93
0 votes
1 answer
118 views

WS2812B LED strip problems

For starters, I'm using a generic 5 meter, 30 pixels/meter, 5V WS2812B LED strip. I've got a 5V/20A (100W) power supply as well. I'm using the adafruit-circuitpython-neopixel library, and my code I've ...
Devin Gardner's user avatar
0 votes
1 answer
44 views

Detecting the OS of host pi pico w circuit python

I am planning to create a macro keyboard that is compatible with Windows, Mac, and Linux. To achieve this, I need to detect the type of operating system and perform different key codes accordingly. I ...
Nani samireddy's user avatar
0 votes
1 answer
114 views

ModuleNotFoundError: No module named 'rotaryio'

I recently went through the process of installing Adafruit-Blinka on a Raspberry Pi. The intent was to gain access to the 'rotaryio' module included with Circuitpython. After I went through the ...
Brian McMillion's user avatar
0 votes
0 answers
82 views

Can't read temperature from Adafruit RTD 3 wire sensor and max31865 chip

I'm trying to read temperature from a 3-wire PT100 sensor and max31865 chip. The chip has the correct jumpers soldered to define it as 3 wire. I have tried to follow these instructions as closely as ...
tomh's user avatar
  • 135
0 votes
1 answer
47 views

Why My Spi Connection Is Not Getting started?

Hello Guys I Am New To Embedded & Rasberry PI. So In Order To Understand SPI Connection I Made An PI-PI SPI Setup PS. I am Using Two Rasbrry Pi Model 4 B with Raspi OS & i did the followings ...
Its_MEDev's user avatar
0 votes
0 answers
113 views

CIRCUITPYTHON drive not showing on rear USB ports

So I have a Raspberry Pi Pico running circuitpython and other prerequisites for the pico rgb keypad, and as shown in the title above, for some reason the circuit python drive only shows and the ...
fozzy's user avatar
  • 1
0 votes
1 answer
190 views

Playing audio on a Waveshare audio module

I've bought a Pico Audio module - assuming, maybe incorrectly, that being built to fit the Pico, speakers included etc it would be reasonably straightforward to get it working. https://thepihut.com/...
Oli's user avatar
  • 101
0 votes
0 answers
349 views

How would I get audio input to a pi pico?

I’m trying to make an audio visualiser with the pi pico, and I want to connect it to my computer. I need to read the audio from the computer to do this. I could use an audio jack, but I can’t find ...
Commodore 64's user avatar
0 votes
1 answer
1k views

ModuleNotFoundError: No module named 'digitalio' HELP

I have been following a YouTube tutorial on how to setup the Raspberry Pi Pico H as a midi device. While programming, I came accross an error ModuleNotFoundError: No module named 'digitalio'. I'm ...
Pixel's user avatar
  • 1
0 votes
0 answers
242 views

Raspberry pi pico Write-Protected

I installed circuitpython on my Raspberry pi pico. I wrote a very simple code inside code.py and disconnected, and connected it again so I could test the code. The code worked fine but after that, I ...
ksap's user avatar
  • 21
-1 votes
1 answer
530 views

Raspberry pi pico with circuitpython code.py not running

I used This tutorial to create to run circuitpython on a Raspberry pi pico. I'm not trying to make a back USB as it's shown in the video, but I figured this tutorial was very good so I used it to ...
ksap's user avatar
  • 21
3 votes
1 answer
482 views

I accidentaly lightly hit my bread board with my pi pico and ili9341 on it now the ili9341 is just white

So i was in my chair and i clicked run script and when i got up i tripped and lightly hit my breadboard and then the screen (ili9341) went white. Before i hit it, it was working but not anymore. I ...
PythonKid's user avatar
0 votes
1 answer
339 views

Pi Pico giving error when trying to enable custom hid device

The following is my boot.py file. It's a copypaste from adafruit site. import usb_hid GAMEPAD_REPORT_DESCRIPTOR = bytes(( 0x05, 0x01, # Usage Page (Generic Desktop Ctrls) 0x09, 0x05, # ...
REVOLUTION's user avatar
2 votes
2 answers
482 views

Is the waveshare 2.7 e-paper HAT ink display the right display for a pico?

I'm very new to programming on raspberry pi's and I haven't coded anything in about 5 years so bear with me. My company is asking me to connect a 2.7 e-paper hat INK display to a raspberry pi pico. I'...
anon512's user avatar
  • 31
1 vote
2 answers
990 views

problem with adafruit-blinka

I tried to install python3.7 and made it the default python version. Now I'm trying to install this: pip3 install adafruit-blinka and I get this error Collecting adafruit-blinka Collecting rpi-ws281x&...
BiLLaKoS's user avatar
1 vote
0 answers
122 views

Python code not working: Programming a motor to turn on using a switch (Raspberry Pi)

HELP! Ideally within the next 24hrs PLEASE!!!!! We have a simple circuit where we have a button, that when pressed, starts a motor that needs to run at a certain speed for a certain amount of time. (...
eayag13's user avatar
  • 11
1 vote
1 answer
269 views

raspberry pico, circuitpython and how to receive mqtt feeds reliably while showing time on pico

I am building a clock using rpi pico, max7219 and wiznet5k. I am trying to incorporate mqtt functionality, in order to show important short messages to the max7219 every now and then. I have run into ...
thermike's user avatar
1 vote
0 answers
53 views

adafruit_hcsr04 sonar not working on certain GPIO pins Pi 4 B

I have 8 adafruit_hcsr04 range finders wired in the exact same way to a Raspberry Pi 4 but only 4 of them work and I'm at a loss. I've verified with an ohmmeter the echo and trigger pins are ...
bsautner's user avatar
  • 218
-1 votes
1 answer
271 views

PCA9685 detected on Command Line, but not by Python

I'm trying to hook up a SC90 servo to my Pi3 B using a PCA9685. I think I have it connected correctly, because I get correct i2cdetect results. pi@raspberrypi:~ $ i2cdetect -y 1 0 1 2 3 4 5 ...
Aharon K's user avatar
  • 101
-1 votes
1 answer
469 views

Problem using adafruit-rfm96w Lora transceiver

I'm new in programming and for a project I actually need to deal with 2 adafruit-rfm96w to transfer data between 2 Raspberry Pi(one Raspberry Pi 3, and one Pico). But I don't understand how to use the ...
SoyBoy's user avatar
  • 1
1 vote
1 answer
3k views

Circuitpython: ValueError: GP0 in use. How to reset GPIO pin?

Error Message After having written a function that sets output and values to specific GPIO pins, I'm running into the following error: ValueError: GP0 in use. Code The function is: def ...
a.t.'s user avatar
  • 171
0 votes
1 answer
772 views

Neopixel not working with Raspberry Pi Pico

My neopixels aren't working when I run them, I am using curcuitpython and using all libraries required import neopixel from adafruit_led_animation.animation.solid import Solid from ...
WellActually...'s user avatar
0 votes
2 answers
2k views

Possible to send data from a Pi Pico via USB while running CircuitPython?

I have a question on the interaction between Pi Pico, CircuitPython, and USB. I need a way to send a data stream from the Pico to another computer where it will be received on a USB port (it's the ...
0__'s user avatar
  • 502
1 vote
0 answers
282 views

MCP23008 Python Input Handler

How do I declare a Python callback handler method on a MCP23008 input pin? This Adafruit tutorial, which uses CircuitPython shows how to read input from the extended GPIO pin on the MCP23008, but does ...
JJ Zabkar's user avatar
  • 111
1 vote
0 answers
124 views

Pins of GPIO expander 'MCP23017' randomly turning on when connected to multiple motor drivers powering 3V dc motors

I have a MCP23017 GPIO expander connected to four DRV8833 dual channel Motor drivers. This setup is later meant to drive eight motors concurrently. I tried testing a few patterns and noticed that ...
Yes's user avatar
  • 169
1 vote
1 answer
522 views

CircuitPython Interface with I2C Device

I have an I2C device with address 0x62. I know this because I plugged it into my RPI 4B and ran sudo i2cdetect -y 1. I see the device, if I remove the device power and rerun the command, the device is ...
Michael Miner's user avatar
0 votes
1 answer
1k views

Detecting connection between two arbitrary GPIO pins on Pico [closed]

I wrote a code that I run in Thonny which detects if a connection is made between the 3.3V output and a GPIO pin on the Raspberry Pico: print("Hello World!") import time import digitalio ...
a.t.'s user avatar
  • 171
0 votes
1 answer
491 views

CIRCUITPY on RP2040 Won't Reboot and Run code.py

I'm trying to build this T9 Macro Pad project, by Guy Dupont, using a PIMORONI TINY2040, which uses a RP2040 chip. I installed CircuitPython 6.3.0 on the development board and then could see the ...
BitFlow's user avatar
  • 215
1 vote
0 answers
1k views

Raspberry Pico RP2040 - Circuitpython ULAB FFT Frequencies

I am trying to properly perform FFT and calculate frequencies on my PICO using CircuitPython's (CP) ULAB library: ULAB FFT With traditional Python using NUMPY and SCIPY, this is easily achievable, ...
GeorgetheCat's user avatar
0 votes
1 answer
75 views

Issue with installing Circuit-Python-GPS along with Blinka -- incorrect version of Python

I am using a Raspberry Pi 3 B+ with nthe latest version of Raspbian (version 9). I have recently purchased the Adafruit Ultimate GPS Breakout for a project that assists Blind users around their ...
Engineers Need Help's user avatar
0 votes
0 answers
326 views

PICO ASM: Conversion between pioasm and adafruit_pioasm MOV command

I am running CircuitPython on a Raspberry Pi Pico and I am attempting to do some pioasm, which is different on CircuitPython than in MicroPython. According to the adafruit pioasm documentation: Major ...
Quintin Balsdon's user avatar