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
1 vote
0 answers
27 views

Not getting an GPIO output

I am trying to light a led with the raspberry pi 3b, but I am failing to get an output. I connected the LED to physical pin #11: [img]https://i.imgur.com/TYeJc10.jpg[/img] And to physical pin #6(...
user avatar
0 votes
1 answer
18 views

Arming an AreoStar ESC with Raspberry Pi to manage brushless motors

I am trying to set up a brushless motor so I can control it via python. I have a AreoStar ESC and the manual says to enter the menu for the motor you must first set the throttle to 100%, then plug in ...
user avatar
  • 109
-1 votes
1 answer
33 views

GPIO detects rising edge but does not change status to 1

I am really confused: I have a lightbarrier connected over an optocoupler (ACPL-827) with my Raspberry Pi. When the lightbarrier gets triggered (detects a rising edge), it calls the scan-function. ...
user avatar
0 votes
1 answer
25 views

NodeJS cannot read some RaspberryPi GPIOs

I want to read 5 buttons from RaspberryPi. I installed the latest 64-bit OS bullseye on brand-new Raspberry 4B. But somehow only GPIO23 can be read, the other GPIOs can not. When I connect GPIO23 to ...
user avatar
0 votes
0 answers
23 views

GPIO 12 failed pull up (constantly reads low) after stable use for 1-2 days

Raspberry Pi B+ I had 2 float sensors with one connected to gpio 16 and one to 12. The other wires goes to gnd; it's basically a simple switch. The pigpio gpiotest was fine initially and after 1-2 ...
user avatar
  • 101
0 votes
3 answers
31 views

RPi pin state on startup not default

I have 2 Raspberry Pis a model 3B+ and a model 2. Both are loaded with identical software (I cloned the SD card using the raspberry SD card copier). They are running PRETTY_NAME="Raspbian GNU/...
user avatar
  • 1
1 vote
1 answer
103 views

AttributeError: module 'RPi.GPIO' has no attribute 'ChangeDutyCycle'

Starting Day 2 troubleshooting this error. Code used to work on a previous rasp pi 4B but doesn't on a new one so I'm assuming I'm missing some breaking change. Problem: Using import RPi.GPIO as GPIO ...
user avatar
  • 153
-1 votes
0 answers
27 views

Connecting a RPi to an Arduino Motor Shield

My friend and I are building a robot and we need to connect an Arduino Motor Shield to a Raspberry Pi (picture added below) but we don’t have access to a Breadboard and neither can we get one, does ...
user avatar
1 vote
0 answers
21 views

adafruit_hcsr04 sonar not working on certain GPIO pins pi 4B

I have 8 adafruit_hcsr04 range finders wired in the exact same way to a raspberry pi 4 but only 4 of them work and i'm at a loss. I've verified with an ohmmeter the echo and trigger pins are ...
user avatar
  • 153
0 votes
0 answers
27 views

I2C OTHER PINS IN RASPERRY PI FOR I2C LCD

I am planning to put a power button on my raspberry pi 3b+ which uses the PIN 5 in order for me to shut it down and turn it on again when I wanted to. However, pin 5 is I2C CLOCK which is used for the ...
user avatar
1 vote
2 answers
52 views

Raspberry PI noise reduction on analogue sensors

I am trying to reduce noise on an analogue sensor. I have scanned many forums for answers and spent multiple hours / days on finding the optimum solution. I am using ACS712-based sensors and the need ...
user avatar
2 votes
2 answers
141 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....
user avatar
  • 23
0 votes
1 answer
54 views

My relay triggers on access. How to disable this?

Is "normally" open relay opened on 0V or 5V? Here it is written that yes. But here it is written that no. What is the truth? Experimentally I see, that my relay module LED lights ON and &...
user avatar
  • 129
0 votes
0 answers
17 views

pi zero as 4 pin power switch

I need to be able to remotely turn on/off a 4 pin power switch, can that be done with pi zero? the current setup uses a 4 pin power switch to power a PID controller from a power source, so what I'm ...
user avatar
1 vote
0 answers
20 views

Connect several sim800l with external power supply to the uart of ip4 and floating ground

I am creating a circuit with several sim00l connected to different UARTs each with its own external power. But I'm curious if having other objects like cooler-fan connected to other GND of the rpi ...
user avatar
0 votes
0 answers
12 views

Raspberry pi 4, data received from UART different from USB serial

I'm new to Raspberry pi. I writing a program that send/receive data from serial. Everything works fine with the USB to RS232 cable, but now I'm testing with the UART pins to RS232, and the data sent/...
user avatar
5 votes
4 answers
2k views

Raspberry Pi DPI only works over short distances. Why?

I would like to use the Raspberry Pi 3B+ to operate the rectangular HyperPixel 4.0 touchscreen from Pimoroni. However, I don’t want to plug the touchscreen directly onto the Raspberry Pi, but instead ...
user avatar
0 votes
1 answer
18 views

Controlling multiple servo motors on rpi 4

Do I need a hat module for my raspberry pi to control 6 servos? I’ll be using an external power source.
user avatar
  • 11
1 vote
1 answer
50 views

Controlling stepper motor with Raspberry pi

I am building a sorting machine for a project where I want to sort the balls based on their color. For the actual sorting mechanism I am using a stepping motor (NEMA 17 with Driver DRV8825). I ...
user avatar
-1 votes
1 answer
23 views

How to assign one input when matrix keypad key is held down?

I have a simple matrix 3x4 keypad that executes a function based on the code entered. However I'm running into the issue when someone holds down a key. I would like it to where only one value is ...
user avatar
  • 1
0 votes
2 answers
32 views

No data from DS18B20 sensor in w1_slave

I have added 2 DS18B20 sensors to my Raspberry pi 1, both sensors shows up in /sys/bus/w1/devices and I can only read data from one of them, the other simply has a empty w1_slave file. They are not ...
user avatar
  • 11
0 votes
0 answers
55 views

Raspberry pi camera coding questions

I've been coding a little portable Pi camera using a raspberry pi zero, the HQ camera module, and a waveshare 1.44-inch screen. I've succeeded in programming a button to take a photo, and a button to ...
user avatar
  • 109
0 votes
1 answer
57 views

How can gpiotest fail on all GPIO pins?

When trying to pin down a communications issue with a GPS module attached to my Pi's UART, I disconnected all peripherals performed a test of all GPIOs using gpiotest. This is what came out: pi@...
user avatar
  • 445
1 vote
2 answers
44 views

How do I control a fan attached to GPIO pins on Android?

I installed android tv with konstakang on my Raspberry pi 4 device. While using linux with GPIO pins, I made fan control with python according to temperature. How can I use GPIO fans on Android?
user avatar
  • 111
1 vote
1 answer
67 views

Could Not Determine Platform Error

I am using the following tutorial to make a moisture sensor using a Raspberry Pi 4: https://www.instructables.com/Measuring-Soil-Moisture-Using-Raspberry-Pi/ When I have run my code, I get the ...
user avatar
  • 13
0 votes
1 answer
23 views

modprobe does not release GPIO pins when removing driver

I've got a custom driver, which gets loaded on boot (I compiled a kernel image for it). It uses a number of GPIOs, as defined in the device tree overlay (specifically, the cam gpios of the raspberry, ...
user avatar
  • 101
0 votes
1 answer
31 views

Difference between Pi3 and Pi4 RUN headers?

I am trying to disable boot when pi4 plugged to power. I found some usefull answers, but that answers are about pi 3. I am using pi 4 and I must connect together 2 RUN header pins. In pi 3 RUN header ...
user avatar
  • 1
0 votes
2 answers
64 views

Get Measurements from Battery/Solar Setup

I'm planning a setup with an rpi3b+ and the pijuice hat (battery) and pijuice solar module. It is key to my project that I can access the following data digitally i.e. in the pi: current power ...
user avatar
  • 1
0 votes
0 answers
36 views

How to disable boot when plugged to power? [duplicate]

I want to disable boot of raspberry pi 4B when plugged to power I have searched a lot and found a similar question, which gives a short and suspicious answer to this problem. If two RUN pins(holes) ...
user avatar
  • 1
0 votes
1 answer
45 views

ERROR: PWM Generation using pigpio C library

I am working on the RPI-CM4 board with raspbian buster OS. I am trying to generate the 38KHz PWM wave using pigpio the library. My code is as follows. #include <pigpio.h> #include <unistd.h&...
user avatar
1 vote
2 answers
94 views

GPIO Button Wiring

Edited: Question re-written Hello, So I am looking to build a system that will have around 400-500 input buttons. These buttons are basically used to select an option so only 1 button will ever be ...
user avatar
  • 11
0 votes
1 answer
55 views

Direct Access RPI-4 GPIO Interrupt

I am working on the RPI-CM4 board with raspbian buster OS. I am building an application to get interrupt events from the GPIO pin, fluctuating its state @20usec. I have tried the following things... ...
user avatar
0 votes
1 answer
54 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 ...
user avatar
-1 votes
1 answer
35 views

Can you use gpiozero wait_for_press() inside of a callback triggered by add_event_detect?

I am trying to write a script that uses a GPIO interrupt to callback a function that starts by playing a sound and then waits for a button to be pressed to start recording a sound, and then waits for ...
user avatar
0 votes
1 answer
56 views

Minicom not working

I am trying to connect my Pi 4 running Rasbian 2020 to an Arduino, after making all the connections I try to communicate with the Arduino by using Minicom. However, Minicom doe not respond to anything ...
user avatar
1 vote
4 answers
303 views

Confusion with libgpiod and the gpiod user tools?

For some time I've heard about the new GPIO character device API, sysfs deprecated, etc. Since I recently upgraded one of my RPi to bullseye, I decided to try this new API - or at least the "...
user avatar
  • 17.4k
-1 votes
1 answer
54 views

Turn LED off and on using I2C, SPI or UART GPIO Pin

I have project requiring several simple LEDs and buttons, MORE that the number of ‘simple’ GPIO pins. Can I turn the LED TOTALLY OFF and on using a IC2, SPI, or UART pin? Can those pins be programed ...
user avatar
2 votes
2 answers
54 views

Erratic GPIO event callback

I have a Raspberry Zero connected to the SO pulse output of an energy meter (ABB C13) using a direct connection to GND and GPIO13 configured as input with pull-up resistor, and a Python program with ...
user avatar
  • 123
1 vote
3 answers
49 views

Any danger to supplying multiple GPIO with small voltages

Very new to GPIO and wiring circuits so I'm hoping someone can clarify whether what I'm doing is going to be safe for the Pi. In my original question I was looking for the way to get my 12V supply ...
user avatar
  • 391
2 votes
3 answers
64 views

Haunted House - ceiling fan triggering pi button

I have a raspberry pi 3b+ and a haunted house. My raspberry pi sits in the living room tv cabinet (with adequate ventilation) as a server. I had a large button lying around, so i put it inside a small ...
user avatar
  • 123
0 votes
1 answer
226 views

Install GPIO problem

It seems like I cannot download GPIO...
user avatar
2 votes
2 answers
89 views

SSH connection status indication through GPIO LED

I am looking to implement this feature where an LED connected to Pi GPIO should turn on whenever the Pi is successfully connected to a PC by SSH and turn off otherwise. Appreciate any help in ...
user avatar
0 votes
0 answers
80 views

Consistent Motor control - specifically 180 degrees

I am struggling to get my motors to perform the same on each run. The first time I run the program, they will perform the same movement about 8/10 times. The second time I start the program, the ...
user avatar
1 vote
1 answer
39 views

Sense 240v current flow externally

I have a situation where I suspect my well pump is short-cycling, and I'd like to rig up some sort of sensor that can detect when it comes on and send me an alert. I'm thinking a Pi should be good for ...
user avatar
-1 votes
1 answer
54 views

Can 2 different wires be connected to the same GPIO pin?

I am trying to make a voice assistant with the Raspberry Pi and ReSpeaker 4-mic array. ReSpeaker 4-mic array requires 40 pins to be connected to Raspberry Pi. But besides that, I want to connect the ...
user avatar
  • 1
0 votes
2 answers
115 views

How to run a python script on raspberry pi from an android application?

I am currently working on a project where I have to develop a Camera Security system and an android application. The camera system provides live streaming videos and also has the ability to detect ...
user avatar
-1 votes
1 answer
47 views

Having all GPIO signals and making an OR between them

I have a Raspberry Pi 4 to be used to give signal to a relay. When I was experimenting, I somehow manage to make one of the GPIO pins not working. When I use another port, it perfectly works. I don't ...
user avatar
0 votes
2 answers
77 views

How do I diagnose GPIO issues?

I was soldering LEDs in an extended line the other day when I accidentally forgot to shut my Raspberry Pi 4 off. I continued to solder and soon enough shorted my Pi out. It rebooted quickly and all ...
user avatar
0 votes
2 answers
51 views

Using multiple LDRs and capacitors with Raspberry Pi 3B +

I am pairing an LDR with a capacitor to to make a light sensing project by returning the value of the variable COUNT when the capacitor is charged. But when i do this with 2 or more LDRs the values of ...
user avatar
  • 1
-1 votes
2 answers
119 views

12V LED/switch - where to insert resistor to connect to PI GPIO

Hoping someone can help me with connecting my 12V push button LED circuit to a PI GPIO. I want to be able to sense when the button is pressed and the LED lights up using python. From what I've read I ...
user avatar
  • 391

1
2 3 4 5
64