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
1 vote
2 answers
67 views

MAX3232: Switch between RS-232 and TTL levels

Sorry in advance, electronics noob here! I need to make a proof of concept to get some data out of third party system which handles both RS232 and TTL levels. The computer/raspberry/arduino shall - I ...
user avatar
  • 11
0 votes
4 answers
86 views

How does this RS485 transceiver work?

I'm attempting to communicate with an RS485 network with a raspberry pi pico, and I found a "hat" which includes a couple SP3485 transceivers, along with the supporting TVS diodes, etc. The ...
user avatar
  • 103
0 votes
0 answers
53 views

Surface scanning

I’d like to build a bowling ball surface scanner as a home project. Similar to a CD player using a semiconductor diode laser and a small photoelectric cell to read the surface. I would like to read ...
user avatar
  • 1
0 votes
1 answer
23 views

candump and cansniffer are working but cansend is not working on Raspberry Pi + RS485 CAN HAT (MCP2515)

I connect it at 500k bitrate. Both candump and cansniffer are working, receiving a lot of messages. I've pinned down the packet ...
user avatar
0 votes
0 answers
93 views

Adafruit LCD Going blank when using static gun

I'm having a problem with an Adafruit touch screen Module. When I use a spark gun (set to 20kV) on a grounded metal plate (placed a meter away from the DUT) after a few tries, the screen goes blank. ...
user avatar
  • 111
0 votes
0 answers
66 views

4-20 mA Sensor to Raspberry Pi: Inconsistent readings

I have a 4-20 mA sensor that I want to read it with a Raspberry Pi. I use a DFRobot Current to Voltage converter board connected to an ADC (ADS 1115) that is connected to a Pi. So that way I can read ...
user avatar
0 votes
1 answer
45 views

Using TP4056 to charge a battery with an NTC

I'm hoping its not a duplicate question but I currently have a TP4056 and the following lipo battery: Pijuice zero 1000 mAh battery. I'm fairly new to electronics and was wondering in this case what ...
user avatar
  • 1
3 votes
2 answers
99 views

Problem with MOSFET set up and Raspberry Pi

I've set up high and low side MOSFETs, as shown in the top diagram below (modified from http://gammon.com.au ), which operate from a Raspberry Pi. I'm using a GPIO expander which provides 5V from the ...
user avatar
1 vote
2 answers
85 views

Could my choice of cable be why my DS18B20 sensor isn't found?

I'm building a project with the DS18B20 temperature sensor and a Raspberry Pi (among other things) This temperature sensor needs to be a little distance from my Pi as it is an weatherproof external ...
user avatar
  • 113
0 votes
1 answer
53 views

Power hundereds of LEDs using shift register

I have 400 LEDs I need to drive with a bank of 75hc595s. My problem is that the controller is a raspberry pi zero and the max input for it is 5 V at 1 A, however my LEDs are 3.0-3.2 V at 20 mA or 8 A. ...
user avatar
0 votes
0 answers
51 views

Running a thermal camera (AMG8833) with an orange/raspberry pi but i2cdetect cannot detect any of the 2 cameras

I have bought 2 AMG8833 thermal cameras from different sellers. I tested both first with an orange pi zero and later with a raspberry pi zero. On the orange pi, I used the following GPIO pins and ...
user avatar
2 votes
1 answer
135 views

Selecting transistor base resistor for LED switching application based on datasheet

I have been trying to understand how to read a transistor datasheet properly, and to apply the ratings into my circuit to be able to calculate the needed resistor on the base leg. I have a basic setup ...
user avatar
  • 23
0 votes
0 answers
45 views

Circuit Design for Peltier Cooler and Microcontroller

I Currently have a 100 Watt Solar Panel, Charging a 12v, 6Ah Lead Acid Battery using a generic solar charge controller. I am looking to connect a 12v. 6amp peltier unit, as well as a raspberry pi, to ...
user avatar
-1 votes
1 answer
36 views

How to do sound localisation for an Inmoov Robot

I have to do sound localisation for a humanoid robot. This is my final year project given by our sir but I have no idea how to do it can anyone help me
user avatar
  • 1
1 vote
5 answers
190 views

How to design configurable optocoupled I/O

I am designing an I/O board based on the RP2040. One of the design requirements states that I/O terminals must be isolated hence I'm going for optocoupled I/O using something like 6N137S1 or similar. ...
user avatar
  • 121
0 votes
1 answer
77 views

Step up PWM signal from 3.3V to 10V

I am trying to control an LED driver using a PWM signal but unfortunately the Raspberry Pi Pico is using 3.3V on PWM and the LED driver specification sheet specifies 10V. What can I do to step up the ...
user avatar
1 vote
1 answer
71 views

How can I limit input current to a raspberry Pi to 2 amps from a high current battery?

The circuit I currently have consists of a motor circuit and a raspberry pi circuit connected to the same battery. (2 series circuits from the same battery). The problem is that during idle motor, a ...
user avatar
0 votes
0 answers
36 views

Creating ZigBee RGB Compatible Light - Raspberry Pi

I currently have a Rasberry Pi hooked up to a 64x32 LED matrix. It runs some custom Python scripts to control the colour and display of the matrix, which works great and lets me adjust the settings ...
user avatar
0 votes
0 answers
34 views

Interface 8 servo-motors with Raspberry Pi Compute Module 4 (without additional micro-controller)

I am using a Raspberry Pi Compute Module 4 as my primary processor on a control machine. I have to interface 8 servo-motors with possible RPM feedback. I do not wish to use an additional micro-...
user avatar
0 votes
2 answers
88 views

Why is a resistor needed for the transistor base in this circuit?

I want to use a fan for my raspberry pi and want to switch it on and off. I have found a tutorial online which I want to summarize below: Components: the 5V fan (DC motor in the image) 680Ω resistor ...
user avatar
2 votes
2 answers
190 views

Requesting help in identifying a potential short-circuit on a microcontroller board

Recently I've been developing a board, which for me was the most complex I've ever built. Almost all components are SMT, which was new to me. And I'm running into some point of trouble. All relevant ...
user avatar
  • 43
1 vote
1 answer
60 views

Using Breadboard Power Supply with Raspberry Pi and 74HC595

I'm very new to electronics and I made this simple circuit using my Raspberry Pi, a 74HC595 (8-bit shift register) and 8 LEDs. I wanted to use a HW-131 breadboard power supply to avoid drawing to much ...
user avatar
  • 113
0 votes
1 answer
21 views

Multiple Tags with RFID then play media from RPi

I was wondering if it is at all possible for an RFID reader to read an NFC tag, then ignore that tag, while still being available for other tags which are placed in sequence? The project is a board ...
user avatar
  • 1
0 votes
0 answers
58 views

Why is my infrared receiver working on my Beaglebone Black but not my Raspberry Pi?

I have a TSOP4438 wired to GPIO pins of a Raspberry Pi Zero W and Beaglebone Black as shown in the diagram: I'm trying to use this to control my Pi with an old Roku remote. I initially tried this ...
user avatar
  • 1
0 votes
1 answer
38 views

How do I remove the Sense HAT GPIO connector thats stuck to my Raspberry Pi?

A while ago, I had attached a Sense Hat onto my Raspberry Pie 3B+ for a certain project. Once I was finished, I left it for a long time. I decided to start using it again and upon removing the Sense ...
user avatar
  • 1
0 votes
1 answer
73 views

Ethernet connection with discrete magnetics

I'm in the process of designing a carrier board for a raspberry pi cm4. Since I want to get everything as small as possible, I'm planning to use discrete magnetics for the ethernet connection. Looking ...
user avatar
  • 3
0 votes
1 answer
103 views

SPI transaction weird behavior

Im completely new to this topic so excuse any mistakes I make. I have a MMC5983MA sensor which works well with I2C. However Im having trouble with the SPI protocol. I have all wired up and im trying ...
user avatar
0 votes
0 answers
28 views

Best way to connect Raspberry Pi Pico to apartment monitor?

I'm trying to power my Raspberry Pi Pico using the existing power connection for my apartment monitor (link to manual) I note on the back of the monitor, there are unused pins, specifically a 12v and ...
user avatar
  • 1
2 votes
1 answer
114 views

Why does testing with multimeter fix my circuit issues?

I am using this heater along with this thermocouple and this amplifier and am just trying to be able to set and hold a consistent temperature. I have the heaters connected to a transistor circuit and ...
user avatar
1 vote
0 answers
48 views

Advice on first PCB - doppler sonar project

I have designed a schematic for a PCB for a doppler sonar project. The plan is to use a RPi 3B+ for some basic signal processing, an arduino to produce a 40 kHz wave via PWM which is filtered to ...
user avatar
-4 votes
1 answer
48 views

Raspberry Pi 3 motor code gives gpio error

I am trying to code a motor using the GPIO pins on a raspberry pi 3 and for some reason, when I run the code, it gives me this error: GPIO.setup(enable_pin, GPIO.OUT) NameError: name 'enable_pin' is ...
user avatar
  • 19
4 votes
5 answers
856 views

Controlling flip/vane clock digits

I've obtained a vane/flip clock which has 4 digits, but the controller is long gone. I plan to control the clock using a Raspberry Pi and the usual relay boards you get for them - I've done something ...
user avatar
0 votes
0 answers
41 views

How to properly link / gather lots of VCC and GND?

I have a system where I have quite a few sensors (more than 10). The signal pins are connected to the Raspberry Pi - but the sensor VCC and GND are not since there's not enough 5V pins. I was thinking ...
user avatar
3 votes
1 answer
77 views

Which error mechanism would serve best for large data?

I have a microcontroller (mcu) communicating with Raspberry Pi (rpi) using SPI communication. The mcu is a slave device and rpi is the master device. I am transmitting ~800 kB of data from mcu to rpi. ...
user avatar
1 vote
1 answer
61 views

I2c between Arduino and Raspberry Pi 4 using i2c3 doesn't work

I'm going to use I2C for Arduino-Raspberry Pi 4 communications, I'm trying to change I2C pins because I need the initial I2C pins (GPIO3 and GPIO4) for other purpose. I'm using Ubuntu 21.04, and I'm ...
user avatar
  • 330
0 votes
1 answer
79 views

Connecting ground between microcontroller, multiple sensors and motors

I am currently working on a automation project consisting of 3 analog sensors and 2 dosing pumps using a Raspberry Pi 3 B+. I am powering the sensor and motor modules using one 12v 5A power supply to ...
user avatar
0 votes
1 answer
105 views

Changing voltage level from an incremental encoder from 5V to 3.3V for my Raspberry PI Pico ADC pin

Edited I want to read data from my DC machine through a Sendix 5000 (encoder datasheet) incremental encoder with a Rasberry Pi Pico. Optical encoder with RS422 output and 5VDC supply. The HIGH ...
user avatar
  • 31
1 vote
2 answers
59 views

AC current detection with 1-10mA sensitivity

I need to build a current switch that will be connected to an Arduino (or Raspberry Pi) digital input. I need it to set to HIGH (3.3 V) if the current is above some threshold, and LOW otherwise. The ...
user avatar
  • 111
1 vote
0 answers
22 views

Powering up l298n module

I have a l298n motor driver, hbridge, which i am using with my raspberry pi. I am supplying 6V to the hbridge from a battery holder that takes 4 AA cells so in total it is supplying 6V, yes. Now the ...
user avatar
3 votes
3 answers
1k views

Turn screen on/off with an N-channel MOSFET

I have a display monitor that is connected to a Raspberry Pi, all running off a battery. Most of the time the monitor is not used so I'd like to turn it on only when required, but I also would like it ...
user avatar
0 votes
0 answers
42 views

RPI Touchscreen turns off in solenoid circuit

I have built a medical instrument that has an issue with a RPi touchscreen. The circuit config is as follows: 24v 6A power supply 12V an 5V regulators Large 24V solenoid (https://www.mecalectro.com/...
user avatar
0 votes
1 answer
211 views

SPI communication problem between Raspberry Pi and STM32

I've spent a couple of days to find answer to my problem. Currently I'm working on a project where an STM32L432KC microcontroller board and a Raspberry Pi 3B need to communicate over SPI. The OS on ...
user avatar
  • 11
0 votes
2 answers
60 views

How to control an LED strip with RaspberryPi/ESP32 using N-channel MOSFETs?

I am trying to control my LED-strip with N-channel MOSFETs. The problem is it won't turn off after removing the current from the hate. More details below. I bought these MOSFETs, and am currently ...
user avatar
2 votes
0 answers
121 views

UART communication problem between Raspberry Pi 4 and STM32F767ZI

I'm trying to debug a problem with the UART communication between the raspberry pi 4 and an STM32. Indeed, I try to send the number 1 from the raspberry pi to the stm32 but I can't get the right ...
user avatar
1 vote
0 answers
54 views

Correct lead routing for USB micro-b (male) to USB A and USB type C (+ mini HDMI)

I am trying to put together a custom adapter PCB to plug into a Raspberry Pi Zero/Zero 2 W so I can avoid using multiple adapter cables. On the Pi end, it'll have male plugs for mini HDMI, micro USB (...
user avatar
  • 11
0 votes
2 answers
62 views

Invert Avrdude signal for Reset pin

Good day all, I have a bit of a pickle on hand. I have a project where we would like to use ICSP to program an atmega328p. We can do this quite easily using Avrdude with a custom config file, however, ...
user avatar
  • 138
0 votes
0 answers
24 views

How to decide if Flyswatter2 can support a particular development board or not?

I am new to JTAG debugging and have already got a Flyswatter 2 unit with me. This is my first experience with any JTAG debugger so I am not really sure what to look for to find if its compatible with ...
user avatar
  • 109
0 votes
1 answer
83 views

Noisy behaviour of multiplexer 74LVC1G157

I'm trying to use a WS2812B addressable LED with a multiplexer 74LVC1G157. The WS2812B uses NZR protocol comunication at 800 Kbps and each pixel scan frequency not less than 400 Hz. I have test code ...
user avatar
  • 330
0 votes
0 answers
72 views

I2C bus slave powered before raspberry pi master

I have a number of I2C slaves (PCF85063AT) connected a Raspberry Pi, which acts as master. For various reasons the I2C slaves are powered at all times, where the power to the Pi can be controlled on/...
user avatar
0 votes
1 answer
52 views

Voltage supply fallback in very low-profile design

I'm currently designing a PCB built around an RP2040, following the RPi Foundations guidelines on how their SoC should be hooked up. This specific device will have a very small footprint (hence the ...
user avatar
  • 43

1
2 3 4 5
38