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.

178 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
2answers
2k views

Odroid XU4 and Olimex MOD-IO by I2C via level converter

Long version Like some of you, I do electronics as a hobby and I'm relatively now to this, so I have a few questions regarding the communication between my Odroid XU4 and a nice I2C module from ...
3
votes
0answers
222 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
211 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
976 views

How to use RPI 2 to debug RPI model B via JTAG with OpenOCD

I have a RPI 2 that I want to use for programming and debugging a RPI model B over JTAG for a bare metal project. Right now I'm having trouble to get the two boards to even talk to each other over ...
2
votes
1answer
131 views

Why do my servos break?

I'm messing around with some servos and one by one they stop working. I've got a Raspberry Pi to which I connected a pca9685 servo driver board which in turn connects to 3 of these cheap servos. I ...
2
votes
0answers
217 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
655 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
512 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 ...
2
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 ...
1
vote
0answers
28 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
49 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
31 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
31 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
58 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
66 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
48 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
100 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 board consists of three (3) relays driven via the RJ11 ...
1
vote
0answers
40 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
79 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
95 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
44 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
450 views

Controlling DC motors and servos with a single pca9685

I have a Raspberry Pi project (robot with wheels and servos) and I'd like to control both motors and servos at the same time. I'm trying to use PCA9685 + L298N for driving the motors. The problem I'm ...
1
vote
0answers
57 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
46 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
181 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
vote
0answers
213 views

Dac over raspberry pi spi troubleshooting

I am trying to output a signal with dac124s085 from python code on a raspberry pi 3b, running Raspbian Stretch (kernel 4.14.30-v7+ #1102). I am sure the spi master driver is enabled - dtparam=spi=on ...
1
vote
0answers
79 views

LAN9512 keeps disconnecting from RPi Compute Module

Main problem I'm using a RPi CM and I connected a LAN9512 to it. However it keeps disconnecting: ...
1
vote
0answers
209 views

Low frequency PWM Brushless DC Motor Speed Control

I am programming a L293D motor driver with a BLDC motor to spin at speeds of 60-300 RPM. It is for a hybrid drone/car where I want the motors to spin slowly while having the necessary torque to drive. ...
1
vote
2answers
326 views

Issues using an Ultrasonic Sensor with Raspberry Pi

I am conducting a project which needs to use a precise ultrasonic sensor but I am having trouble working it with the raspberry pi. The sensor I’m using is the Senscomp 600 series; the manual isn’t ...
1
vote
0answers
404 views

How to control l298n voltage output

Recently I've been working on an RC car controlled by a Raspberry pi mounted on an RC car and connected to 2 motors via l298n dual h-bridge and im using a 12V battery to power the l298N However it ...
1
vote
0answers
113 views

Mini HDMI female - is one pin supposed to be shorter?

I have a Raspberry Pi Zero with Mini HDMI output. I acts kinda weirdly - it does work with a TV with HDMI input, but when plugged into a monitor with DVI input (with an appropriate HDMI>DVI cable) it ...
1
vote
0answers
144 views

OpAmp Clipping? Issues

I am trying to amplify a simple 120mVPP sine wave (4K Hz) to a 5VPP signal being made by an AD9850 being controlled by a raspberry pi. We started off using a 741 but realized after asking you guys ...
1
vote
0answers
204 views

Problem with Pyserial read time

I'm building a RS485 network with rpi3 as master and a bunch of c51 mcu as slaves. After sending an address, the master waits for the slave to respond and then starts to send data. I'm using Pyserial ...
1
vote
0answers
198 views

Hard on/off switch RPI with graceful shutdown

I am building a WiFI solution for a DSLR camera; so after connecting you can view the image via a webbrowser. For this I gutted a so called battery 'grip', which has buttons with which normally you ...
1
vote
0answers
228 views

Raspberry Pi controlling DC motor with 2N2222A

I'm new with the RasPi and I'm trying to build an automated irrigation system. The code is ok because it does what I want, it takes measurements of water content and when it's low, it changes one ...
1
vote
0answers
431 views

How to remove noise between raspberry pi PWM0 and SIM800L mic pin?

In my project SIM800L module(GSM Module) is interfaced with raspberry pi zero. Whenever user call Pi zero play an audio so that user can hear it. To send audio signal from pi zero to SIM800L, PWM0 pin ...
1
vote
0answers
117 views

MOSFETs are dimming my LED lights - checked other threads but it doesn't work

I'm trying to make an LED strip that I bought off Amazon work with my Raspberry Pi. It works just fine when I connect it through the included adapter which I took apart (shown below): However, it is ...
1
vote
1answer
248 views

Wiring a WS2801

simulate this circuit – Schematic created using CircuitLab I have a set of WS2801 LED's that I'm trying to connect to a Raspberry Pi, using a 'hat' that I bought. On the hat, I have four points ...
1
vote
3answers
597 views

Raspberry Pi reset circuit

After extensive research and finding very helpful circuits for the rest of the system I still have not found what im looking for. I am building a PoE raspberry pi weather station that will be mounted ...
1
vote
0answers
83 views

High pitched feedback or interference in system with amplifier and Raspberry Pi

I have a system running on 12V currently provided by a current-limiting power supply. In parallel this source feeds an amplifier and a 12V to 5V transformer. The 5V transformer directly feeds a ...
1
vote
0answers
365 views

Controlling the GND rail

Okay so I'm running into trouble with my small setup, and I'm not sure how to go from here. I've drawn up a very (terrible) schematic of what I currently have wired up: So currently, I have 12v ...
1
vote
1answer
237 views

Battery powered RGB matrix board

I'm not sure if this is the best place to ask this but I'm not sure where else too For my graduation I'm trying to embed a Led RGB matrix display connected to a raspberry pi on my cap. Iv seen this ...
1
vote
0answers
204 views

Software flashing attiny167 from RPi with avrdude

I am trying to flash a program onto an attiny167 (already bootloaded with the micronucleus bootloader) with a Raspberry Pi via avrdude and USB. Background I have 50 Raspberry Pi 3B's connected to an ...
1
vote
3answers
846 views

How to measure 6S LIPO battery juice in percentage from Raspberry Pi?

I've got a Raspberry Pi and I want to use it to measure the percentage of charge which a 6S LIPO battery pack has left which I then send to a server over the internet. I assumed there would be easy ...
1
vote
0answers
59 views

Host device data transfer to 10 slave devices

I have a project I'd like to prototype that requires a host device that can communicate with up to 10 small hand-held slaves at one time. I looked at the latest Raspberry Pi 3 and it may possibly ...
1
vote
0answers
409 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 ...
1
vote
1answer
73 views

Distance considerations between analog output and ADC input?

I have read about distance limitations of timing critical signals like communication over SPI. In order to get more distance between my Pi and my sensor I am considering using an analog sensor and an ...
1
vote
0answers
552 views

make an LED blink on rpi2 in assembly

I am trying to make an LED blink on assembly on my raspberry pi 2 model B to debug some startup code. However I don't see anything blink. Could someone tell me what I am forgetting? ...