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.

310 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
346 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
311 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
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 ...
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
1answer
128 views

I2C bus fails after a few sensor reads

I'm building a small home automation hobby project for which I try to connect 4 temperature/humidity sensors (AM2320) to an I2C bus on the Raspberry Pi. When initially connecting the sensors they work ...
2
votes
1answer
102 views

Daisy-chaining two ADC with SPI protocol

I'm trying to configure and read two ADCs (MAX11156) with a RaspberryPi. The ADCs are daisy-chained together. For the communication, I'm using python code with the spidev library. The driver is ...
2
votes
0answers
76 views

Reading 2N2222 BJT datasheet

I know this question was asked before, But couldn't understand properly the datasheet reading. I would like to control water pump via ...
2
votes
1answer
157 views

Connecting BMS to charge controller and load

Im trying to design a circuit that the load will get power from solar panel or a battery (in case the solar panel will not deliver enough current\voltage) Also wanted to mention that this is a hobby, ...
2
votes
0answers
242 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
1answer
445 views

getting noise when connecting speaker out of sim800l to raspberry pi

i was trying to make a roaming device which helps me route my calls through internet, to save my bills while on international roaming. my setup goes like this: gsm module sim800l, raspberry pi4, a ...
2
votes
0answers
358 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
0answers
561 views

How to connect flexible flat cable

I'm trying to connect this to this. From another question I asked (I can't find it anymore) the cable is a flexible flat cable, and I should pull out the black plastic piece at the bottom right of the ...
2
votes
0answers
597 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 ...
1
vote
0answers
97 views

SPI data lines look identical, but results are different, how is that possible?

I have a golden sample system which consists of 2 devices communicating via SPI. I swap one of the devices and bit bang the SPI to make it similar to the golden sample. However the bit banged device ...
1
vote
1answer
39 views

SI5351 I2C clock generator breakout board not detected on raspberry pi 3

I've recently bought a SI5351A I2C breakout board on Aliexpress (This listing) for a project. I was trying to test the board using a simple breadboard, a couple of jumper wires and my raspberry pi 3 (...
1
vote
0answers
26 views

Rx buffer overwrites Tx buffer in spidev xfer2

I'm setting up a comms link between an STM32F407 MCU and the Pi3B+. The code shown below works but when the data is printed out, it looks like the RX buffer overwrites the TX one. How do I stop that? ...
1
vote
0answers
42 views

Help Designing an Impact Detector for Raspberry Pi

I am trying to design a little game where you throw a baseball at a 3x3 grid of 24x18" polycarbonate panels (1/4" thick), and the game detects which of 9 panels is struck. I'm aware there ...
1
vote
0answers
35 views

Controlling DC motor with H-Bridge motor driver and a relay

I am trying to build a smart car. I have 4 DC motors with tires. They are yellow 3-6V hobby project motors. I have two L298 H-Bridge boards and 1 relay. I connected two of motors to one H-Bridge and ...
1
vote
0answers
31 views

Raspberry PI LED calendar project. First steps with a circuit

I need help with the project in several ways: Design circuit Calculate resistors Calculate power supply I started it thinking that it would be something simple (turning LEDs off and on), but it ...
1
vote
0answers
108 views

First PCB (raspberry pi hat)… can't find short circuit

INTRO: Hi there, everyone. I'm working on a RaspberryPi hat PCB that drives 10 solenoids and takes in 5 inputs. I designed the PCB on EasyEDA and had the boards printed at JLCPCB and used their SMT ...
1
vote
0answers
28 views

Send or share DI data through network advice

i want to collect some data(DIs from some relays) and send them or use them in a network and finally put them in a DataBase like SQL, and i want it to work 24/7. after searching i found some solutions ...
1
vote
0answers
106 views

mosfet to use with Raspberry Pi (3.3V) to trigger a 12v 10w led

I'm looking for a MOSFET to use as a switch to trigger a 10w - 12v LED. 1- I have acquired the module with the IRF520 but it seems that, even the seller tells that it is compatible with Pi, it is NOT ...
1
vote
1answer
66 views

Voltage / amperage / setup for tingling sensation

There are small pens (powered by a single or double 1.5V battery) or other medical devices that upon touching your skin produce a tingling sensation. Main question: I wonder to what voltage, amperage ...
1
vote
2answers
88 views

24V DC to 5V for powering a Raspberry Pi 4 and a router for a vehicle - what should i use? DC/DC converter?

I am looking for a DC/DC converter from 24V to 5V for powering 2 devices So this is what I got: A vehicle power box that will give off 24V -- This is my power supply A Raspberry Pi 4 Model B (Max ...
1
vote
0answers
65 views

Powering 5V Laser with Raspberry Pi 4 GPIO Pins

I am powering a 5V, 5mW laser that draws ~30mA (KY-008) with a GPIO on my Raspberry Pi 4. From my research, GPIO pins have a voltage output of 3.3V, so I'm not supposed to be doing this. Unfortunately,...
1
vote
1answer
33 views

Wiring ASMC-04B Servo With Raspberry Pi

I am normally pretty good with wiring up stepper motors and having a step pin which can be pulsed with a gpio output and a direction pin that can be set to high or low. Also using servo motors that ...
1
vote
0answers
65 views

Having USB-C as power delivery and data?

so I've looked at many posts on the internet and I cannot find one that answers my question. I want to have a USB-C breakout board (I'm planning to use this) that will power my power supply. However, ...
1
vote
0answers
73 views

Raspberry Pi DC motor control with position feedback

I'm interested in controlling a DC motor using a Raspberry Pi and I want to know the approximate position of the motor. I have seen multiple ESC for sale but most don't appear to provide any feedback, ...
1
vote
3answers
111 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
24 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
33 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
52 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
51 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
0answers
46 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
38 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
82 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
41 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
222 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
261 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
23 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
76 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
1answer
49 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
48 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
1answer
420 views

Please review my schematic for vision processing kit - Raspberry Pi Compute Module 3+ and camera

I'm very new to board design and i want to get a review for my schematic. I'm making a vision processing kit using a Raspberry Pi Compute Module 3+ and the Raspberry Pi camera that can be powered ...
1
vote
0answers
153 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
41 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
58 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
40 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
257 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
1answer
75 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
2 3 4 5
7