The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
0answers
16 views

Sensor to detect internal volume of bottle

For a project, we need a way to detect the internal volume of a bottle: quickly (no more than 5s max for the whole process) accurately (no more than 5% deviation from the actual volume without ...
0
votes
1answer
53 views

Looking for a three state relay or switch

I need to control the link between three wires: Nothing touches == State 1 == Light is off Red touches brown == State 2 == Light is on Red touches grey == State 3 == Light blinks A little drawing: ...
0
votes
2answers
47 views

FET-based H-Bridge for bi-color LED

I've got a bi-color LED in a push-button that is red when powered in one direction and green in the other direction. I would like to control it from a Raspberry Pi GPIO pin, e.g. High=Red, Low=Green. ...
0
votes
0answers
41 views

Servo doesn't move properly

I have a problem with my servo motor. I connected a servo to the PWA connection of a PCA9685, but powered the motor externally. There's no problem with that and it works fine with some smaller servo ...
0
votes
1answer
21 views

Hi motor driver help [closed]

I am trying to build a product with a motor and a raspberry pi I am having great difficulty understanding what tells me if the driver board is compatible with a specific motor For example I have been ...
0
votes
0answers
32 views

motor driver voltage [on hold]

I am a complete beginner working on my first project. I need a motor which will be controlled by a raspberry pi. I see that to do this I need the intermittent motor driver. How do I tell if a motor ...
0
votes
0answers
48 views

Alternatives to common collector transistor switch?

I am trying to connect a Raspberry Pi / Arduino to a coffee machine. The coffee machine has a simple function, with a single button (momentary switch, on a DC cicuit) to dispense a coffee. I'm trying ...
0
votes
1answer
130 views

NPN common emitter transistor as a switch switches off as the current draw in collector falls

I am trying to switch power to a Pi Zero using an NPN transistor (2N2222) as a switch, as in the following diagram. simulate this circuit – Schematic created using CircuitLab The Ib is around ...
0
votes
0answers
51 views

I2C and separate power source affects SDA signals

Despite the fact that I2C devices should be able to operate with different power sources I'm having problems with my setup. Specifically, it seems that when I have separate power sources the SDA ...
1
vote
2answers
113 views

MOSFET as heating element for a RaspberryPi

I developed a PID autotuning algorithm that I want to test outside of a simulation environment. For this purpose, I got temperature sensors to send data to a RaspberryPi. Now I need something to ...
2
votes
1answer
49 views

How can I make smaller steps with my servo?

I've got a Raspberry Pi with which I control a servo. The servo controlls the rudder in an autonomous boat I'm building. I'm using Golang and this gpio library to control the PWM. The input I get ...
1
vote
1answer
80 views

Driving NPN with Raspberry Pi

When driving an NPN transistor using the GPIO output on a raspberry pi I assume no protection is needed on the GPIO side of the circuit? So nothing would really be needed beyond this to drive the ...
2
votes
1answer
41 views

Raspberry Pi input protection with optocoupler?

I need to isolate a noisy input to a Raspberry Pi 4. Would this be the most correct way to implement it? I feel like the protection on the input side of the Pi is overkill. Note: Schematic uses a ...
1
vote
2answers
102 views

RS-485 to USB converters (cable conversion)

I am working on a project that involves a Solar Charge Controller. The device ships with an Ethernet RS-485 communication interface as well as a RS-485 to USB cable, which is said to be able to ...
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. ...
0
votes
2answers
59 views

Drive Solenoid with RPi

I'm putting together this circuit, but am not clear how to wire up the part with the diode. This is what I have so far, but it doesn't seem right (how does the solenoid get power?). Components are: ...
0
votes
1answer
43 views

Unable to read data from MCP9808 using i2c

I have a MCP9808 temperature sensor and a Raspberry Pi 3B plus. I had great success reading the temperature from this sensor via i2c on an Arduino Uno, but am not able to read the temperature with ...
0
votes
1answer
73 views

What type of sensor to detect if an object passes through?

(Sorry for my bad English) Hello guys, I need your help since I have no idea about electronic stuff. I have a table soccer and want to install motion sensors in the goals, so whenever the ball ...
0
votes
2answers
46 views

Power a 12V Solenoid and a RPi Zero with the Same Wall Socket

I'm building this circuit using an RPi Zero and this 12V solenoid. I would like to be able to power the RPi and the solenoid from the same wall socket using a single power supply. For example, I've ...
0
votes
0answers
48 views

CS5340 does not generate clock signals correctly

I am trying to build a sound input for Raspberry Pi 3B using CS5340-CZZ as an ADC. I am basically using it according to the typical connection diagram in its datasheet, where I have a signal from a ...
0
votes
0answers
34 views

How turbocharger mobile charger works?

I have found a turbocharger from a motorola device which has 5V, 9V and 12V outputs. I want to use this charger to run raspberry pi 4. I need to know how tutbocharger changes the voltage? I am scared ...
2
votes
1answer
80 views

Operating ultrasonic transducers (not ultrasonic module) [closed]

I have constructed my circuit as shown in the picture. I am using raspberry pi to generate PWM to the transistor base and an MCP3008 to convert the anolog signals from the receiver. However, both the ...
0
votes
1answer
57 views

Help with understanding the Memory Map of MLX90393

(Using a Raspberry Pi 3 Model B+ and python) I needed some assistance in understanding the memory map of MLX90393 I've attached the memory map here and you could also find it in the datasheet. I'm a ...
0
votes
0answers
32 views

SEN0192 Microwave Doppler sensor sensitivity

I've integrated this doppler microwave detector to a raspberry pi 3 b+ and have been bench testing it -- and it works fine waving my hand in front of it. I've now moved it to the area where it needs ...
0
votes
1answer
40 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 ...
0
votes
2answers
55 views

MAX11612 to replace ADS1015

I'm looking to replace an ADC chip from an ADS1015 to a MAX11612. Currently I'm using an Adafruit ADS1015 breakout board, but I need an ADC that is truly bipolar and reads significantly faster (>...
0
votes
2answers
79 views

Is it possible to get a Raspberry Pi zero to wake a computer over a USB connection?

I would like to wake up my desktop computer (Mac or PC) from sleeping using a Raspberry Pi Zero. Is it possible to get the Zero to wake a computer over a USB connection? I can wake my Mac up using ...
0
votes
0answers
34 views

Brushless DC Control

I'm controlling a brushless motor using a raspberry pi. I use servo pulsess to control my motor. But i also need to turn it in the reverse direction. To do that, I have no idea what to do. Some say ...
0
votes
1answer
71 views

Would this MOSFET be suitable for use with an Arduino?

I'm looking for a MOSFET which can be controlled by an Arduino at 5V, and which can switch power on/off to a Raspberry Pi and peripherals (also 5V) that will peak around 3A of current. It's a battery-...
0
votes
1answer
47 views

ESC control with Raspberry Pi

I'm trying to control some ESC and brushless motors using a raspberry pi. I used the pigpio library to control them using servo pulses. But it seems that my motors wont increase rpm after a limit ...
1
vote
2answers
77 views

Powering Raspberry Pi Zero W and LED-Strip with 24v DC

I have a RGB LED-Strip from IKEA that is powered with a 24v DC adapter. My Plan is to Power a Raspberry Pi Zero W and the LED-Strip at the same time from the same power source. My circuit looks like ...
0
votes
1answer
88 views

Is the Raspberry Pi polarity protected on the USB? [closed]

I am building a Pi into some equipment just to drive a display. Now this is normally powered by a USB lead with the usual 5VDC. So I will have to cut the USB cable and put ferrules on the leads (...
0
votes
0answers
32 views

Rechargeable LiPo for Raspberry Pi without having to be unplugged to be charged

I tried researching this online but failed to find exactly what I'm looking for. I want to have a docking station for my Raspberry pi, where I just connect it to a micro-usb and it'll recharge the ...
-1
votes
2answers
101 views

What is the technical difference between wifi and Zigbee? [closed]

I was trying to use the WiFi-dongle in my raspberry pi as ZigBee transmitter. I figured since they both use the 2.4GHz ISM band I should be able to rewrite the protocols somehow to make my WiFi-dongle ...
0
votes
1answer
58 views

Simplest latching circuit with press-ON hold-OFF button that can cut power when Raspberry Pi halts

So I'm making a battery-powered Raspberry Pi project, and it would be ideal if it could cut off power to the Raspberry Pi after the Raspberry Pi shuts down. It would also be ideal if the power for ...
1
vote
2answers
72 views

RPI-arduino communication without UART

I'm working on a project where a raspberry pi zero will be the main controller. The pi has to receive information from a GPS module (gy-gps6mv2) over UART. The same pi will be controlling (receive and ...
1
vote
1answer
46 views

Reading mV from the MAX31856

I am trying to use a Type-C thermocouple with a MAX31856 thermocouple IC. This means that I must read the thermocouple voltage directly (in mV) and convert the voltage to temperature in software ...
0
votes
1answer
62 views

raspberry pi 3V LED. What resistor to use? [duplicate]

I will connect this button with a 3V LED to RP3. what resistor should I be using ? Do not know the amperage of the LED. https://www.amazon.co.uk/sourcing-map-Momentary-Button-Mounting/dp/B07FYSR7Y7/...
0
votes
0answers
27 views

Simulating pad button press with GPIO rPI3

So, i have very limited knowledge when it comes to electrical components. I have a decent amount of programming experience however. I am trying to simulate a button press (big middle button in linked ...
-1
votes
1answer
47 views

Can't satisfy DJI E300 ESC with my PWM signal [closed]

I'm trying to build a drone with my Raspberry Pi 3. I'm using Windows 10 IoT and C#. I've bought a DJI E300 pack (motor + ESC + Propeller) and in the data sheet it says that the ESC works with ...
0
votes
0answers
18 views

Charging and monitoring LiPo battery on docking station

How can I charge a LiPo battery (4 cells) without the "classical Lipo Balance Charger". Also, is it possible to monitor the battery level from, let's say a Raspberry Pi?(Using the 4 pins that are ...
0
votes
2answers
47 views

Powering up raspberry pi 3 b+ with one 11.1V 3S 2200mAH 30C Rechargeable LiPo Battery

I wanted to power up my raspberry pi with the only lipo battery I have which is a 11.1V 3S 2200mAH 30C Rechargeable LiPo Battery. I done some research, and most of them used a voltage regulator to ...
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 ...
0
votes
0answers
45 views

need help deciphering accel/gyro datasheet for i2c communication using python RPi

I have barely any knowledge in this area, the most I have done is used my RPi3 with pre-built python libraries for sensors such as ADS1115 so I didn't have to go through the process of understanding ...
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 ...
0
votes
0answers
37 views

Electret MIC MAX4466 with ADC ADS1015 in python with rasberrypi 3

I have been trying to read the values from this mic https://www.adafruit.com/product/1063 with the this ADC https://www.adafruit.com/product/1083 in python. I am confused about the readings, because ...
0
votes
1answer
52 views

LEDs flicker when I move my circuit

I'm building an LED driver circuit, CD4504B and TLC5916 controlled by a Raspberry Pi: simulate this circuit – Schematic created using CircuitLab I'm finding that sometimes when I move the ...
0
votes
2answers
70 views

How to easily power multiple components with differing requirements?

I'm a long-term software developer who hasn't touched a soldering iron since Uni. I've been mulling an idea for a hardware project for some time, and have cajoled a raspberry pi into managing the ...
1
vote
2answers
132 views

Writing commands to a microcontroller with a STM32f chip from python

Manual to the micro controller: https://drive.google.com/file/d/0B8PmY6nhQadKSVc5OE04c3ZJaFU/view?usp=sharing , where page 18-19 introduces the serial communication protocol. The micro controller on ...
0
votes
2answers
116 views

Correct way to control 12V relay from a Raspberry Pi

I am working on a project where I need to control a couple of relays from the GPIO header on a Raspberry Pi. I tried getting a PCB with the layout like the right version in the image below, but I ...