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 raspberrypi.stackexchange.com Raspberry Pi specific forum.

248 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
283 views

DC 12V to 5V 3A USB Type C

I wish to power my Raspberry Pi 4 from a 12V DC battery and to do that I purchased these two products: Pololu 5V, 9A Step-Down Voltage Regulator D24V90F5 USB 2.0 Type-C Connector Breakout Board I ...
3
votes
0answers
284 views

SPI comunication - Only receive 0xFF (Linux)

I've been stuck in setting up the SPI communication in Linux and can't figure out any solution. I working with a beagle bone black, which runs Linux. I have a piece of code that send data through the ...
3
votes
1answer
271 views

Amplify Raspberry Pi Zero W Audio with 60s Tube amplifier circuit

First of all, thank you for taking a look at my question. Electronics is not my field of expertise, and I have found myself a bit stuck. I have been restoring some old 50s and 60s tube amplified ...
3
votes
1answer
2k views

I2C Raspberry Pi to PIC24F

I'm new to PIC's and PIC programming but I'm working on a little project to try get a PIC24F32KA301 to communicate with a Raspberry Pi using I2C. The Raspberry Pi is the master and the PIC is the ...
2
votes
0answers
187 views

RFM69 hat for RPI get stuck because of noise caused by missing ground

I built a RFM69 hat for a Raspberry Pi 3 B+. It works perfectly as long as I do not use the GPIO to switch on the relay that drives a solenoid valve. Unfortunatelly a lot of times the switching cause ...
2
votes
0answers
302 views

Can't get L293D to work with raspberry pi zero w

I have the following When i turn GPIO 17: high GPIO 22: high GPIO 27: low or GPIO 17: low GPIO 22: high GPIO 27: high ...
2
votes
2answers
829 views

ATmega328p will not enter programming mode

simulate this circuit – Schematic created using CircuitLab I'm trying to connect a ATmega328p and Raspberry Pi together, communicating via SPI. The Pi is Master and is used to program the ...
2
votes
0answers
542 views

Is it possible to make a Raspberry Pi transmit FM on several frequencies at the same time?

I have read a few questions here on transmitting on multiple frequencies at the same time. But all of them was about transmitting the same signal to all frequencies. The PiFM and PiTX projects are ...
2
votes
0answers
2k views

L293D 2 Phase Bipolar Stepper Motor

I have an M35SP-11NK stepper motor that I would like to be able to drive with an L293D driver chip. The circuit below is how I've got it wired up so far. I've derived this from numerous sources on the ...
1
vote
3answers
92 views

Do LEDs (of the same type) in parallel consume different current?

In a part of my circuit, there will be three LEDs (of the same type) in parallel. Is it true that they will not automatically get the same current and have the same brightness? Somewhere I read about ...
1
vote
0answers
23 views

Serial commands not being flushed from Raspberry to Arduino

I have an Arduino Mega controlling a matrix of 4x4 solenoids via the GPIOs opening/closing mosfet gates used as switches. I'm trying to send commands via Serial from a Raspberry Pi 4 to the Arduino ...
1
vote
0answers
32 views

Have I understood this solution to the sensor synchronization problem correctly?

I read a research paper which proposes an algorithm to synchronize sensors in a way that is independent of the sensors. Beginning with the simplified version which assumes no drift between the sensor <...
1
vote
0answers
33 views

Separating mains power from data lines

I'm an electronics hobbyist who's learning from wiring stuff together and searching the internet if something doesn't work. Hence my electronics knowledge is very patchy. I recently found out that ...
1
vote
0answers
41 views

Correct MOSFET for logic level switching

I'm looking to switch a 12 volt 0.5A and 2A load using the raspberry pi's 3.3v GPIO pins. From what I've read a MOSFET is the best fit for this application but I'd like to avoid wasting energy as heat ...
1
vote
1answer
79 views

How to wire this relay to Raspberry Pi?

I got this relay to make an IoT lamp but I can't decipher the labelling on it. There is no labelled GND, VCC, or JD-VDD just 'L' and 'H'. I wired 'IN' to an I/O pin, GND to GND, and the jumpered pin ...
1
vote
0answers
41 views

On/Off latching circuit with a raspberry GPIO 3.3v

I'm currently failing solving my problem. Of course if I would good better in electronic, I would not post my question here but that's life, and any help would be appreciate. Context: I have around 50 ...
1
vote
0answers
33 views

Creating a low cost raspberry lora node

I'm trying to integrate LORA communication in a project that uses a raspberry pi. I've bought this module to serve as a gateway for testing: https://www.amazon.es/gp/product/B076T28KWG/ref=...
1
vote
1answer
48 views

How can i externally power 5 micro servos and one mg996r?

I am building a robotic arm with 5 * SG90 9g micro servos to flex each finger and one MG996R servo as an elbow joint. The servos were working inconsistently, with not enough torque and jittering a lot....
1
vote
0answers
39 views

Raspberry Pi3 - Configure 4 DC motors

I need to feed 4 DC motors of 5V on my Raspberry Pi 3 Model B using PWM (Pulse Width Modulation). Currently, I have the next components: 2 NPM transistors, 1 L293D integrated circuit, diodes, ...
1
vote
1answer
77 views

Control 5V relay board with Raspberry PI GPIO

I would like to control one of these 8-relay boards with my RPI GPIOs. Please check the below schematic - it shows the parts involved for one of the 8 relays. JD-VCC is connected to 5V of the RPI, ...
1
vote
1answer
60 views

Trying to control vintage amplifier (TEAC A-H500) with Raspberry Pi - what's the communication protocol? 8-bit bus?

I'm trying to control my vintage amplifier from Raspberry Pi - I want to create a nice little Spotify streamer that on playback start will automatically turn on the amplifier and set the input ...
1
vote
0answers
14 views

RC522 has other pins than shown in all the tutorials

I've bought an RFID RC522 module which I intend to use with my Raspberry Pi 3B+. I read the following tutorials and I noticed that their modules have other pins than the one I bought: https://www....
1
vote
0answers
45 views

Mini UPS 5V Module

I've bought a mini 5V UPS board that I need to coninously power a Raspberry pi. In the image description I see that there are 2 D+ and 1 D- PINS INPUT (wall supply, for example), 2 D+ and 2 D- pins ...
1
vote
0answers
51 views

Driving a Seiko Slave Clock

I recently acquired a Seiko slave clock, like the ones used on ships. It has 2 coils, one for advance and one for retard. I'm intending on making a master clock for this out of an RPi or ESP32 or ...
1
vote
1answer
47 views

Raspberry PI powering a peripheral device while accessing it via USB causing PI brownout/short-circuit

My current project utilises a Raspberry PI (3B+ or 4B) to communicate and control an external peripheral device. The Raspberry PI also has a UPS (PiJuice) attached, including a Li-Ion battery (and ...
1
vote
1answer
38 views

Why won't this rpi UPS circuit work?

I was attempting to make a mini UPS for a raspberry pi. The (relevant) bill of materials goes as follows: 250V/50Hz AC to 5V/5A cctv power supply A 2-port mobile powerbank (i.e. it can charge two ...
1
vote
0answers
74 views

Raspberry Pi and FFT (Fast Fourier Transform) — Using MCP3208

EDIT: I've made adjustments based on your answers, while I couldn't get it to be evenly spaced, I managed to get a better curve with more samples per cycle. Turns out I need to remove the print ...
1
vote
1answer
38 views

Canbus over canberry with raspberry pi two messages together at the same time

Im using a canberry with raspberry pi. Is there any way possible to send two messages at the same time with same id and be received by the other raspberry without any particular chance of getting a ...
1
vote
0answers
57 views

Raspberry PI Zero, pushbutton and pullup

I have a very simple schematic: GPIO12 -> pushbutton -> R(1.5 Kohm) -> ground The GPIO12 is set to IN mode and ...
1
vote
1answer
37 views

Powering two devices with a Li-Ion battery

I have a Li-Ion battery powered device that can be plugged in a computer for charging purposes as well as for data transfer. What I would like to do is have data transferred to the device via a ...
1
vote
2answers
138 views

How to drive an AD9850 at 100 kHz/s sweep using arduino or rasberry pi?

The basic problem I am interested in doing is using an ADXXX chip to make a linear frequency sweep through the HF bands, from 1-20 MHz. The sweep rate I would like to achieve is 100 kHz/s, which ...
1
vote
0answers
34 views

Stepper motor and driver selection

I would appreciate some advice on selecting a proper stepper motor and driver for my project. I plan to create an autopilot for my small fishing boat using a Raspberry Pi controlling a stepper motor, ...
1
vote
1answer
62 views

Use an Powerbooster 1000c as an ups for an RPi

I'm a pre-newbie hoping to some day reach newbie status. These questions are probably stupid but I would appreciate your input. EDITEDITEDITEDITEDITEDITEDITEDITEDITEDITEDITEDITEDITEDIT I'll try to ...
1
vote
0answers
126 views

How to run raspberry pi compatible mipi csi camera on rock pi 4 b

I am trying to run a mipi csi camera on a rock pi 4 but I can't figure out how to get it working. I have the rock pi 4b running on Debian (Linux) and the camera is plugged in and the power led is lit. ...
1
vote
0answers
63 views

Power Distribution for multiple 5V consumers

I'm a newby in the field of Electrical Engineering (only basic knowledge from school). Nevertheless, I need to power up to 10 Raspberry Pis (5V, 2A) with Dupont Connectors and AWG24 cables over GPIO ...
1
vote
1answer
51 views

Adding Raspberry Pi Hat edge-cuts and holes in Kicad (after schematic capture)

I'm looking for a way (in KiCad 5x) to build a Raspberry Pi HAT around a design that has already been completed. That is, I did not start with a Pi Hat TEMPLATE ... I hope to find a way to add it ...
1
vote
0answers
43 views

Raspberry Pi GPIO Input fires random high interrupts

I have a raspberry pi 3 model without anything attached. If I configure a GPIO as input with the internal pull up resistor enabled, the GPIO reads high as expected. ...
1
vote
0answers
69 views

Raspberry Pi wake-up and battery power circuit

I am working on a Raspberry Pi (3B plus) project that - at times -needs to operate on battery power, and on external power whenever available. The RPI needs to operate only when a dedicated sensor ...
1
vote
1answer
156 views

Raspberry Pi 3 SPI speed and ADC sampling rate

I have been working on a project where I am collecting data from an AD8232 ECG sensor in my Raspberry Pi 3. The raw signal is so distorted and I am guessing I may have an issue with SPI speed and ...
1
vote
0answers
60 views

How do I wire a Rasberry Pi 3B+ to a WS2812b RGB strip?

I am working on a project where I need to use a WS2812b RGB strip. I am really worried because I have already burnt 2 Raspberry Pis with my wiring. I just want to show my schematics, and be assured as ...
1
vote
0answers
289 views

Help identify RJ11 pins on a relay board - No152133

I'm tinkering with my garage door motor (Marantec Comfort 220) which have a RJ11 6-pin connector (X10) for an accessory relay board. The relay board is quite expensive and I don't actually need the ...
1
vote
0answers
43 views

MCP23017 working sporadically

So I've got two MCP23017's on the same I2C bus connected to a RPi. One is addressed 0x20, the other 0x24. The RPi is running my GUI which in turn controls the MCP's which switch 16-way relay boards. ...
1
vote
0answers
149 views

L298N motor driver not working after connecting SPST switch

So when I had all wired as depicted in the first image, it worked fine, no problems. The red LED on the L298N board was illuminated and the dc motor was following commands from my Raspberry Pi. Now I ...
1
vote
1answer
139 views

Sudden raspbery pi power cut or random long delay when running stepper motor using pigpiod

So I wrote another program that can run stepper motor nema 34 using leadshine DM860 driver and this is the example of my code: ...
1
vote
0answers
46 views

Why does my GPIO only show 2V when connected to the Gate Termina lof NTE2390?

I've got a circuit set up with a motor that matches this diagram. When a 3 V power supply is connected to the Gate terminal, the motor spins. However, when I replace the 3V supply at the Gate ...
1
vote
1answer
130 views

Separate two batteries getting charged by one charger with diodes?

I've got a robot that I use two batteries on. One of the batteries power the servos and engines and the other is for the digital boards. The servos need 5 V. The control board and LCD run on 5&...
1
vote
0answers
113 views

Flashing firmware using RPi3

I have been trying to flash firmware onto the PC Engines APU2 platform. I'm using an SPI interface. RPi3's SPI is hooked up to the three-state quad buffer SN74LV125AD. For now, it is just a proof of ...
1
vote
0answers
48 views

Sharing a 5v Supply

I want to deploy a Pi Zero in a weatherproof box. I need to provide 5v DC for the Pi and an 8 channel Relay Board and two 5v DC pumps. I have a 5VDC 5A 25W single output power supply that seems ...
1
vote
0answers
22 views

high pincount stackable header separation

I recently made myself a custom hat for a Raspberry Pi. To connect the Pi and the Hat there is a 2x20 stackable header. However, I find it extremely difficult to separate them once they are mated ...
1
vote
0answers
226 views

Turn ON/OFF 5V 2-5A by Raspberry Pi GPIO

I need to control few 5V 2-5A devices by rpi GPIOs, which has the 3.3V logic level. I come up with a simple circuit, but I'll appreciate any ideas, corrections, suggestions. The LOAD is something like ...

1
2 3 4 5