Questions tagged [circuitpython]

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

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

30 questions
3
votes
1 answer

SOLVED 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 tryed decconect the pico and put it back on then but…
PythonKid
  • 39
  • 4
2
votes
2 answers

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've been following this adafruit circuitpython…
anon512
  • 31
  • 2
1
vote
1 answer

Adafruit CircuitPython, Docker, Pi 5, I2C

Try to run this Code in one of my Docker Container on Raspberry Pi 5: import board import digitalio import busio print("Hello, blinka!") pin = digitalio.DigitalInOut(board.D4) print("Digital IO ok!") i2c = busio.I2C(board.SCL, board.SDA) print("I2C…
TheMrGack
  • 11
  • 1
1
vote
0 answers

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. (The circuit also involves an infrared sensor that…
1
vote
0 answers

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 physically connected to the correct GPIO Pins, swapped out…
bsautner
  • 218
  • 1
  • 11
1
vote
1 answer

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 detect_connection_between_two_pins_circuitpython(left,…
a.t.
  • 183
  • 2
  • 10
1
vote
3 answers

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 only possible input port). Do I assume correctly…
0__
  • 522
  • 8
  • 27
1
vote
0 answers

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 not appear to have a callback/interrupt handler…
JJ Zabkar
  • 111
  • 3
1
vote
0 answers

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 sometimes when I set the pins on and off in small…
Yes
  • 169
  • 7
1
vote
1 answer

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 missing from the list. I am trying to write a…
1
vote
0 answers

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, however it seems there is not a straightforward way…
0
votes
0 answers

Problems reading MIDI via USB on Pico using CircuitPython

I want to connect a MIDI keyboard (oxygen) to a pico, to use the keys and knobs as controllers to other functions on the pico. Connected directly via USB using an OTG-adapter, i.e Oxygen - USB-B USB-A cable - OTG - Pico I'm powering with 5V to vbus…
wikmats
  • 1
  • 1
0
votes
0 answers

Adafruit_fingerprint from the adafruit circuit python library

This is my code with the error, I'm using a raspberry pi model 4B running off of thonny import serial import adafruit_fingerprint #uart = serial.Serial("/dev/ttyUSB0", baudrate=57600, timeout=1) uart = serial.Serial("/dev/ttyS0", baudrate=57600,…
Chimi
  • 1
0
votes
1 answer

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 content and structure is very different. Does anyone…
utiq
  • 103
  • 1
0
votes
1 answer

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 am using CircuitPython in Pi Pico and I am…
1
2