We’re rewarding the question askers & reputations are being recalculated! Read more.

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.

Filter by
Sorted by
Tagged with
0
votes
2answers
197 views

Let two LEDs blink with Raspberry Pi

I have written a simple Python program which runs on a RPi to make an LED blink. For that I connected my RPi using GPIO 23 with the anode of the LED, and before going back to ground, I added a ...
0
votes
1answer
413 views

Raspberry Pi 3 B+ can't be powered by battery using regulator 7805 and LM2596, requires higher current. Help! [closed]

I want to power my Raspberry Pi 3 model B+ using a battery. It turned on and worked perfectly with: 1) a 5V 1A powerbank or adapters 2) and a 5.5V(4.2+1.3) battery connected directly. However, i ...
0
votes
1answer
43 views

Getting valid input from Ultrasonic range finder

(I am posting this question here since I feel that the issue is a part of my lacking understanding of the electronics, and not a ) I am trying to monitor the feed hopper for my pellet furnace. I had ...
0
votes
1answer
60 views

7 segment display

i recently bought a 7 segment display for research purposes. I have connected this to the raspberry pi and i got an output. The thing is that, the segment has 4 digit display and all the displays show ...
0
votes
1answer
75 views

Raspberry Pi Zero - PWM & Python Help

Disclaimer: I am very new to electrical engineering, but I'm determined to figure this project out. I'm currently working on electronic solenoid lock. Here's a image of what I have so far. I have a ...
0
votes
2answers
254 views

Increase the ramp up stepper motor performance

I'm driving a NEMA34 bipolar stepper motor with the following specifications: Holding torque 5.9 Nm Step angle 1.8° Resistance / phase 0.33±10% Ω Inductance / phase 3.00±20% mH Max load axial 65 N ...
2
votes
1answer
82 views

Raspberry Pi losing power

We are building a Raspberry Pi with 2 servo motors connected to one power supply. But whenever the servo motors are provided with a signal to power and then move, the raspberry pi's green light turns ...
1
vote
1answer
134 views

What kind of relay should be used to control a thermostat terminal?

I'm building a remote controller for my thermostat, and the only step I have remaining is the connection between the Raspberry Pi and the thermostat terminal. Essentially, the Rpi will be replacing my ...
0
votes
4answers
168 views

How to power an Atmega328P and Pi from 12V?

I have a bare-bones Arduino (basically an Atmega328P) and a Raspberry Pi 2. I have them communicating with each other over I2C and a 5v/3.3v logic level converter. Right now I power the Pi (micro-usb)...
1
vote
1answer
501 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 ...
0
votes
1answer
65 views

Looking for design advice for custom electronic lock

I'm building a door lock that will be controlled by a Raspberry Pi Zero W. Here's a link to the lock I'm using: Electronic Cabinet Lock With Status Reporting (MA1208S-T) From what I understand, this ...
0
votes
1answer
96 views

Powering a RPi and a motor driver with the same LiPo battery

I have a 2-cell LiPo battery, a RPi3, and a motor driver with 2 DC motors. I wanted to use the same LiPo for both, instead of a LiPo for the driver, and a Power Bank for the RPi3. My idea was to use ...
1
vote
0answers
61 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 ...
4
votes
1answer
242 views

Problem with SPI Communication between Arduino/Atmega328P and Raspberry Pi

I have an Atmega328P chip (being used as an Arduino) that I would like to connect to a Raspberry Pi via SPI. I originally had an Atmega328P running on 3.3V using its own internal 8MHz crystal ...
4
votes
2answers
1k views

Long wires causing Raspberry Pi to die?

I've been working on a simple project involving a Raspberry pi and some switches. I would never thought I would have any problem for something as simple as a switch, but here I am. The 2 wires from ...
0
votes
2answers
142 views

What do smartphone manufacturers do differently with their cameras than the Raspberry Pi module camera

There is a huge difference in quality between the image/video taken by the latest iPhone or Samsung smartphone compared to that taken by the Raspberry Pi camera module. What is different about the ...
0
votes
4answers
2k views

How to control a motor driver (BTS7960) without PWM

Using a Raspberry Pi 3B+, I need to control a motor which works in 12V and can draw up to 2A. It doesn't use PWM. It just goes in one direction or the other (reverse/forward) when interchanging the +/-...
0
votes
3answers
209 views

Practical limits on Raspberry Pi GPIO pin voltages

I know the Raspberry Pi GPIO uses 3.3V, and you should never connect voltages higher than that to the pins. However, when connecting an I2C device I accidentally put 3k pull-up resistors to 5V (...
0
votes
2answers
66 views

Relay not outputting voltage

I'm currently having trouble with my relay, and I suspect it's a problem with my setup. Here's how I have it setup. I have a raspberry pi 3 B. I want to power something using the 5V output, so I ...
0
votes
1answer
321 views

Debugging I2C, Effect of Oscilloscope Probes

Working on a simple I2C setup: Raspberry Pi connected to a WM8731 audio chip. The Raspberry Pi configures the WM8731 (which is write only) over I2C. Problem is WM8731 doesn't always respond with ...
2
votes
1answer
94 views

Communication between a Computer and Microcomputers

I am currently working on a project that require me to communicate between several Raspberry Pi's and a computer. I'll display data that sent by Raspberry Pi on that computer. Since I am using ...
0
votes
1answer
102 views

PC to Rasberry Pi Serial Communication

Im trying to communicate to my pc using my raspberry pi using a software called Docklight. I'm using a serial cable (that i ripped apart) and my breadboard as shown below. Now, you can also see I ...
1
vote
1answer
154 views

Fast, cheap, wireless data transmission with Raspberry Pi [closed]

I need some advice on a project. I want to wirelessly transmit packets of data from a Raspberry Pi to several microcontrollers (Arduino or other). The frequency must be at least 15 packets/s per ...
0
votes
1answer
95 views

2 Computers 1 USB Device (circuit help) [closed]

I have a project with a custom USB device that pumps out a stream of data every 1.125 seconds to a Raspberry Pi running Windows 10 IoT, and occasionally receives an 8-byte command. The USB device and ...
1
vote
5answers
625 views

How to measure voltage of a floating GPIO (Raspberry Pi)

I would like to measure that voltage of a floating GPIO on a Raspberry Pi 3. When I use a multi meter or an oscilloscope it looks like the pin is pulled to ground and shows 0. Another way of asking ...
0
votes
1answer
202 views

Can I add an INA219 voltage\current sensor to this USB powerbank?

I have a Raspberry Pi Zero in a small robot that I have been powering off a USB powerbank and it works great. Unfortunately when the USB battery goes flat the power is cut and the Pi crashes. I want ...
1
vote
3answers
128 views

Using Raspberry Pi to turn TV on and off directly (not using infrared) [closed]

I am creating a device that requires a TV to be powered on and off when commanded by the code in my Raspberry Pi 3 B+. The Raspberry Pi also needs some sensing ability to know if the TV is on or off, ...
1
vote
0answers
47 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 ...
4
votes
2answers
2k views

How to connect an industrial 24V sensor to a 3.3V input Raspberry Pi pin?

Background I want to read how efficient an industrial manufacturing line is without tampering with the PLC code. The simplest solution I can think of is using a Raspberry Pi, thus creating an ...
0
votes
2answers
56 views

Motor driver chips only work one time?

I have the following chip (DRV8833) Technical documentation The inputs work the following way And i have connected it the following way (I think) simulate this circuit – Schematic created ...
1
vote
2answers
87 views

Relay switching a light causes a spike, making a raspberry pi halt

The problem in short: I worry that switching lights is causing a spike. Occasionally a Raspberry Pi halts completely after a relay is switched. The setup: A Raspberry Pi 3 is connected to an ...
0
votes
1answer
176 views

Conflict of polarity?

With the following circuit, would the R2 resistor not change or affect the polarity in some negative way (no pun intended)? In the image below I added the red box as well as the red text in an effort ...
0
votes
1answer
131 views

Can I safely connect 20 Raspberry Pi Zeros to this 5V 10A power adapter

I want to connect 20 Raspberry Pi Zeros (5V, .200-.300A) to a 5V 10A power supply shown below. The setup Im planning will look like the photo below but with many more Raspberry Pis. I posted my setup ...
1
vote
1answer
136 views

Logic Level Converter (3.3v <-> 5.0v) returning HIGH for Low Volt. & High Volt. sides when nothing is plugged in. [Raspberry Pi]

The Goal I have a Raspberry Pi that I'd like to control my treadmill with. The Pi's GPIO ports output 3.3v and the treadmill's motor control board only takes 5v signals. Because of that, I bought a ...
3
votes
0answers
227 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 ...
2
votes
1answer
143 views

Repairing my FFC connector - what to use? [closed]

I'm using a Pi Camera v2.1 and a 15-pin FFC My 150mm, 15-pin Flat Flax Connector (on 1 side) has 1 pin slightly shortened (metal torn). My Raspberry Pi 3 is not working with it. What should I do: ...
1
vote
2answers
414 views

Two 5V Raspberry Pi UPS Idea

I need a cheap, reliable and easy to build UPS for my raspberry pi server. The UPS must maintain power for a maximum of 1 hour. Based on what I found on the internet,I came with two solution. (see ...
0
votes
2answers
1k views

Raspberry Pi driving a LED through a MOSFET

I need to control a LED with a Raspberry Pi! The LED is a white one and it has to be PWM driven, in order to make it show a sort of "breathing effect". Unfortunately I don't have the LED datasheet ...
0
votes
0answers
132 views

Undervoltage/capacitor problems with Raspberry Pi

My question is about the correct way to add a capacitor to a circuit with a Raspberry Pi driving a servo. I have seen undervoltage events in the logs of my app when the servo runs so I added a 470uF/...
0
votes
1answer
1k views

INA219 measure voltage of battery with RPi

simulate this circuit – Schematic created using CircuitLab I want to measure voltage of 12V battery powering something by INA219 connected parallel to this battery and read it with RPi via I2C. ...
0
votes
1answer
238 views

How to reduce voltage with no earth?

I'm currently working with raspberry pi's that are going to be powered through an LED night light (its for being able to observe people working on experiments and giving light to the camera) and in ...
-1
votes
2answers
243 views

What VBAT lines do I really need in this schematic? - Recharge battery & Check battery level

So I'm currently using the design & schematic of adafruit's Powerboost 1000c. I've already discovered in a previous thread about which VBUS lines I can remove but will have to find out what I need ...
8
votes
4answers
3k views

Detect 220 VAC with a Raspberry Pi

I want to build a simple device to check if the light is on or off. I found some schematics but I need to be sure that it is safe. Source : How to detect 220 VAC voltage using an opto-isolator My ...
0
votes
2answers
134 views

Shutdown amplifier when headphones are connected

I'm designing a board for a diy synth, one of the circuits consists in a audio amplifier that drives a small 1W speaker. The amplifier takes the signals from a Raspberry hat(a Fe-Pi Audio V2) and I ...
2
votes
3answers
197 views

Constant Current LED Driver with Raspberry Pi Zero W

I have a 12 V DC source that I'm wanting to run a Raspberry Pi Zero and a couple of 3 W IR LEDs. I'm not using the Pi to control the LEDs in any way. The LEDs are just to provide lighting at night ...
0
votes
1answer
66 views

How to stabilise SPI connection

To salvage a server with a broken BIOS, I am attempting to in-situ program a chip via SPI using a Raspberry Pi 3B: After connecting my clip and wiring it up (and measuring all the leads to ensure I ...
3
votes
1answer
186 views

Slew Rate controlled MOSFET switch

This circuit controls the rate at which M1 switches on using the current mirror consisting of Q1 and Q2. A digital pot is used to control the current through Q2. The circuit works great in simulation, ...
1
vote
2answers
230 views

Can't get low pulse from particulate sensor Shinyei PPD42

I have a Shinyei PPD42 that's connected to my Raspberry Pi B+ using a voltage divider to get the output of the PPD42 to 3.3 V. According to the specification sheet, P1 emits digital output when >1 μm ...
0
votes
1answer
108 views

Ammeter for 24V power that can be read by a Raspberry Pi?

I have a project I'm trying to design and build that involves a "more accurate/useful" battery gauge for an electric scooter. The scooter runs on 24V off of two AGM cells in series. The details of the ...
0
votes
1answer
277 views

Connecting Lora and FSK clients to a single server

I need to connect a Raspberry Pi (as the server) to some different Arduino devices as clients. Some of the clients need to connect using Lora SX1278 modules, and others use NRF24L01+ (or any similar ...