Questions tagged [micropython]
95 questions
12
votes
7 answers
Not able to connect Raspberry Pi Pico
I am trying to connect to Raspberry Pi pico using Thonny. I am using Ubuntu 20.04.
Giving Error
Couldn't find the device automatically.
Check the connection (making sure the device is not in bootloader mode) or choose
"Configure interpreter" in the…
PSKP
- 328
- 1
- 2
- 8
7
votes
2 answers
DS18B20 and RPi Pico
I will be getting my Raspberry pi pico here in a few days and want to connect a DS18B20 and use MicroPython. I have a project the uses RPi zero w and Python3.9. Since obviously, the pico does not use an os, is there a way to read a 1-wire device? Or…
Kelby Criswell
- 320
- 2
- 9
5
votes
1 answer
Is there a python library to allow I2C between Pi (master) and Pico (slave)
I want my Raspberry Pi to control my Raspberry Pico. I'm trying to send bytes of data to the pico and then read the data on the pico so that I can take different actions depending on the data sent (e.g. turn different lights on or off).
I'm new to…
pcoates
- 153
- 1
- 5
5
votes
1 answer
Rpi Pico Thonny Micropython Setting Up With Rpi4B/Windows PC Problem
I am currently using ESP-32 in Thonny using micropython. I know that Raspberry Pi pico also uses micro python But There is no option for Raspberry Pi Pico. I am using Thonny 3.2.7.
BeOpen
- 53
- 5
3
votes
2 answers
Using micropython on Raspberry Pi Zero W
I have found a library and sample code that seems to work very well on the Pico W, but I need a bit more power, so I'd like to use the same library on the Pi Zero W instead. Initially, I tried using the code as-is, but I immediately get errors…
G.H.
- 151
- 1
- 4
3
votes
1 answer
Raspberry PI Pico W temperature reading
I have been playing with my newly acquired Raspberry Pi Pico W and reading the temperature.
How much variation between the internal temperature sensor and an external TMP36 wired up to ADC2 should I be expecting?
The value from the internal sensor…
Alastair Montgomery
- 182
- 1
- 8
3
votes
3 answers
pico pi rtc interrupt
I want to send an interrupt to the pico to wake it up every second to tick a battery-powered clock. I have an external RTC, the ds3231. I have gotten just about every other feature on the rtc to work like the timekeeping, time setting, format, etc.…
Zeno
- 85
- 2
- 7
3
votes
1 answer
Rpi pico micropython ssd1306 OSError: 5
Solved
I have .91inch 128x32 pixel oled display. here
im following Tom's Hardware tutorial here
I'm using Thonny on windows 10
ive basically copy and pasted from Tom's hardware
from machine import Pin, I2C
from ssd1306 import…
Zeno
- 85
- 2
- 7
2
votes
1 answer
How do i get Nema 17 motor to work with DRV8825 and Pico 2 W?
Yesterday, I tested a Nema 17 stepper motor with a DRV8825 motor driver. Connected to a Pi Pico 2 W using MicroPython on VS Code. It worked as intended, the motor spinned both directions. I took a picture so I could rebuild the circuit the next day…
Julian
- 21
- 1
2
votes
1 answer
Control micropython on a Pico from the command line
Many people control their Pi Pico using Thonny but I rarely use the Desktop and prefer to program from the command line.
How can I control micropython on a Pico from the command line?
Milliways
- 62,573
- 32
- 113
- 225
2
votes
0 answers
How can I display small black and white images on a e-paper spi display with a Raspberry Pi Pico W?
I have purchases a Raspberry Pi Pico W and have wired it to the Waveshare 1.54 inch e-Paper display module V2 I have used the code available at the github page, specifically the epd1in54b.py and the epconfig.py,
The specific errors that I have got…
odo59
- 21
- 2
2
votes
2 answers
Cannot use global variable in pio function
I am working on a project in which I need to control a brushless motor with a microcontroller. I have chosen the Pico as I already have some on hand and there is a high chance of it being completely destroyed, so the low price is nice.
To control…
lpinfinity
- 23
- 3
2
votes
1 answer
How to create open network for Raspberry Pi Pico using micropython?
I seem so close to getting it working but every route I take just doesn't seem to work. I'm trying to make an access point from my Raspberry Pi Pico with no password. SOUNDS SIMPLE DOESN'T IT. Here's the incorrect code so far.
import network
def…
Josh_heritage
- 23
- 4
2
votes
0 answers
Debugging micropython code using raspberrypi pico debug probe
I was wondering if there is a way to debug micropython code on raspberrypi pico with/without the "debug probe". Documentations described steps for C language in details, but nothing was said about micropython. Of course there's always the "print"…
Omid Ataollahi
- 121
- 2
2
votes
2 answers
How can one make MicroPython HTTPS REST API requests on Pico W?
I'm unable to make MicroPython REST API requests from the Pico W. The WLAN connection is working but the API call fails. ► API call| Not working - Wokwi Pico W Simulator
# Import modules
import network
import urequests
# Connect to WLAN
wlan =…
Ayan Mullick
- 121
- 1
- 5