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

GPIO differences pi2 & pi3

i am going to post a program that was running the way i wanted it to on a pi2. it does not run at all on a pi3?? does anyone with a knowledge of the GPIO, see anything that would suddenly not work on ...
-3
votes
0answers
23 views

Is there a method to make a code a ui for my laptop that communicates with my Pi to run commands/scripts and send resulting data back to ui [closed]

So like i really need help with how would I go about making a UI for my laptop that communicates with Pi to run commands on my Pi to help run commands on the Pi to control Servo motors and run tasks ...
2
votes
0answers
17 views

How should I connect ten “MFRC522-based RFID” readers using SPI to the Pi Zero W?

Using the MFRC522.py library and SimpleMFRC522 extension, I have been able to pass tag ID information as well as the text block; but only for one tag at a time. Diving deeper into the MFRC522 ...
0
votes
1answer
38 views

Is this lcd display broken after I removed the pins? [closed]

I just removed the pins from this lcd display 16x2. However, during the process, bits and pieces from 4 of the pinholes were taken off as I removed the pins. This is a photo of the back of the display ...
0
votes
1answer
39 views

GPIO pins lose voltage when connected

I am still a beginner in raspberry pi world. I have a 3 B+ and a small water pump that can work with 3V to 12V, and a multimeter that I use to measure voltage. First when I measure voltage between ...
1
vote
2answers
155 views

Can you connect a power supply in series/paraellel to 5V & Ground GPIO pins

I am controlling a stepper motor and an LCD screen from one raspberry pi. Originally, the motor and screen were powered from the 5V output pin on the raspberry pi. I found that this would draw too ...
1
vote
1answer
43 views

Can Rpi receive serial/UART data through GPIO pin?

Can I receive data which is transmitted through UART port from a transmitter side raspberry pi on a receiver side Raspberry pi's GPIO pin??
1
vote
0answers
37 views

How can Rpi GPIO read the status of a water flow switch connected to a chlorinator?

My pool salt chlorinator uses a flow switch (https://harwil.com/product/flow-switch-model-q-12/) to detect when the pool water is circulating, which is one of the conditions to allow the production of ...
1
vote
0answers
14 views

Voice-enabled QnA bot [closed]

I want to develop a custom voice-enabled QnA bot. I am relatively new to the raspberry pi. I want to know if such a project is possible with this kind of hardware that raspberry pi offers. Please ...
2
votes
1answer
68 views

Relay does not turn off

I am trying to control a 4-Relay module with my Raspberry Pi 4. I tried to do that by writing this script: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) relais_1 = 8 relais_2 = 10 ...
1
vote
1answer
28 views

Rpi 4 Pin 29 default to High pull?

I am fairly new to Raspberry PI GPIO pins. I have some simple code which sets Pin 29 (BCM 5 in this picture) as an IN (READ) Pin and then reads from it after boot and on raspberry pi 3 it has always ...
1
vote
2answers
40 views

Am I missing GPIOs?

I'm currently trying to resolve an issue, where my OnOffShim doesn't shut down the Pi 3B anymore. So I checked /sys/class/gpio and was a little surprised that I don't find all GPIOs there: user@rpi:~...
1
vote
1answer
71 views

writing into fifo file and reading it

1.Transmitter side code: A)Recording audio into fifo file(no need to create fifo file separately arecord command will create fifo file): import os os.system('arecord -D plughw:1,0 -d 0 --rate=19200 ...
0
votes
1answer
30 views

Safe way to limit GPIO output time

I'm trying to figure out a fail-safe way to provide an output on GPIO pin of the Pi that would not be vulnerable to my (possibly) buggy code crashes. Is there a surefire way to do so? Scenario: I ...
0
votes
0answers
35 views

SDA/SCL values of accelerator VALUES get affected when I use other pins

Essentially the SDA/SCL reads the I2C values of the accelerometer perfectly fine when no other pin on the pi is active. I have connected 4 drone propellers and whenever I give thrust to them by ...
0
votes
0answers
20 views

Raspberry Pi controlled RGB LED strip very dim

I have followed this tutorial https://dordnung.de/raspberrypi-ledstrip/ to hook up my raspberry pi zero w to a 12V rgb led strip. The lights come on and are able to be controlled using pigpiod, ...
0
votes
0answers
26 views

What happens if a GPIO “in” pin is accidentally configured as “out”?

I have a 433MHz receiver connected to a GIPO pin (which is configure as "IN"). I was wondering what happens if the GPIO is accidentally configured as "OUT" during reboot, shutdown, or when another ...
1
vote
2answers
76 views

Multi-threading python function using list and dictionary of GPIO pins cannot activate a relay problem

At the first part of the code(Initializing relays) the GPIO output works as expected, but at the second part it doesn't works, I have break my head for the last four hours trying to find out what is ...
-1
votes
0answers
42 views

Serial reception through uart [duplicate]

I want to do real time voice communication through uart of raspberry pi 3b.Currently I am able to transmit data while recording it.But at receiver side I am not able to receive it properly.The code I ...
1
vote
3answers
45 views

How can Rpi GPIO read the 12V output signal from a Guardline Security Alarm?

My new Guardline Security Alarm can send a 12-volt output signal to an accessory device. I would like to send that signal to my Raspberry pi and have it send an email to my iPhone. I bought a SMAKN Dc/...
1
vote
1answer
60 views

lighting up LEDs from suricata security alerts

so I am a Python newbie attempting to write a script that will light up a different LED based on the priority level of the latest security alert added to a log file generated by the Suricata Intrusion ...
0
votes
1answer
35 views

Can a voltage at a GPIO pin with no mode set harm the pi

I have a Raspberry Pi 2 Model B, and I plan on using the GPIO pins to detect whether a voltage is present or not. However, the circuit that controls the voltage levels runs independently from the pi, ...
-1
votes
1answer
48 views

Turn GPIO pin to 5v pin

Is there a way to change GPIO function to use it as 5v power pin. Because all of the power pin used for the Touch Screen.
2
votes
1answer
51 views

5v/12v power source/submersible water pump/RPI/relay. What kind of combination is suitable?

I am using a 12v DC water pump with a 20 l/min flow rate, a raspberry pi 3B and a distance sensor. I would like to use a relay and an external power supply to control turning on/off the water pump. so ...
1
vote
2answers
48 views

Is RPi 4B protected against GPIO shorting?

I read that a Pi 3's +5/3V GPIO pins when they contact, potentially frying the whole computer. Does this still happen/what's the risk of this happening on a 4B? Is it "protected" in any way?
-2
votes
0answers
40 views

Generating arbitrary bandlimited waveform on GPIO 4 (GPCLK0) on Pi Zero W

I am trying to use the Pi Zero W to generate multiple FM signals concurrently, and I think that it is possible, but I would like for anyone to point out any problems in my method: The famous FM ...
2
votes
0answers
37 views

LIRC mode2 shows no output

I am trying to receive configure an IR remote control for my raspberry and I configured LIRC on the Pi and it works all fine but I won't be able to capture some output with mode2 -d /dev/lirc0 I ...
0
votes
1answer
32 views

Is it safe to put capacitor on 3v3 pin of raspberry

I am going to use INA220 ic for current monitoring, and the datasheet says: Use a 0.1-μF ceramic capacitor for power-supply bypassing, placed as closely as possible to the supply and ground pins. ...
1
vote
0answers
43 views

Sine Triangular PWM using Raspberry Pi 4

I am new to Raspberry pi. I want to make sine triangular PWM which will control the H-bridge of the inverter. I generate sine wave (50 Hz)and triangular wave (1500 Hz) using python language and ...
0
votes
1answer
21 views

polling gpio raspberry 2 doesn't work

i'm writing a library for my raspberry pi 2 for gpio control. I'm trying to test a function for read a gpio driven by interrupts with sysfs but i can't do that my function stops in poll() function. ...
0
votes
0answers
21 views

Bridge between Twilio API/phone line and closed circuit 20v intercom

Question about how to achieve the below using a Raspberry PI. What hardware would i need to buy and is the below possible? I have a closed circuit intercom system in my house. This is a video ...
1
vote
2answers
57 views

Whenever I restart my Raspberry pi 4, GPIO pin number 3 goes high and low very fast (bug in pi?)

I just switched from Raspberry Pi 3 to 4, which I use to control some devices. I just discovered that whenever Raspberry pi 4 boots, it changes the pi state of GPIO pin number 3 very fast from low to ...
0
votes
0answers
29 views

Pull up resistor is broken?

As far as I understand, after activating internal pull up resistor like this: GPIO.setup(pin, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.input(pin) should give me 1. However, I get 0 for pins 38 and 40 ...
1
vote
0answers
30 views

EasyDriver stepper motor through sysfs not moving

I'm trying to activate a stepper motor using easydriver from here https://www.schmalzhaus.com/EasyDriver/Examples/EasyDriverExamples.html using sysfs and C, but it doesn't move. I connected my ...
3
votes
2answers
146 views

SSD1306 OLED I2C Detection Problem

I know there are similar questions, but none of them helped me out. I have a Raspberry Pi 3 Model B Rev 1.2 and Raspbian 10 installed. I try to connect an 0.91" Oled display (Hardware Details) which ...
2
votes
0answers
36 views

Unable to intercept the code of my remote control at 433 MHz with RaspberryPi

I'm trying to reproduce the code generated by my universal 4-channel radio control with RaspberryPI. I cloned my remote with a universal remote like this: I used the libraries included in 433Utils ...
0
votes
0answers
24 views

i2cdetect show bus is different every time

I am use ToF sensor(VL53L0X) on my Raspberry Pi's GPIO,I discover one problem about VL53L0X. I am input command i2cdetect -l It's show i2c-1 i2c bcm2835 I2C adapter I2C ...
0
votes
1answer
35 views

GPIO ports going high on setup not output line

I hope someone can help with this, i've looked at similar Q&A's but haven't found an answer that solves the basic question. Right, trying to give all the info... I'm using a first generation B+ ...
0
votes
0answers
22 views

GPIO push button popout webpage

I have a project that I connected a push button to RPi 4's GPIO, and if I push the button it writes out "Button pushed". I wrote this code in python. Now I want this code to run in a webpage. So I ...
0
votes
0answers
34 views

How do I use extended pins with the Raspberry Pi?

Might be biting off more than I can chew with this project but I received a raspberry pi + touch screen kit and wanted to add 2 max31865 chips. Screen takes up most pins but luckily has ' extended the ...
0
votes
0answers
23 views

Looking for information on connect raspberry pi to ps2 console

I am wondering if anyone can tell me if it is possible or help point me ilin the right direction to information about connect a raspberry pi to a ps3 console and have it act like a controller. I have ...
1
vote
1answer
45 views

Crontab with WiringPi

I want to change pin state at certain time with Crontab. I tried to use this command: 7 0 * * * /usr/bin/gpio -g write 0 0 but it returns me this error: bash: 7: command not found I also tried: 7 0 * ...
6
votes
1answer
46 views

Debounce code for reed switch rotation counter

I have just finished my first ever Raspberry Pi project (a hamster wheel counter that uploads to Thingspeak) following an online project I found that included the code. (https://www.hackster.io/...
0
votes
2answers
112 views

How to decode a 433MHZ signal

I've made the classic 433mhz send/receive experiment, using cheap hardware on the same breadboard and same raspberry, I've wired both sender and receiver to VCC 5V, GND to GND and data to GPIO 27 (...
0
votes
0answers
19 views

GPCLK: my CLK_CTRL register has the right bit assignments, but my CLK_DIV register is wrong and my program keeps crashing

I can't figure out what about my code is wrong. I've been using the BCM2385 Manual (particularly pages 107 and 108) and this GPCLK guide. I'm using a Pi 3 Model B right now, so based on this it sounds ...
1
vote
1answer
64 views

Controlling LEDStrip using Pi (3B+)

Yo, My name is Fabi, Like 2 Months ago i started this "Project". I wanted to controll my LED Strip using my Pi. And this pi should host a Local webpage so i could control my led strip using any ...
1
vote
1answer
24 views

How to send keyboard strokes from a rpi trough rx/tx to a windows pc (preferably with python)

I want to play around with an rpi to send keystrokes or keycombinations from my rpi to a windows pc. I dont want to configure anything on the windows pc in order to achieve it. So far all the ...
0
votes
0answers
49 views

My Pi is annoying my security alarm system

I'm a bit of a Pi addict - we've got six Pis around our house doing various things. My latest project was to add a little bit of smart control to our dumb MHRV (Heat Recovery) system. I've got a Pi ...
1
vote
0answers
24 views

Arducam blocking i2c

Ive been trying the get the Arducam 16MP IMX298 Color MIPI Camera Module to work with some I2C controlled LEDS. Im able to detect the LEDS and controll them perfectly. i2cdetect -y 1 shows 4 ...
1
vote
1answer
33 views

Connecting multiple wires to a single GROUND pin?

I'm working on a project for my Intro to Computers class, and I need to light up several LED lights in a row with my Raspberry Pi (Model 4)(Using a breadboard). I'm sorry to say, but I am a beginner (...