Questions tagged [raspberry-pi-pico]
The Raspberry Pi **Pico** is a series of microcontroller boards from the Raspberry Pi Foundation, typically using its RP2040 microcontroller chip. It is a much smaller device than the main series of Raspberry Pi computers.
107 questions
0
votes
0
answers
52
views
Will using these pins on the RPi Pico cause issues?
I'm wondering if any of the given pins are reserved for the RP2040's function. For context I'm making a line following robot for high school competition.
GPIO 0 - Start Button
GPIO 1 - Debug Pin
GPIO ...
0
votes
1
answer
42
views
How to make BME280 sensor and MPU6050 sensor work in same sketch with Raspberry Pi Pico W
I have made init methods for both sensors inside of their own classes, and then I tried to combine them in the same sketch. I created a custom I2C object wire to be used with the MPU6050 to stop the ...
0
votes
1
answer
48
views
Using a pico and a photoresistor to measure light intensity
I've recently been trying to do an experiment requiring me to measure light intensity.
I didn't have the necessary equipment, but I did have a photoresistor and a Raspberry Pi Pico, so I tried ...
0
votes
2
answers
114
views
What is slicing in PWM?
I am working on PWM control with a Raspberry Pi Pico and came across the term "Slice," for which I am unable to find a proper definition on the internet.
A quick search gives "Slicing ...
0
votes
2
answers
54
views
Controlling current through a RL load using Triac firing angle
I want to control the amount of current going through a Triac by adjusting the firing angle accordingly. The Circuit is shown below:
Let's say i want IRMS to be 0.28A then the controller need to ...
3
votes
1
answer
268
views
How to drive a 7-segment LCD that has no common anode / cathode using a Raspberry Pico?
I recently acquired a 7-segment LCD, and I am having trouble to understand how to use it. Is it possible to use it with a Pico without any additional hardware?
From what I know from my research, LCDs ...
2
votes
1
answer
174
views
why does this LM393 need too much voltage to go high
I have the following circuit taken from Arts of Electronics. I am using it to detect zero-crossing of a 40V-RMS/50Hz input. I am connecting the output of the comparator LM 393 to a GPIO pin of Raspi ...
0
votes
2
answers
57
views
Using Pi Pico as Access Control
I am designing a Access Control System based around a Pi Pico microcontroller. I took some Circuitry classes in college and I remember blowing multiple chips trying to get everything right. My ...
1
vote
0
answers
98
views
6N137 opto-coupler with AC input takes a lot of time to trigger
I am designing a zero-crossing circuit to connect it to a RasPi Pico W input. I am using a 6N137 from Liteon. I have a problem because it takes around 200 microseconds to turn on with an input of 40V ...
0
votes
1
answer
76
views
Change direction of > 5 pins with PIO asm
My understanding is that this changes the direction of up to 5 OUT pins:
out pindirs 31
In the above example, 31 would be all 5 bits set to 1, so the first 5 OUT ...
0
votes
2
answers
114
views
Circuit To Simulate Capacitive Touch Button Press - Raspberry Pi Zero
I realise similar questions have been asked in the past about automating capacitive touches, but I'm aiming to put this into practise with a simple circuit.
I want to be able to simulate / automate ...
0
votes
0
answers
28
views
Cannot figure out wiring for CamJam EduKit 3 with Pico WH
I am trying to build this kit using a Pico WH instead of a regular Pi but cannot get the wiring correct at all. I found the pin layout for the motor controller board but I am not sure if I am using ...
1
vote
1
answer
72
views
Raspberry CM4 UART with anticipative RTS signal
I am using RPi CM4 with UART for a project. This is the relevant part of /boot/config.txt:
...
-1
votes
2
answers
150
views
MOSFET keeps dying on totem pole driver
I am designing a 3-phase motor driver for a 300 W hoverboard motor with a Raspberry Pi Pico, which has 3.3 V logic, for driving the MOSFETs I am using a discrete totem pole driver on the n channel ...
0
votes
1
answer
47
views
micropython pyb module not found
I want to debounce a button in micropython and found this page on the micropython docs: https://docs.micropython.org/en/latest/pyboard/tutorial/debounce.html
It uses a library called pyb but my ...
0
votes
0
answers
104
views
Charging circuit for Raspberry Pi Pico
Currently I am working on a kind of pager project. The main idea is that a base station communicates via LORA with my handheld, similar to a DECT phone (Fritz!fon, Gigaset, ...)
The handheld should ...
2
votes
3
answers
1k
views
How do input pins work?
I am trying to understand properly how buttons work with the pico; I can make them work but I don't understand why it works or if it is the right approach.
I get that I need to add Pin.IN when ...
0
votes
0
answers
46
views
W25Q16JV and XIP/continuous mode support (for RPi Pico)
My RPi Pico embeds a W25Q16JVUXIQ. Based on its datasheet, it does not support DTR or "continuous read mode" (which should allow reading without sending the command byte, by setting the M7-0 ...
0
votes
3
answers
130
views
Grounding issue with PWM fan controller on Raspberry Pi Pico to drive 12 VDC fan
I'm trying to build a PWM fan controller for an industrial Noctua PWM Fan (NF-F12 IndustrialPPC 3000 PWM). You'll find the schematic below.
The fan is powered by a 12 VDC power supply (...
0
votes
1
answer
37
views
How to find the matrix layout of an old EEPC keyboard
The title asks my question; how can I find the matrix layout of an old EEPC keyboard. I found an instructables about making a USB keyboard controller but it uses a Teensy microcontroller, and I think ...
1
vote
0
answers
38
views
Soil Moisture Sensor ADC value is inaccurate [closed]
I am planning on making a soil moisture sensor with a capacitive sensor, Thonny ide, micropython, and a raspberry pi pico w, and I followed some online tutorials as I am relatively new to the world of ...
0
votes
3
answers
134
views
High side switch with Raspberry Pi Pico
I'm looking for a circuit suggestion to drive a 5v resistive load that draws up to 400mA using a Raspberry Pi Pico with a high-side switching circuit. Most every example I could find used an external ...
0
votes
1
answer
35
views
Pololu DRV8833 not working with pico
I am trying to use a Pololu DRV8833 driver to drive a DC motor via a pico.
Below is the setup
...
0
votes
0
answers
50
views
Two-way analog signal converter
To begin with: I have almost zero electrical/electronic knowledge.
I want to have something like two-way analog signal converter. On one side there is 0V-15V and on the other there is 0V-3.3V. The ...
3
votes
1
answer
347
views
Transistor won't fully turn off when Fan PWM is connected
I'm trying to use a RP2040-zero to control a 12V PC fan that also has a PWM and tach connection. I'm using a transistor to turn off the fan completely as a 0% duty cycle on PWM doesn't turn the fan ...
-2
votes
1
answer
35
views
Analog sensor isolation for Raspberry Pico analog pins [closed]
I’m designing a logger to collect data from a thermocouple (may be any type) using Raspberry Pico (3.3V). I want to isolate analog pins. As per my study inductive isolation can be done to transfer ...
0
votes
1
answer
57
views
Controlling motor with Raspberry Pi Pico and relays
I have a 12V motor which can be rotated forward or backward based on the polarity. I would like to control it with Raspberry Pi's GPIO ports. So that by switching 2 GPIO ports on Rpi I would be able ...
0
votes
1
answer
280
views
How do I implement a USB-C connector onto a pcb to power a 3.3v Raspberry Pi Pico?
I've been looking into how to create my own pcb with a USB-C connector which breaks out into pins (VCC, D+, D- and GND) to then connect this to a Raspberry Pi Pico microcontroller but I have a few ...
2
votes
0
answers
221
views
Custom RP2040 board not working
I have designed a custom RP2040 board referring to the official hardware design guide for RP2040.
When I boot the device in bootsel mode, it does get detected as a USB mass storage device on my host ...
1
vote
2
answers
156
views
SPI goes low too fast; Raspberry Pi Pico PIO and ADS7042
I am trying to use an ADS7042 (12-bit ADC) with my Raspberry Pi Pico with the Pico's PIO, but the signal goes low too fast and it seems to have problems going high sometimes, do I need to add some ...
0
votes
1
answer
124
views
Trying to drive a I2S MEMS microhpone (SPH0645LM4H) using RP2040 PIO but timing seems bad and I dont get any audio back
So I want to connecte an i2s MEMS microhpone to a RP2040.
I have made a PIO program that looks like this:
...
1
vote
1
answer
118
views
Raspberry Pi Pico, ensuring the circuit diagram is correct
First of all, thank you so much for your interest in my question.
Introduction
The following is a schematic diagram I drew up to represent my Raspberry Pi Pico WH - LED lamp project. I am controlling ...
1
vote
0
answers
86
views
BLE interference from DC motors
The problem:
I am making a remote control car. The car is being run with a Raspberry Pi Pico W. The power source is a 11.1 V Li-po. The power to the Pico is being stepped down with a 5 V regulator. I ...
0
votes
1
answer
47
views
Emulating a resistive keypad
I am building a circuit to emulate a resistive keypad. Each digit has a specific resistance between 3k ohms and 30k ohms. When there is no digit pressed the circuit is open. When a digit is pressed ...
1
vote
0
answers
30
views
Speaker pop / crackle when SBC connects to WiFi
I'm using a Raspberry Pico to detect movement and play a sound via an amp & speaker. At certain intervals the Pico attempts to connect via WiFi to send and receive data.
However, when attempting ...
2
votes
3
answers
572
views
How to correctly design the USB power and communication interface for an RP2040 PCB?
I am trying to design a board that uses the RP2040, and after several iterations I am stuck. No matter what I try, I cannot get my boards to be recognized by USB. Thus, I also can't program them.
...
0
votes
0
answers
81
views
Turning on a fan through a relay power-cycles a Raspberry Pi Pico
I'm trying to control a fan 1 using a Raspberry Pi Pico and a relay 2.
The relay is connected to the Pico on pin 19 (GP14) for signal, to GND, and to 3V3.
The Pico is powered and controlled through ...
1
vote
1
answer
247
views
Power Raspberry Pi Pico from Mains (use LED driver?)
I'd like to permanently install a Raspberry Pi Pico in a place in my house where I don't have a power socket but a power line (230V, 50Hz).
As I understand it, there are two ways to power the Pico:
...
0
votes
1
answer
59
views
Turning power on to relays interferes with thermocouple reader
I have 6 3V reed relays SIL03-1A72-71D that connect to a raspberry pi pico directly via gpio pins 11, 12, 13, 14, 15, 18, and 19 on a custom pcb. The connections to the relays are: 1 is connected to ...
1
vote
0
answers
145
views
Pi Pico shorted after working fine
After working for a couple of weeks, a pi pico is just shorted.
It is used on a board that gets a midi signal as input and controls six mosfets as output.
When powered by usb maximum power is drawn, ...
2
votes
1
answer
759
views
What are PIO asm pindirs and how do they work?
What precisely does "pindirs" accomplish? I initially believed it defined the pin direction, indicating whether it's set as an input or an output. However, in a Raspberry Pi forum (link) it ...
2
votes
1
answer
690
views
On the Raspberry Pi Pico 2040 Pinout Diagram, why are I2C bus pairs overrepresented across pins?
Picture source: Raspberry Pi's official site
RP2040 is a 32-bit dual ARM Cortex-M0+ microcontroller integrated circuit made by Raspberry Pi Ltd. In January 2021, it was released as part of the ...
0
votes
1
answer
153
views
Powering a pico with a lipo battery charged by a bike dynamo
I am building a GPS tracker build on Raspberry Pi Pico and a u-blox NEO-6M GPS module. Now, I want to power this project with a lithium battery that can offer some autonomy. I was thinking of using a ...
1
vote
0
answers
177
views
Raspberry Pi Pico powered by a bike dynamo
I am building a GPS tracker for my bike using a Raspberry Pi Pico and a NEO-6M GPS module.
I need this GPS to be up and running at least 14 hours a day.
The only problem is the power source. Ideally ...
3
votes
0
answers
231
views
Nixie Clock with Raspberry Pi Pico
I am trying to make a multifunctional nixie clock controlled with 2 Raspberry Pi Picos. Because of my mistake I can't plug every IN-12Bs into sockets. So I can only test a maximum of 4 at a time. ...
1
vote
1
answer
182
views
How to convert from datasheet dB value to pressure per volt?
I am trying to measure sound waves using a Raspberry Pi Pico ADC pin but am having trouble converting the sensitivity value on my data sheet into pressure units per volt.
I have read a many articles ...
5
votes
3
answers
1k
views
What determines an electret microphone voltage?
I am trying to get an electret microphone working with my Raspberry Pi Pico's ADC pin. I am trying to detect the output by passing it through a transistor.
I have a 4.5V voltage source. I split this ...
6
votes
1
answer
269
views
Pi Pico generating YPbPr-like signal for VGA monitor
I would like to generate TED-like signal for VGA monitor input (Analog RGB + H/V-Sync). This is basically 16 pre-defined chroma values with 8 brightness levels applied, encoded as 7 bits: ...
0
votes
3
answers
390
views
Why does an electret not pick up sound?
I am trying to get an electret mic to detect sound, which I can then pick up using a Raspberry Pi Pico ADC pin.
My electret has two output pins. One is connected to ground, the other is connected to ...
1
vote
0
answers
119
views
HX711 gaps in data
I am using an HX711 connected to a Raspberry Pi Pico to read some load cells and send the data up to a Raspberry Pi via USB, using a Python library for the HX711.
I am chasing an intermittent problem ...