Questions tagged [micropython]
The micropython tag has no usage guidance.
94
questions
0
votes
1
answer
56
views
Crazy acceleration with EVAL-ADXL373Z
I am extremely new to both Raspberry Pi and working with MicroPython (and i2c protocol). When trying to read data from the EVAL-ADXL373 using Raspberry Pi Pico W I get values ranging from 0 m/s^2 to ...
0
votes
0
answers
29
views
How can I use a relay to control an inverter from a Raspberry pi pico?
The inverter has a remote on/off port that can be used with an rj10 cable.
I connected an Rj9 cable (The same as Rj10/Rj22, 4p4c) to the port on the inverter, and stripped the other end to get access ...
0
votes
1
answer
95
views
Pico: GPIO pin need to be high at power up to ensure correct behaviour against connected 8-bit computer
I am experimenting with creating a replacement for the 8048-based keyboard for an old 8-bit Z80 computer over a parallel port, where the value is read when a strobe pin goes from high to low.
I have ...
0
votes
0
answers
23
views
micropython not running by itself
so i got the code to work up until power it by a wall outlet. the code runs to to get the wifi with out issue, but then does nothing else during the time it is to turn on. if i connect back to the ...
0
votes
2
answers
60
views
Have Pico turn lights on at sunset and turn off at 2am next morning
I am still new, but trying to learn. i have been piecing this together, and i'm not getting anywhere. i hope this can be done easier then what i have. the end goal is have the pico get the current ...
0
votes
1
answer
38
views
Micropython install RPi.GPIO issue for Pico W
I'm trying to install the RPi.GPIO package on my Raspberry Pi Pico W, but when I run
import mip
mip.install('RPi.GPIO')
I get the message back
Installing RPi.GPIO (latest) from https://micropython....
0
votes
1
answer
188
views
Communication between two RP2040 devices with micropython
I have two RP2040 devices, one a Raspberry Pi Pico W(H), and one a Waveshare RP2040 LCD 1.28 device. I am trying to send data from the Waveshare to the Pico through a USB cable (USB-C on the ...
0
votes
0
answers
18
views
Import is erroring with all modules in the root
Noob to Raspberry and Python but otherwise experienced (i.e. tech and development) here.
In the root of my Pico, I have these files:
mpu9250_jmdev.fake_smbus.py contains this.
class FakeSmbus(object):...
0
votes
2
answers
40
views
Pico W I2C timeout occurs when using multiple sensors on a single bus
I am using to VL53 lidar sensor chips on a single I2C bus.
This specific chip does not have an option to change I2C address through hardware and so I must do it through software. This works and I am ...
0
votes
0
answers
57
views
How to enable Raspberry Pico's I2C0_IRQ and set a callback function using MicroPython?
I need to setup a Raspberry Pico as a I2C Slave device. I know how to do this, but I don't know how to eneble the I2C IRQ and set a callback function on it so I can be notified of the I2C events ...
0
votes
2
answers
44
views
Pico W GPIO seems to be not working when under load
I can blink the built-in LED using the standard code, but when running my moderately resource-intensive code, I cannot get the led to blink. I am connecting my Pico with WLAN. I interrupted the loop ...
0
votes
0
answers
9
views
Newb_Python_Checking if a process is running. Seeed XIAO RP2040
Im very new to micro controllers and I recently bought one powered via a Seeed XIAO RP2040 (ANAVI knob 3). I was wondering if there was a way to make the functions of any key dependent to the program ...
0
votes
1
answer
205
views
How should I go about making a serial to ethernet server on a Pico varient?
I am trying to make a serial to ethernet server, similar to a regular pi board and ser2net, using a pico variant. I am using a Waveshare RP2040-ETH Mini Development Board, but there is very little out ...
0
votes
0
answers
45
views
Error when loading csv file
So this is my code; I have both my python file and csv file in my raspberry pi pico already as you can see in the image. However, when I run it, it returns an error.
#from machine import Pin, I2c
#...
0
votes
1
answer
272
views
How to program a RP2040 Chip (I don't have a Pico board, just the chip). I'm building my own PCB for my own needs
I have a rp2040 chip without the pico board. The usual method is to hold the BOOTSEL button, but I don't know which pins are connected to that button (well all I found is it is connected to TP6) but ...