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
13 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
34 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
36 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
71 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
438 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
124 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 ...
CoolGuy's user avatar
  • 23
0 votes
0 answers
250 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 ...
CoolGuy's user avatar
  • 23
2 votes
1 answer
391 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
0 answers
177 views

Pico W on Network w/o Password Auth & CircuitPython

I'm trying to connect a Raspberry Pi Pico W to my university network using CircuitPython. Our Uni network requires MAC authentication & treats Pis and Picos like they are other devices like a ...
Gallaugher's user avatar
0 votes
1 answer
273 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
397 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
703 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
103 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
236 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
45 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
  • 188
-1 votes
1 answer
216 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
377 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
2k 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
628 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
0 votes
0 answers
743 views

How to measure voltage and current of a battery with Raspberry Pi? [duplicate]

Im creating a battery,and I want to measure the current and voltage?Which possible circuits could help me? To clarify my question,I doing a DIY battery and afer that I want to measure the results.So I ...
Harli Lacej's user avatar
1 vote
0 answers
243 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
113 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
433 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
430 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
  • 195
1 vote
0 answers
950 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
59 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
292 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