Questions tagged [gpio]

GPIO stands for General Purpose Input Output and can be used to receive and send digital signals to and from simple electronics from the Raspberry Pi.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

How to set GPIO pin that requires 5v HIGH with 3v input?

I have a circuit block (Let's name it as block A) with a set of GPIO pins. The HIGH state of these GPIOs are 3v. I have a motor bridge that requires 5v input to set its (motor bridge's) GPIO to HIGH. ...
  • 101
1 vote
3 answers
38 views

DC Motor not responding to GPIO Motor

I want to control 4 DC Motors from a Raspberry Pi. I am just starting by making sure that 1 motor can be controlled. I am following this guide: https://projects.raspberrypi.org/en/projects/physical-...
2 votes
1 answer
24 views

Motor Controller Board Uncertainty for Raspberry Pi

I have a Raspberry Pi 4 Model B. I am trying to build a small car with 4 motors by using the GPIO pins to control the motors. I would like to be able to make the motor go forward, reverse, and ...
1 vote
0 answers
17 views

Problem with reading 433MHz RF receiver

I have problem with reading 433MHz signal. Not receiving it! I want to read it or clone it to send it with my sender hardware. My whole idea is to clone signals sent by my radio remote of windows ...
  • 11
1 vote
3 answers
38 views

Checking angle of servo motor with a Raspberry Pi 3B+

I was trying to check the angle of a servo motor using my Raspberry Pi 3B+. Although when i run the code the servo motor jumps to 90 degrees (physically) and returns an angle of 0.0 in the terminal. ...
  • 11
2 votes
1 answer
341 views

RPi 4: What happens when reverse voltage is supplied to the GPIO header?

Does the RPi 4 have any kind of protection against reverse voltage when the GPIO header is used?
1 vote
0 answers
26 views

How to wire SIM900A SP+ and SP- with Raspberry Pi to record incoming call

I have a "Raspberry Pi (2 Model B rev 1.1)" wired with "SIM900A using a "USB to TTL module". Send/recv SMS, make/accept/hang calls functionalities are working as expected ...
  • 21
2 votes
1 answer
54 views

how to connect to GPIO connectors if they are already occupied

I want to connect 2 wires to the connectors to put pysical shutdown button, like showed here But the connector will be already occpuied by e-paper driver. What would be a recommendation here? Just to ...
  • 165
0 votes
1 answer
51 views

Upgraded RPi and lost my functionality using gpio zero

Recently upgraded my RPi and lost my LED functionality I've installed all kinds of things to attempt to resolve this and no success Thanks pi@JASPER:~/controls $ python controlscript.py Traceback (...
2 votes
1 answer
44 views

Phantom events on Pull-Down Button

I’m the author of this project, an automated feeding device controlled by a custom 4-button keypad. The device is in use 24/7, since over a year. In rare cases I‘ve noticed fake button events. To be ...
  • 23
2 votes
0 answers
41 views

spi overlay driver don't run due to shared pin11

I'm trying to run old FLIR Lepton driver on Raspberry Pi 3 Model B v1.2 (2015). FLIR SW driver here: https://www.flir.eu/developer/lepton-integration/lepton-integration-raspberry-pi/. PDF guide here: ...
  • 21
0 votes
0 answers
30 views

Raspbery Pi 4B (5.15 kernel) not receiving IR codes (Vs1838b)

I had the same problem as the one described in this link : Infrared Receiver for remote controll not working I have the same environment (Raspberry pi 4B with bullseye, kernel 5.15.84-v8+, and I ...
2 votes
2 answers
59 views

Pi 2 getting incredibly hot

My raspberry pi 2 CPU is getting burning hot, even when just starting up. It first wouldn't display aswell, but I rewrote the 32 bit os onto the SD card and now it does display. But it still is ...
  • 21
2 votes
2 answers
144 views

Is there a way I can use the HC-SR04 (ultrasonic sonar) along with the LCD display?

I have a Raspberry Pi4 Model B, with a 3.5" LCD display attached: Since the display occupies the first 26 pins, and therefore also the power supply ones, is there a way I could use the HC-SR04 ...
  • 121
1 vote
1 answer
49 views

DS18B20 not showing up Pi 400

I have a raspberry pi 400 running ubuntu server. I have a DS18B20 with a 4.7k resistor connected from the power to the data wire. I boot up the pi and run the sudo modprobe w1-gpio and sudo modprobe ...
  • 34
1 vote
1 answer
27 views

Map OPC UA server variable to IO port

I am running this code in a Raspberry Pi to run an OPC UA server and expose 1 variable: 'Status' from opcua import Server from random import randint from opcua import Server from random import randint ...
  • 113
2 votes
1 answer
46 views

How to send a pulse to 3.5'' audio jack with GPIO

I have a raspberry pi 3 model B+ and I have been trying to send a pulse to the small audio jack port, Is this the correct way please? import RPi.GPIO as GPIO from time import sleep ...
  • 121
2 votes
6 answers
496 views

I need a seemingly large battery for project containing several sensors, what should I do?

I'm working on a project with several sensors needing various 3.3v and 5v power. I'd like to have my sensors running for at least 24 hours before needing to recharge everything. I did the calculations:...
  • 131
0 votes
1 answer
87 views

Recommended GPIO to read 10Mhz clock in CM4

I have a 12-bit parallel output ADC, which samples at 10M samples/sec. A 10MHz oscillator clock is connected to it in the custom designed PCB. The 12 data lines are directly connected to the CM4. The ...
1 vote
1 answer
70 views

Which GPIOs can I use to shutdown Pi 4?

I am using a Pi 4 with Raspian, writing a program in Python (3.9.2) to do (amongst other things) shutdown of the Pi via a physical button. Based on this link https://linuxhint.com/set-up-shutdown-...
1 vote
0 answers
45 views

Problems addressing WS2812B LED Strip with Raspberry Pi 3 A+

Hello! I am currently having issues addressing my WS2812B LED-strip correctly with my RPi 3 A+. I have followed the following video guide: https://forum.core-electronics.com.au/t/problems-addresing-...
2 votes
1 answer
27 views

Intermittent access errors when writing to GPIO using SYSFS and Ruby

I am using Ruby to drive output GPIO pins using the old SYSFS pseudo-filesystem interface, and am regularly encountering intermittent Errno::EACCES: Permission denied @ rb_sysopen errors. My user is a ...
  • 123
2 votes
2 answers
108 views

How to correctly identify the pin addresses in the Pi4J 2.2.1 GPIO API?

I can't seem to get the right pin number. Let's say I want to access this pin: What's the actual address of the pin? 11, 26 or what? Here's the code I use: (THIS CODE WORKS WITH PIN BCM 23) final ...
1 vote
1 answer
30 views

Can't drive GPIO_12 on Pi Zero 2

I'm having trouble driving GPIO12_PWM on a PI 2 Zero high (physical pin 32 on 40 pin connector). I can drive other GPIO pins low or high but not this one. I see that it is a PWM pin, so maybe that is ...
0 votes
1 answer
63 views

Threading using Python in Raspberry Pi for GPIO inputs

My self-working on encoders of differential drive robot, I need to read the speed and position of wheels using two encoders simultaneously. I have used the threading library in Python even though I ...
-1 votes
1 answer
53 views

Using TCA9548A for multiple MQ-X gas sensors

I have about 8-9 gas sensors I want to use on my Pi but I'm trying to understand how to use The TCA9548A. The TCA9548A Has 8 pairs of SDL and SCL pins to handle multiple I2C devices, but the output ...
  • 131
2 votes
1 answer
52 views

How to make PIO for multi-pin protocol, e.g. 93LC46?

I'm just learning about Pico Programmable IO (PIO). The examples I see cover only single pin communication. I'm wondering whether PIO can handle multi-pin communication (like I2C having one pin each ...
  • 153
1 vote
1 answer
145 views

Audio via PWM pins?

Okay, kinda a noob here. I've been looking around, trying to find an answer to playing audio via the PWM pins. I tried rerouting the audio to no avail. I've tried making a script that uses PWM to play ...
1 vote
1 answer
137 views

reading pulse count using raspberry pi in python [closed]

I have been trying to read the number of pulse inputs from an external device. The pulse generated is from the arduino uno, and the pin I am using has a frequency of 450hz with 5% duty cycle. Every ...
1 vote
1 answer
59 views

Connecting old CD-RW drive with an odd 40 pin connection to raspberry pi

QUESTION So I recently got my hands on an old computer from around 2000 and it didn't work so I decided to take it apart and try to make something a bit useful with the parts. Inside there were 2 cd ...
0 votes
1 answer
61 views

Adding a `cec-gpio` dtoverlay for CEC debugging

I want to build a CEC Debugger as described in the Kernel.org documentation with my Pi Zero 2 W, I plan on using something like this: I am having trouble with the final instructions listed to enable ...
  • 129
-1 votes
2 answers
95 views

How to run Hyperpixel 4.0 on I2C-0 (GPIO's 44&45)?

I use a Hyperpixel 4.0 touchscreen in combination with my custom ComputeModule4 board. I've seen on the CM4 that there is one more I2C-Bus on GPIO's 44&45 which could be used. Is there any ...
0 votes
2 answers
36 views

Java pi4j app crashes on exit() [closed]

My java app runs fine until I execute a System.exit(). I'm using pi4j/pigpio-2.2.1 on a Pi4b with latest raspian OS. I use DigitalOutput to define my own DigitalOutputPin and I2C for some Sparkfun ...
  • 11
2 votes
2 answers
62 views

HC-SR04 sensor's ECHO pin stuck on HIGH

I have a raspberry pi 4 and a HC-SR04 ultrasonic distance sensor. I want to use it in a raspberry-pi based robot. The other features look fine, the robot can move, et cetera. But my code for the ...
1 vote
0 answers
26 views

Respond to GPIO in fastest way possible

I'm trying to respond to a trigger from a ~1MHz clock and I'm having trouble doing this in the time required (under 400ns). I'm using a Raspberry Pi 3b+ and I've seen benchmarks of 50Mhz+ for toggling ...
4 votes
1 answer
86 views

GPIOs picking up random signals

I have a friends Pi 3 Model B+ that I hooked up to become the "brain" on a Carrom Bubble Hockey table. The table is very simple, it has two goals and a button, so in total 3 switches. My ...
  • 143
0 votes
0 answers
45 views

I don't have ribbon cable for GPIO, and I need to use a bunch of jumper wires

I wanna use individual jumper wires but I don't know how to connect them properly to my raspberry. I'm using the red T-shaped GPIO extension board and raspberry pi 3, I already put all my wires in the ...
4 votes
3 answers
249 views

LED light not turning on

I was following this tutorial on connecting an external LED to a Pico W, but I've had no luck getting it to work. This is the code I've been using: import machine from machine import Pin, Timer timer =...
1 vote
1 answer
72 views

Which are the pin choices for powering and driving an audio amplifier with signal and power on raspberry pico pi

I am using an audio amplifier,PAM8302A from adafruit link, to power a 8ohm 1W speaker (small speaker) that is being driven by a raspberry pi pico. The amplifier has A+ for the signal/audio input (not ...
  • 123
0 votes
4 answers
103 views

Switching a bistable latching Relay directly - Not enough power from GPIO?

I'm trying to control this bistable latching Relay (RT314F03) After not being able to switch the relay I was wondering if that's even possible. While the Relay is rated for 3V, its "Rated Coil ...
  • 9
1 vote
0 answers
43 views

Command Raspberry Pi 4 GPIO via bash Windows 10

from RPi import GPIO global ON global OFF OFF = GPIO.LOW ON = GPIO.HIGH GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(21, GPIO.OUT) x = open(testo.txt") if x.read() == "true"...
-1 votes
1 answer
31 views

GPIO is deactivated by loudspeaker

I use https://github.com/ts1/PiIR to send - pin 22 - and receive - pin 23 - infrared signals This works fine as long as I don't play anything through the speaker connected to the pi's own jack socket, ...
0 votes
1 answer
54 views

Button working on and off

I have two buttons connected to pins 16 and 20. The one going to pin 20 works well, actually too well. Sometimes when I press it, it records the press two times. The other button which is connected to ...
  • 1
1 vote
1 answer
42 views

Pin state doesn't change, but wait_for_edge triggers

I've been trying to figure out why the GPIO value will not change. I double check, triple check my connections. I used GPIO.wait_for_edge(pin, GPIO.RISING) and it executed and when I ran print(GPIO....
1 vote
0 answers
51 views

Rpi4b -> Use Serial HC-12 SI4463 Transceiver to send to Generic RF outlets and 433 switches

Raspberry Pi4B Hi, I am using a 433 MHZ TX/RX kit connected via GPIO pin 27 for receive and GPIO pin 22 to send signals to my RF power outlets and receive signals from my 433mhz Wireless Magnetic Door ...
2 votes
1 answer
48 views

Pullup for pins 2 and 3 -- practical consequences?

In this awesome answer, the author wrote this about pings 2 and 3 in the PI: The only special consideration is that GPIO 2 and 3 have hard-wired 1k8 pulls to 3V3 (they are needed when functioning as ...
  • 135
1 vote
1 answer
108 views

Python function following physical input not working with kivy

I'm trying to create this functionality that when a physical button is pressed a function is called that if true opens a popup on the main Kivy screen. The idea was to have the display showing the ...
0 votes
0 answers
48 views

Rename gpio-keys input device with label attribute

I have added the following line to my boot.txt to attach a push button input device to my system: dtoverlay=gpio-key,gpio=26,active_low=0,keycode=256,label="myButton" Once the OS is booted, ...
  • 133
1 vote
1 answer
167 views

Changing I2C pins through /boot/config.txt failed

I'm trying to get the libcamera-still to work on a compute module 4 with an imx219 but I'm getting a ERROR: *** no cameras available *** Running dmesg returns [ 6.060283] pinctrl-bcm2835 fe200000....
  • 121
0 votes
0 answers
69 views

Raspberry Pi Windows GPIO Control

I installed Windows 10 on Raspberry Pi development board. I will read/write by specifying input/output from Raspberry Pi GPIO pins. I know on Raspbian OS but I haven't done it with Windows before. Can ...

1
2 3 4 5
66