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.
3,338
questions
0
votes
0
answers
4
views
Strange behaviour of 433MHz receiver when catching edge events on GPIO
I have a 5 Volt 433MHz receiver connected to my Raspberry Pi 3 B+. The receiver is directly connected to voltage and GPIO, no resistor or anything else is wired in between. Everything is fine until I ...
0
votes
0
answers
14
views
Connecting 40+ transmitter coils to Raspberry Pi
I am currently working on a school project to make the wireless charging platform
from scratch but with more surface for originality. My current design requires 42 transmitter coils and these coils ...
0
votes
1
answer
19
views
It is safe to connect the PWM pin of a 4-wire FAN directly to the Raspi PWM output?
I have a 4-wire PWM FAN. The PWM pin it seems to be pulled-up to 12V with a 47k ohm resistor. Now, with this pin floating, it has almost 12V on it. And this pin must be connected to the Raspi PWM ...
0
votes
2
answers
30
views
GPIO input pins high at 3V, and detect when ground is connected when I want it to detect when 3V is connected
This is on a Raspberry Pi Zero 2 W
The physical pin 3 and 5 (gpio2 and gpio3) are the input pins I am using and for whatever reason, they are at default 3V and detect a change when they are connected ...
1
vote
0
answers
750
views
JavaScript library for the HC-SR04 Ultrasonic sensor
I wired the sensor to my Raspberry Pi. My aim is to use JavaScript to get a live reading in the console of the distance, but the module I found has been archived by the author.
Code that I found on ...
0
votes
1
answer
34
views
GPIO 2 Shut Down Not Working
I have a Pi 3B+ with an adafruit matrix bonnet. Im trying to shutdown the Pi with a single pole double throw switch I had laying around. I'm currently able to get the power on working through GPIO 3. ...
0
votes
1
answer
185
views
Button.when_activated event is not firing even though Button.is_active is setting correctly
Thanks in advance!
I am using a Pi 3B to detect activation of a sensor on my model railroad layout. The sensor by default only offers a rising edge detection scenario. I decided to go with gpiozero ...
0
votes
1
answer
193
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 (...
0
votes
4
answers
182
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 ...
2
votes
1
answer
1k
views
Problem with 1-Wire devices not showing up on GPIO4
For a project I want to implement 1-Wire communication in a Raspberry Pi Zero W. The goal is to use a Maxim Integrated Max17313 Fuel Gauge for inspecting battery usage.
To make sure the implementation ...
-1
votes
1
answer
529
views
Is there any to address the GPIO pins in Windows 11?
I just got my Raspberry Pi 4 and want to run some servers. The server I want to run, runs exclusively on Windows, and not even Wine works. I also need Windows 11 for the improved x86 on ARM emulation. ...
1
vote
1
answer
918
views
Raspberry Pi - Press for on / Press for off switch
I've begun tinkering with using electronics and am also new to using Python.
I was wondering if someone could help me please?
What I'm trying to achieve is to use an on/off switch to run a motor - ...
0
votes
1
answer
34
views
Undervotage detected while using UPS hat (b) on wheel robot
I am doing a mecanum wheel robot project included 2 motor drivers l298n. I use raspberry pi 4 GPIO to control the motor drivers and my power supply for rpi is an UPS hat (b). I keep receiving ...
0
votes
0
answers
40
views
Getting 74 GPIO Pins On a Raspberry Pi Zero [closed]
Is it possible to get 74 GPIO pins on a Raspberry Pi Zero WH? All of them will be connected to buttons, and the Python needs to be able to detect all 74 buttons. I have looked at Getting more than 26 ...
0
votes
2
answers
59
views
Slow pigpio, much slower than RPi.GPIO
I'm developing a system based on Raspberry pi 4B, with a 32-bit Bullseye OS. I'm using pigpio for SPI and GPIO, and I have observed that the delay between command executions is huge. I have run a ...
0
votes
2
answers
279
views
How to connect keypad to Pi Zero
I've tried to find info but with no luck.
I'm trying to make a project - barcode scanner - using RPI zero. I need a keypad to input quantities when I scan a barcode.
I am unable to find any phone-...
6
votes
3
answers
15k
views
Controlling Raspberry Pi GPIO with c and Python
I was searching for C and Python Libraries which support Pi4.
-1
votes
2
answers
49
views
Flash a LED at 27kHz with Precise Timing
I'm trying to flash a LED at 27kHz for a project and using the general GPIO the fastest I can get is around 3kHz. Any library's that would be suitable for this?
# Import the libraries
import RPi.GPIO ...
2
votes
1
answer
2k
views
GPIO doesn't work, error: "Error when trying to open pin 11"
I connected a LED to pin 11 as per this guide. And this works in the terminal to turn it on and off:
gpio mode 0 out
gpio write 0 1
gpio write 0 0
But when I try to use pi-gpio, with this code as ...
4
votes
1
answer
606
views
sh: can't access tty; job control turned off
Yesterday, I was programming GPIO controls for a robot in class and left for a few minutes to work with another group. I came back to find all the GPIO disconnected and sh: can't access tty; job ...
1
vote
1
answer
569
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....
7
votes
4
answers
18k
views
Is the gpio readall command compatible with RPi 4?
It's already a while since I got my Pi 4, but never used the gpio readall command until yesterday. I have run into an interesting error.
pi@raspberrypi:~ $ gpio readall
Oops - unable to determine ...
0
votes
1
answer
578
views
Listen for certain keyboard input and insert to SQL Server DB
I have a USB NFC reader (acts as an emulated keyboard that types out the 10 digit ID number on the card when scanned).
I want an app to listen for this input and when it sees 10 digits, I want it to ...
1
vote
1
answer
541
views
Access the display from a python app running as a service
Problem: The code below can't access the display when running as a service.
I have my raspi hooked up to a touch screen monitor in the kitchen and I've attached a Passive Infrared sensor to the GPIO ...
0
votes
2
answers
79
views
Problems connecting a servo to raspberry pi 5
I have recently tried to use a servo on a raspberry pi 5 using
import RPi.GPIO as GPIO
from time import sleep
GPIO.setmode(GPIO.BOARD)
GPIO.setup(17,GPIO.OUT)
p = GPIO.PWM(17, 50)
p....
1
vote
1
answer
105
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 ...
0
votes
1
answer
872
views
Node-Red Raspi GPIO: Using only rising trigger
When using node-red with raspberry pi 3 GPIO, node-red will send a message, every time the state changes (= rising and falling trigger). Is it possible to only send messages on rising trigger?
Using ...
0
votes
0
answers
27
views
Using an i2C OLED display with lgpio and a kernel newer than 5.11
I'm on Ubuntu 23.10 on a RPI 4 and the kernel used here is not compatible with RPI.GPIO because -- as far as I understand -- RPI.GPIO cannot see if multiple processes are trying to use the same pins. ...
0
votes
0
answers
47
views
RPi Zero as 4-pin-fan-controller: Faulty RPM readings on open collector with gpiozero
Introduction and Goal
Disclaimer: I do not have profound but basic knowledge in electronics and hardware and my python is a bit rusty. For tl;dr, jump to the problem section below.
Hello,
I'm trying ...
1
vote
0
answers
30
views
When I put a bit in GPSET to 1, what is the actual mechanism that "reads" this register and put the electric line to HIGH Voltage? Who does this? How?
I don't know what is the actual mechanism.
When the CPU sets that register(GPSET)'s bit to 1, what entity/element reads that and is responsible to activate the electric line to HIGH? How is this done?
0
votes
2
answers
153
views
Idea about encryption with Pi
I had an idea about having an encrypted partition on the Pi's SD card which can be auto-decrypted with a headless setup (no keyboard available for manual decryption).
Would it not be possible to ...
0
votes
1
answer
73
views
wiringPi giving "Unable to determine board revision from /proc/cpuinfo" error after kernel 6.1 update
I was using wiringPi to to control the GPIO pins on a Raspberry Pi model 3 and 4b (these originally had Buster installed on them) successfully until today when I did a rpi-update to get kernel 6.1.
...
2
votes
1
answer
465
views
Error when sending second start command to Cylon.js to blink LED
Using Node.js, express and cylon.js, I'm getting a post request and blinking an LED using a raspberry Pi. I receive the first post request fine, the code runs and the LED blinks. However on the second ...
1
vote
3
answers
11k
views
How to install wiringpi on Raspbian
Hi I am currently preparing my project and I intend to use the gpio and I would like to be able to use the wiringpi library but when I try to installing it with
wget https://project-downloads.drogon....
3
votes
1
answer
2k
views
Kodi on a GPIO screen
I recently bought a 3.5 inch TFT touchscreen connected by GPIO to my raspberry.
I finally managed to make it work with Raspbian.
however, when I launch KODI, the image on the TFT freezes and KODI ...
0
votes
1
answer
2k
views
PWM object's ChangeDutyCycle method is not working
I have a motor class
but I dont' know why this motor cannot change speed
class Motor:
def __init__(self, pos, line_status=0):
def set_motor_gpio(_a, _b, _pwm):
self._A = _a
...
1
vote
1
answer
81
views
Raspberry Pi trigger signal time stamps
I need to generate a trigger signal (square wave) with up to 200 Hz for a sensor. For every rising edge of the signal I need to save (ideally publish as a ROS msg) the UTC time stamp. For this I want ...
0
votes
1
answer
49
views
Can I use the Adafruit PiOLED while using the fan pins on the RP4?
I have a feeling I'm not unable to do this but I would still rather ask the more knowledgeable folks just in case I'm either wrong or you happen to have an alternative suggestion.
I have my RP4 on a ...
0
votes
1
answer
60
views
Is it possible to power a pi 4 from 1 source and turn on and off using another power source?
I have a raspberry pi 4 and 2 5v power sources.
1 of the power source is always on and i would like it to power my pi.
The other one i will be connecting to a 5v to 3v converter and connect it to a ...
1
vote
1
answer
365
views
KY040 Rotary Encoder not responding at all
Hey I'm very new to raspberry pi and decided to start a mall project including a rotary encoder.
I found some guides online that I followed but I just can't get any signal from the encoder ...
0
votes
1
answer
26
views
Sonic Pi control
I would like to control Sonic Pi via the Rasberry Pi GPIO pins.
For example if a pin goes high, a tone starts playing.
It appears that Sonic Pi can only be controlled on the local machine using OSC ...
0
votes
2
answers
287
views
What is the default pin mode for GPIO 7?
I thought that all of the GPIO pins defaulted to input but I'm seeing that GPIO 7 (so is GPIO 8) is set as an output after boot up. Is it being used by something? If I take it over will I cause ...
1
vote
1
answer
518
views
Access GPIO pins through a Flask + Apache/mod_wsgi
I get an internal server error when I import the gpio pins library in my simple __init__.py file. And the debugger doesn't show up.
As I understand it, the server doesn't have the permission to ...
0
votes
1
answer
353
views
Raspberry Pi screensaver/DMPS on/off to trigger shell script on change
I've got a touch screen without backlight control and and turning off the HDMI-output just brings up a "no signal" placeholder on the screen.
I've soldered a octocoupler to the power toggle ...
2
votes
1
answer
3k
views
Controlling Linear Actuator
I am hoping to control a WINDYNATION 4" Stroke Length Linear Actuator with a Raspberry Pi for a senior design group project. Ideally, the program will make the actuator fully extend, and then retract ...
0
votes
1
answer
372
views
Raspberry Pi Johnny-five.io and GPIO pins
My code looks quite similar to this:
board.on('ready', () => {
const motor = new five.Motor('GPIO17');
motor.start(255);
}
The problem is that when I run the code, its gets error: Unknown ...
1
vote
2
answers
1k
views
Using GPIO to control 5v relay module not working
so this is my first time trying to use a Raspberry pi and I wanted to automate a motor using a 5v relay module. I'm using a Raspberry Pi Zero W. I am using a 5v 2amp power supply to power the ...
0
votes
1
answer
231
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 ...
2
votes
1
answer
5k
views
Daisy Chaining MCP23017 & Addressing
I'm looking to daisy chain multiple MCP23017 chips (upward of 10) to essentially give me more IO to play with from my Pi.
I've started to work on the circuit diagram, but I'm really lost with all ...
4
votes
1
answer
708
views
Turn off GPIO fan when the temperature lowers by more than 5 degrees
I am able to trigger my Raspberry Pi 3B's fan to turn on at 50 °C with the following line in /boot/config.txt:
dtoverlay=gpio-fan,gpiopin=3,temp=50000
However, it automatically turns off again when ...