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
2 votes
2 answers
118 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'...
user avatar
  • 31
0 votes
2 answers
104 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&...
user avatar
1 vote
0 answers
75 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. (...
user avatar
  • 11
0 votes
1 answer
76 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 ...
user avatar
1 vote
0 answers
26 views

adafruit_hcsr04 sonar not working on certain GPIO pins pi 4B

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 ...
user avatar
  • 143
-1 votes
1 answer
60 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 ...
user avatar
-1 votes
1 answer
104 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 ...
user avatar
  • 1
0 votes
1 answer
465 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 ...
user avatar
  • 131
0 votes
1 answer
184 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 ...
user avatar
0 votes
2 answers
654 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 ...
user avatar
  • 482
0 votes
0 answers
213 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 ...
user avatar
1 vote
0 answers
115 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 ...
user avatar
  • 111
1 vote
0 answers
71 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 ...
user avatar
  • 151
0 votes
0 answers
196 views

Error "usb_hid module not found" on Raspberry Pi Pico

I'm trying to create a USB Rubber Ducky as seen in NetworkChuck's video, and the very first line of dbisu's script includes an import usb_hid, but when the script is run, I get an error stating ...
user avatar
1 vote
1 answer
234 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 ...
user avatar
0 votes
1 answer
273 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 ...
user avatar
  • 131
0 votes
1 answer
192 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 ...
user avatar
  • 175
1 vote
0 answers
591 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, ...
user avatar
0 votes
1 answer
38 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 ...
user avatar
0 votes
0 answers
201 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 ...
user avatar