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
25
votes
1answer
21k views

Understanding an 'ideal' diode made from a p-channel MOSFET and PNP transistors

The Raspberry Pi B+ models have a protection circuit between the USB connector and the 5V net on the board. They recommend putting a similar protection circuity on a Pi HAT before 'backpowering' the ...
8
votes
1answer
8k views

How to properly use a relay module with JD-VCC from Arduino/Raspberry?

I got two 4-relay-modules and I am probably doing something wrong because none of them seems to work: My first try was using a breadboard 5v power supply, connecting VCC and In1 to 5V and GND to GND. ...
14
votes
4answers
24k views

Shutdown Controller for Raspberry Pi in a car

Following on from my previous question I'm trying to create a shutdown controller for my Raspberry Pi. The Raspberry Pi needs to be powered from the battery, but should power-down after the Pi ...
3
votes
1answer
316 views

SPI slave randomly missing bits in response

I've connected an MCP3008 to a raspberry pi. First on a solderless breadboard, where everything worked correctly. Then on a prototyping board, where the only difference is that the chip is externally ...
6
votes
4answers
22k views

Control 5v relay through 3.3v GPIO using NPN transistor

I'm not very pratical as I just started learning electronics and I'm planning to make some experiment with Raspberry Pi. I'm trying to control a 5v relay board that, I think, is made for Arduino, as ...
0
votes
1answer
2k views

multi channel ac dimmer for arduino

I have been looking for a simple ac dimmer circuit to use with my arduino and/or raspberry pi. I have used the TLC 5940 PWM Driver before just to control LEDs and I wanted to adapt this to controlling ...
3
votes
1answer
2k views

How can i drive a 5v 120VAC 80mA with 15A contacts with a raspberry pi?

I don't have a very good knowledge of electrical engineering yet but I'm working on it. I will like to know as simple as possible, how can i drive a latching relay that needs about 70-90mA if the ...
1
vote
2answers
5k views

How to force variable voltage fast charging power bank to output a certain voltage?

I am trying to power up my raspberry pi 3 with a Xiaomi 10000mAh fast charging power bank through the L298N motor controller. The motor controller can receive from 7 to 35V, and it has a 5v output, ...
10
votes
4answers
11k views

shorting a remote control pushbutton with GPIO and a transistor

I'm trying to control my garage door remote with a GPIO pin from my Raspberry Pi. Instead of driving a relay, it would be much easier to just short the pushbutton on the remote. Is this how I should ...
7
votes
2answers
1k views

Understanding 74LVC245 datasheet and current source/sink

I'm using a SN74LVC245A (datasheet) to shift 5V TTL down to 3.3V so I can read the signals with a Raspberry Pi. However I am getting really weird results (a 60Hz input signal is picked up by the Pi ...
7
votes
2answers
8k views

Switching MOSFET from Raspberry Pi GPIO

I'm trying to drive a STP16FN06 from a Raspberry Pi GPIO pin but I'm a bit lost. The schema below represent (I think) how it is currently wired, on the left the RPi pin + ground and on the right a 5V ...
0
votes
1answer
5k views

Raspberry PI's SPI over RS485

I'm trying to understand how to connect a SPI device (a mifare RC522 RFID board) over long distance to my RPi via SPI. I searched and find I could connect those via SPI over RS485 using a MAX490. (...
3
votes
4answers
23k views

Embedded system for image processing project

Is it possible to do image processing (to extract numbers and text) using a microcontroller? If not, what are the alternatives to do this task?
1
vote
1answer
584 views

Will this schematic work?

Newbie here, trying to learn electronics (Iam from SW background). Looking for someone to review the initial schematic and advise. Haven't ordered the parts yet, so appreciate any tips in finalising ...
1
vote
2answers
1k views

5v output to 3.3v?

I have a microcontroller and a Raspberry Pi, both running off of the same 5v supply, in parallel. The microcontroller has 4 5v output pins and the other is a Raspberry Pi, that can only accept inputs ...
0
votes
2answers
117 views

Trigger relay at different voltages with voltage comparator

TL;DR - I need help on making a relay with voltage comparator which accepts two reference voltages. Aim My project needs to run a Raspberry Pi on solar power. Solar panel will be connected to a power ...
8
votes
8answers
13k views

Sending I2C reliabily over Cat5 cables

I am considering implmenting an home automation system around my Raspberry Pi but I found the price and space requirement of inserting a Pi every place some control is required too much but the Cat5e ...
3
votes
2answers
3k views

How long will a battery last based on these numbers

Hi I asked this question on SU but seemed to have gotten into a bit of trouble, I was referenced here. I am getting into doing hardware build based on things like microcontrollers and microprocessors....
2
votes
2answers
9k views

Raspberry Pi + IRFZ44N to control a 5050 RGB LED strip: current seems to be limited

Introduction and General Question: Scalability I have assembled very simple circuitry to successfully control one RGB LED strip. I have also managed to improve slightly its yield. However, when I ...
1
vote
3answers
1k views

Convert 9v of battery into 5v at 3.5watt

I want to run Raspberry Pi using a general non-rechargeable 9v battery. Raspberry Pi needs 3.5W and 5V input. Questions: Which LDO should i use ? For what amount of time general 9V battery is able ...
1
vote
2answers
3k views

Connecting a Raspberry Pi to a 220V switch

I have a switch that works at 220-230V AC and I'd like to link it to my Raspberry Pi and I want to know what I have to do from an electrical point of view. So my switch, when switched on, places 220V ...
3
votes
2answers
1k views

Raspberry Pi and USB modem - can I connect it like this?

As some of you know - Raspberry Pi model B has only 100mA available on USB ports. I want to connect USB modem (that takes > 500mA sometimes) to my Raspberry without powered USB hub. I have: ...
2
votes
2answers
139 views

THM3060 RFID reader setup issues

I got the following rfid reader from a colleague https://www.aliexpress.com/item/4000035966273.html?spm=a2g0o.productlist.0.0.4ac14adcZL3H9M&algo_pvid=af835e25-e532-4426-8714-cd80a9871169&...
1
vote
1answer
623 views

Smart Phone's camera socket

I just want ask how the socket in the image is called? I couldn't really find and the closer I could get is only Raspberry's module.
1
vote
1answer
2k views

Controlling DC Motor with Raspberry Pi

I'm new to both StackExchange and electronics in general. I want to be able to turn on and off a DC motor using my Raspberry Pi. I have a breadboard, a 6V DC motor, an NPN Transistor (ST 2N2222), a ...
1
vote
2answers
3k views

How to use a Raspberry Pi Pin(3.3V) to reset a ATMEGA328(5V)

I have a ATMEGA328(AVR) connected to a Raspberry Pi(RPI) via serial using a level shifter. The AVR has the Arduino Bootloader installed and I would like to program it via serial. What would be the ...
1
vote
5answers
2k 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
3answers
85 views

Checking how many inputs (reed switches) are active using minimal GPIO pins [duplicate]

I've been a programmer, for a while, but I am new to the hardware aspect of things so I apologize for my lack of knowledge. Just for a fun project to try to get better with hardware, I've decided to ...
0
votes
1answer
738 views

Integrating momentary switch with a Raspberry Pi

Please note: Although my question involves a Raspberry Pi, this is a pure electronics question at heart. I'm trying to figure out how I can wire this illuminated momentary switch to my Raspberry Pi 1 ...
0
votes
1answer
529 views

How to measure bipolar analog signal accurately (to 1mV) on raspberry pi

BACKGROUND This is my first question on Stack Exchange so apologies for any missteps. I'm currently working on a project measuring tilt outputing an analog signal that ranges from -2V to 2V. But the ...
-1
votes
3answers
877 views

Controlling a Solenoid With Raspbery Pi GPIO Output Using a Transistor

I'm trying to control a solenoid using the RasPi 2's GPIO pins. Since the solenoid needs more power than the RasPi can provide, I'm using a 9V battery to provide the power. I started with just wiring ...
37
votes
8answers
3k views

Add a passive hardware token using a 3.5mm jack

I have a box that I made for my niece, which allows her to exchange voice messages with me. It is powered by a Raspberry Pi and features two buttons, a LED, a microphone and a speaker. Now, for ...
10
votes
5answers
15k views

Raspberry PI without OS on it?

I've been doing a lot with Arduino recently. It's very simple because you can directly execute C++ code on it without the need of operating systems or drivers. I've done some research and AFAIK, you ...
8
votes
4answers
16k views

Circuit to safely power-down Raspberry Pi

I want to use a Raspberry Pi as an XBMC server in the car. The XBMC docs say that you should always use the shutdown command before disconnecting the power. I don't want to have to (tell my wife to) ...
6
votes
5answers
25k views

Simplest uni-directional level shifter (3.3V -> 5V)

I want to drive a WS2801 LED strip from a Raspberry Pi GPIO. I have connected the MOSI and CLK pins directly to drive the LED but it is not working as the WS2801 datasheet says that a high level is \$...
12
votes
5answers
9k views

Control the hardware of an old phone using a Raspberry PI

I have a very old phone (60 years old) and I want to control its part using a Raspberry PI: Microphone & speaker from the head set The bell The dial wheel I have the electric circuit but don't ...
7
votes
3answers
8k views

Using larger resistor values

I'm connecting a Raspberry Pi to an LED and this video tutorial says that I need 270 Ω resistors. I only have 100 Ω, 1 kΩ, and 10 kΩ resistors with me. Is it okay if I use the 1 kΩ resistor?
2
votes
2answers
7k views

How to create USB toggle switch controled by GPIO

I have Raspberry Pi setup as NAS. The storage is external HDD powered through USB. I would like to encase this whole thing in some nice box and still be able to easily use the HDD, without ...
0
votes
3answers
6k views

How to design an optocoupler circuit for raspberry pi

I want to give sensor pulse to raspberry pi. The sensor signal comes from a running conveyor . The sensor gives 24v signal hence I used a optocoupler to convert the 24v to 3.3v . How should I design a ...
6
votes
4answers
9k views

Proper usage of a MOSFET to control USB

On the RaspberryPi.SE it was suggested that one can use MOSFET BS170 to switch a USB device on and off by a GPIO pin (3.3V). I need to get 500mA to power a GSM dongle; the voltage drop should ...
3
votes
4answers
20k views

How to modify DS1307 RTC to use 3.3V for Raspberry Pi?

I bought DS1307 RTC but it is 5V so it can't be connected to the Pi. I know it can be modified to use 3.3V by removing 2 resistors. This sensor is different than the adafruit kit so I am not sure ...
1
vote
4answers
11k views

How to connect Raspberry Pi to House Alarm Serial Bus (DSC Keybus)

I have a DSC 1864 House Alarm and I want to connect up my Raspberry Pi's GPIO to the Keybus (a serial data communication protocol used by the alarm). I would say my knowledge of electronics is novice ...
-2
votes
2answers
4k views

How can I clone an RF transmitter? [closed]

I have a gas fireplace that is controlled via a RF transmitter/receiver that operates at 303.8MHZ. According to the manual, each remote has a unique code (1 out of 1,048,576) that is set at the ...
5
votes
2answers
2k views

Using the raspberry pi to measure multiple electrical circuits

I am looking to use the raspberry pi to measure the power consumption of multiple household electronics and record the information to analyze later on. However, I'm not sure if it's possible to ...
4
votes
3answers
8k views

easy to construct FM low-pass or band-pass filter

Suppose I wanted to filter a Raspberry Pi's (or other similar) GPIO digital output (running pifm or rpitx or similar) to be clean enough to not splatter RF harmonics outside of FCC Part 15 (or ...
4
votes
2answers
1k views

Low voltage DC Supercap UPS Design

Most generally I'm looking to design a UPS for a low power DC device given higher voltage AC current, with storage handled by a supercapacitor, or a bank wired in parallel. For my specific case I'm ...
4
votes
2answers
6k views

Is a N-Channel Mosfet save/reliable for level shifting UART from 3V3 to 5V?

I am busy with a design that needs to connect a Raspberry Pi to an Arduino via UART. Previously I have designed a circuit that worked okay. (source: protoneer.co.nz) But now I want start using SMD ...
4
votes
2answers
7k views

Powering multiple devices from a single power supply

I am learning electronics on my own and have been having a lot of fun. I am currently working on creating a Nerf sentry gun for fun with my son. I am at a point there where I need to power multiple ...
4
votes
1answer
3k views

Manual SPI interface on Raspberry PI

I am trying to control a MCP4131 digital pot from my Raspberry Pi using this library. Using the GPIO pins, I am "emulating" an SPI interface. I bring the ChipSelect pin to low, write my byte, then ...
3
votes
3answers
6k views

Simple circuit with transistor using Raspberry Pi

I'm trying to use a Raspberry Pi to control a set of 4 LEDs. I'd like to control the LEDs in software by using a ...