Skip to main content

Questions tagged [raspberry-pi]

The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. There have been several generations of the device with improved performance, more memory, and more connectivity. This tag should be used for electrical engineering questions that involve the use of a Raspberry Pi. For questions about the Raspberry Pi itself see the Raspberry Pi specific forum (raspberrypi.stackexchange.com).

Filter by
Sorted by
Tagged with
0 votes
3 answers
73 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 (...
Leandros's user avatar
  • 103
0 votes
1 answer
72 views

How to use a Raspberry Pi to discharge a high voltage capacitor

I'm trying to use a piezo element as a tactile feedback actuator. I've successfully managed to use it with 10 * 9V batteries in series which had an output of 90 volts. However, I'd like to test it in ...
Michael Efraimidis's user avatar
0 votes
1 answer
48 views

Using MUXs to Address Multiple Devices

I am fairly new to I2C and coding in general as I am currently majoring in electrical engineering. I needed to design a board with multiple MUXs, I am using TCA9548As, that can address interchangeable ...
Beau Raley's user avatar
0 votes
2 answers
50 views

Poor man's Raspberry Pi camera multiplexing

I'm working on a hobby project which involves a Raspberry Pi (zero) and I want to connect 2 cameras to it. One is the Raspberry Pi HQ camera with a tele- lens, the other one is a cheap wide angle ...
floppydisk's user avatar
0 votes
0 answers
28 views

Soft Latching Power Switch with extra input

I'm working on a project that will be battery and/or USB powered. I would like to implement a soft power switch with the following functionality: Pressing the power button for ~1s turns on the device ...
Chris's user avatar
  • 95
0 votes
1 answer
77 views

Reading multiple push-button switches on a raspberry pi using an mcp23017 over C++

Having followed various tutorials on the web (i.e. 1,2), I have made the following connections: To enhance clarity, I post another picture depicting the connections on the mpc23017 using a cropped ...
cestpasmoi's user avatar
0 votes
1 answer
48 views

Driving a power relay using a MOSFET, Raspberry 4b, and a buck converter

I am trying to use my Raspberry Pi 4b GPIO pins to control a power relay through a MOSFET. Power relay: https://www.digikey.com/en/products/detail/cui-devices/PR23-5V-900-1A/16752646 MOSFET: https://...
rian1's user avatar
  • 23
0 votes
0 answers
31 views

CAN Transmission not going through

I have a CAN bus set up, my two nodes are the STM32-F429ZIT dev board and a raspberry pi with RS485 CAN hat. I am trying to transmit from the STM32 to the raspberry pi. When I try to run this code, ...
Nimo Ohayon's user avatar
2 votes
2 answers
480 views

How does this over-voltage protection diode work?

I saw this schematic for the RPi power supply with USB-C. I do not understand how the D1 diode acts as over-voltage protection. Can someone explain? The image is from the RPi documentation.
void_brain's user avatar
4 votes
3 answers
660 views

74LS161 miscounting

Following Ben Eater's 8-bit computer assembly, my program counter, which is built out of 74LS161s, does not count correctly. In trying to figure out the issue, I have completely isolated the circuit ...
bamboo1's user avatar
  • 41
0 votes
0 answers
34 views

[iMX93evk]:OpenOCD throws "JTAG scan chain interrogation failed: all ones" error

I am trying to enable jtag debugging via openocd on imx93evk, executing the below command openocd.exe -s share\openocd\scripts -f interface/ftdi/imx93-evk.cfg -f board/imx93-evk.cfg however I am ...
Gaurav Sharma's user avatar
0 votes
0 answers
22 views

UPS circuit: voltage drops when raspberry pi zero boots

I am powering a raspberry pi zero through the following module: https://techobsessed.net/tag/mh-cd42/ as there is a lithium battery powering everything, in case of lack of power from USB. The problem ...
user3161330's user avatar
0 votes
1 answer
59 views

what is the source of this noise when recording to raspberry pi using USB soundcard

I connect aux out from my laptop to USB soundcard mic in and use arecord to record audio. But I am getting noise even recording at CD quality. The nature of the noise is really strange as it seems to ...
Vrisk's user avatar
  • 376
1 vote
1 answer
72 views

Did I draw my circuit diagram correctly for 2 MOSFETS and a solenoid?

My project consists of one 5 V solenoid (but uses 3.3 V), one voltage regulator (5 V to 3.3 V), one diode, two N-channel MOSFET transistors, and one 5 V LED strip, all controlled by a Raspberry Pi ...
alxzhu's user avatar
  • 31
0 votes
0 answers
51 views

Raspberry Pi, Relay Module and 5V pump power dips / monitor flickering

I have an issue with my Raspberry Pi + Relay to control a pump. The relay module works fine and I can switch the pump on/off. However, if I switch the pump on for more than a few seconds, the monitor ...
Yusuf Khan's user avatar
0 votes
1 answer
43 views

Relay not turning on a Motor

I am new to electronics. I want to reverse a motor using 2 relays but when i turn on the switch nothing changes.
Master_Arash's user avatar
-1 votes
2 answers
109 views

Did I draw this circuit diagram correctly for 2 MOSFETS? [closed]

Did I draw my circuit correctly? My project consist of one 5 V solenoid (but uses 3.3 V), one voltage regulator (5 V to 3.3 V), one diode, two N-channel MOSFET transistors, and one 5 V LED strip all ...
alxzhu's user avatar
  • 31
0 votes
1 answer
48 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 ...
Martin819's user avatar
  • 101
0 votes
0 answers
35 views

Sensor and motion system synchronization

Disclaimer: This is well outside of my field of knowledge. So please respond accordingly. I am working on a project to measure hydrodynamic effects of a certain type of skin roughness in an open ...
A_II's user avatar
  • 1
0 votes
1 answer
102 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 ...
cAYK's user avatar
  • 3
1 vote
1 answer
43 views

Can a shift register be used to drive LEDs that need to be pulled down to light up?

In my limited experience I have only used RGB LEDs that have a common anode connected to ground and then are lit up by pulling up on the pin connected to the LED colour pins. I currently have 3 ...
EwneoN's user avatar
  • 13
2 votes
1 answer
80 views

Using a MOSFET to trigger the power button of a Raspberry Pi 5

I would like to trigger the new Raspberry Pi 5 power button from an Arduino. My understanding is that, when pressed, the button connects GPIO #20 to the ground: ...
PeterG's user avatar
  • 111
2 votes
0 answers
93 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 ...
Vaaarad07's user avatar
0 votes
1 answer
67 views

Electronic speed controller - how to know what frequency for servo pulses? Why use 50 Hz?

I was doing a Raspberry Pi project controlling a BLDC motor with an BLHeli32 ESC. I sent servo pulses with maximum width 2 ms and minimum width 1 ms. The frequency I sent these pulses at is 50 Hz. ...
Tsz Kit Koon's user avatar
0 votes
0 answers
30 views

3S LiPo Battery charging for Raspberry Pi robot project

The Project I have build a Raspberry Pi based robot with a RPi Camera to help me learn about computer vision and obstacle avoidance. It is powered from a 3S LiPo Battery that sends its power to a DC-...
SaltySparks's user avatar
1 vote
0 answers
47 views

Shut down raspberry when unplugged from power thanks to a battery

Context and objective I need to properly shut down a Raspberry Pi Zero 2 W when it is (physically) unplugged from the power and power it on again automatically when it is plugged back. The basic idea ...
user3161330's user avatar
0 votes
1 answer
44 views

Switching power and controlling RPi GPIO pins with a single rocker switch

I have a 12V amplifier board with the sound source being a raspberry pi. I'd like to have a single rocker on/off switch that both turns off power to the board, as well as connect to the RPi GPIO pins ...
youcloudsofdoom's user avatar
0 votes
0 answers
162 views

Raspberry PI (CM4) video to USB-C DisplayPort alt mode

I'm working on a project where I aim to utilize a USB-C port to embed both video signals and USB functionality. USB-C's "Alt Modes" offer potential solutions, namely DisplayPort (DP) Alt ...
nowox's user avatar
  • 847
1 vote
1 answer
80 views

Raspberry PI CM4 carrier board with Altium : multiple footprint?

I'm currently designing a carrier board for the Raspberry Pi CM4 that physically includes: 1 Compute Module 2 DF40HC connectors 4 Steel standoffs I've encountered a dilemma in generating assembly ...
nowox's user avatar
  • 847
0 votes
1 answer
72 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: ...
www.jensolsson.se's user avatar
0 votes
2 answers
56 views

Multiple Page Write of Flash

My querry is, I am trying to write data from a file stored in by Raspberry PI to an external flash. The size of the file is greater than 256 bytes. As Flash allows writing a max of only 256 bytes in 1 ...
AD97's user avatar
  • 3
0 votes
0 answers
19 views

Using UART of zigbee chip cc2652p in both ways, programming the chip (via usb to UART) and while operating the chip on raspberry pi

Excuse me if this is a dumb question :) I am designing a pcb that is to be a hat over a raspberry pi to add zigbee functionality. The hat will use zigbee module cc2652p from texas instruments. The ...
HeshamZ's user avatar
0 votes
3 answers
45 views

Flashing an LED while Raspberry Pi boots, then illuminate constantly via GPIO

I would like to flash an LED when my 5V power supply is turned on to indicate my Raspberry Pi is booting. Then, when booted and my application is running, I'd like to make a GPIO high (or low) and ...
edlea's user avatar
  • 103
1 vote
1 answer
125 views

Individually Addressable LED overheated

Update (19.3.24) I checked the LED string with a multimeter. The + and - wire of the burned LEDs are connected, whereas the new LEDs do not have a connection between the + and - wires. I checked the ...
TLB's user avatar
  • 11
3 votes
2 answers
907 views

What is the name of the clip on the Raspberry Pi display connector?

I bought a Raspberry Pi Display v1.1 but the clip where panel 1 connects is missing (a brown clip, on a white connector). What is the name and size of this clip / connector? See here Someone with the ...
Olaf's user avatar
  • 165
0 votes
0 answers
56 views

Adding backlight control for Raspberry Pi Zero 3.5 inch tft touch display (GPIO)

Can somebody please help me how i can modify TFT35 display for backlight control with PWM (Raspberry Pi Zero 2 - GPIO 18). I found one solution on GitHub (https://github.com/wild-mustango/VenusOsTFT35)...
Danster's user avatar
1 vote
1 answer
48 views

Wiring multiple photoelectric sensors to RPI 4

I am relatively new to using Raspberry Pis and wiring sensors. I am trying to wire the PM-U25 photoelectric sensor to a Raspberry Pi 4 to act as an optical resolver that tracks a shutter wheel on a ...
dij0nmustard's user avatar
0 votes
1 answer
59 views

Appropriate Overcurrent, Overvoltage, and Reverse Polarity Protection Circuit for Raspberry Pi 4?

I'm new to electronics but I'm trying to power a Raspberry Pi 4 (model b) using an external power supply for testing purposes[5V @ 3A]. This is possible via the GPIO, using pin 2 and pin 6 as ground ...
MG404's user avatar
  • 3
0 votes
0 answers
79 views

Reading a low-voltage digital signal from a device using Raspberry Pi GPIO

I'm a software engineer without much/any electrical engineering knowledge. For a project I'm working on, I need a compute device to detect the state of a separate audio device. The audio device is a a ...
Beau Mitchell's user avatar
3 votes
2 answers
363 views

Powering a Raspberry Pi Zero with a Li-po battery

I want to design a circuit to power a Raspberry Pi Zero using a single-cell Li-po battery (3.7 V). I'm working on a portable hobby project that's required to be battery powered and allows recharging ...
Amir Rachum's user avatar
0 votes
2 answers
96 views

Voltage and resistors

I put a 100R resistor to the output pin of a Raspberry Pi Pico and the amps went down from around 50mA to 15mA, but when I check voltage it stays the same at 3.3V. Am I doing something wrong when ...
My SK's user avatar
  • 1
1 vote
0 answers
41 views

Running a Motor Controller, Motor, and Raspberry Pi off the Same Power Supply

I have a 24V brushed motor, a Raspberry Pi, and a Teensy 4.1 microcontroller all running off the same power supply (a 24V tool battery). I have a step down regulator that converts 24V to 5V: https://...
rian1's user avatar
  • 23
0 votes
1 answer
45 views

Raspberry PI powered via USB A in car when using ODB2 Port [closed]

I'm running a Rasberry PI 4 in my car to read values from the ODB2 Port. Below is the diagram of my setup. The PI is powered via the Cigarette Port using a 12v to USB charger that has an On/Off ...
Gee1983's user avatar
0 votes
3 answers
148 views

Issue with solenoid valve sparks despite using two 1N4001 flyback diodes [closed]

As a student, I'm currently working on a science project where I intend to connect a 12V, 2A solenoid valve to a relay and subsequently to a Raspberry Pi Pico. The solenoid valve is powered by a 12V, ...
Tanmay Sonar's user avatar
3 votes
1 answer
192 views

Raspberry Pi 4B POE Rectifier Circuit recommendation

Am I doing the signal rectification properly for the POE application using the Diodes on the RPI 4B 4 pin header? I have attached images of my design, as I am trying to use a Raspberry PI 4B with POE (...
Wes Ellgass's user avatar
0 votes
0 answers
63 views

How to properly power this 1600nm LED diode?

I have powered LEDs in the past using my Raspberry Pi 4, but its 3V3 pin can't seem to power this LED. Is the low current the Pi can provide the problem? I don't want to take chances since this LED is ...
safiot's user avatar
  • 9
3 votes
2 answers
98 views

Ground Plane Method

I am designing a PCB to handle some modifications as a stepping stone from a well designed pcb from professionals to what my modifications need to be. I have poured ground on top and bottom and joined ...
Wes Ellgass's user avatar
2 votes
1 answer
112 views

Two CAN transceivers on the same PCB

I have two CAN transceivers on the same PCB; they are connected to a Raspberry and a PIC32 MCU. The PIC32 can receive and send any message, but the RPI can rarely receive messages from the ...
helloiamzoltanfarkas's user avatar
0 votes
0 answers
68 views

Powering Raspberry Pi and motors with same battery

I'm building a Raspberry Pi (2 model B) robot with two l298n H-bridge modules to drive four motors, and am using the charger board module pictured below (lx-lbu2c - 2.4a output) to charge two 18650 ...
Aaron J Spetner's user avatar
1 vote
0 answers
50 views

Would it be dangerous to use a charger with multiple voltage outputs to power a raspberry pi? [duplicate]

I have minimal understanding of electronics. The charger I have (micro-usb) can output multiple voltages e.g. 5V at 3A or 9V at 2A. From my understanding it is up to the device to negotiate which ...
user avatar

1
2 3 4 5
42