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
1answer
17 views

Re configuring GPIO pins for SPI protocol

GPIO pins 19,21,23,24,26,35,38,40 are dedicated for SPI protocol. Is it possible to use other GPIO pins for SPI? If yes, how do we do it?
0
votes
0answers
27 views

How to continuously check Pin status in infinite while loop

I am working with Raspberry Pi 4 and using python for some project. The sample code is as below: while True: if( GPIO.input(a)==GPIO.LOW): if __name == '__main__': try: ...
-2
votes
0answers
33 views

SPI connection Between RaspberryPi and MAX4896 8-channel relay and load driver using Python

I have an automation project which I am currently working on and that can be summarized as the title says: Connecting a MAX4896 8-channel relay to the RaspberryPi 3B+ through SPI and using Python. ...
1
vote
1answer
41 views

How can Rpi3+ python use four GPIO pins to drive the unipolar stepping motor 28byj48?

I am working through the 'Ultimate Starter Kit" for my Raspberry Pi 3+. In Chapter 16 the tutorial shows how to work with a stepper motor. Note: The program works per the tutorial - I just cannot ...
1
vote
0answers
26 views

Two PIR Sensors - One with regular false positives

I'm having some false positives on a PIR sensor (HC-SR501), but with a slightly different set up to the previous questions on the topic I have found. I already had one PIR sensor attached to my ...
2
votes
1answer
53 views

Can I use a GPIO and do multiple things with it at the same time?

I have a GPIO that creates the PWM pulse. Would it be possible to have my python code read the same GPIO, and on high execute my code to read the ADC? Would that disrupt the PWM because I'm accessing ...
2
votes
0answers
18 views

Using GPIO on the Bitwizard DMX hat board

I have a rpi 4, with a relays board on top of it, and a Bitwizard DMX hat board on top of that. The Bitwzard board doesn't have a male header on the top, so I am unable to connect my sensors. It was ...
1
vote
1answer
46 views

Which GPIOs can receive DHT11 data?

The 'kookye' DHT11 tutorial suggests connecting to GPIO14 (TXD) at pin 8. An rpi3B+ and a relay board uses the GPIO14 for programming firmwware per the table: PIN GPIO CLASS RELAY ...
0
votes
1answer
32 views

Connect camera via gpio pins

is there anyway to connect wires from a camera to gpio pins on a Pi to use/control the camera? In my case this is the camera. to look something like this
12
votes
2answers
3k views

How do I avoid a temporary short circuit from destroying the PI?

I have a Pi 3b+ in a MIDI foot controller and part of the I/O is a pair of expression pedal sockets. After, ahem, getting the tip and sleeve round the wrong way, they are working correctly now. But, ...
0
votes
1answer
37 views

DHT 11 Sensor Voltages

GOAL A 3-Wire DHT 11 of unknown pedigree is to be connected to a Raspberry Pi: SDA GPIO The goal is to take "due diligence" and avoid frying an rPi. Thank you RESOURCES Ada Fruit's 4-pin DHT11 ...
0
votes
0answers
18 views

Multiple 5v Sensors on Pi4 [duplicate]

I'm just hoping to confirm before I blow up my new Pi4: I have three 5v sensors which I am already committed to for my automotive project. I have already set them up for use with Arduino and ...
2
votes
1answer
30 views

Control SPI Wirelessly

I would like to control a WaveShare e-Ink display wirelessly. I have lots of experience working with this type of device over SPI using the GPIO boards and the WaveShare python libraries. I'd like to ...
2
votes
0answers
24 views

More than 2 SPI slaves

I like to connect more than two SPI slaves to the Raspberry. Just want help how to configure my Raspberry Pi Zero.
1
vote
0answers
25 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
0answers
15 views

Threading,- GPIO, sleep not in sync python

I am having problem trying to figure out how to handle 3 threads. I have 2 threads for blinking LEDs, one is using gpio on device and other one is using remote gpio. I have them in 2 threads, because ...
0
votes
1answer
42 views

Operating 2 Gpio pins at same time

I want to write a program that can operate 2 gpio pins with different ON-OFF times at same time. Say the time duration is 2 sec. In this time duration, I want to set GPIO 4 HIGH for 1 sec and LOW for ...
1
vote
0answers
33 views

LIRC sending error transmission failed

I am trying to set up and send IR-Signals with my Pi using LIRC I was already able to receive signals and to configure them as a remote device. I followed this tutorial : https://gist.github.com/...
1
vote
0answers
37 views

Rpi AdaFruit python library controlling SPI MCP3008 of eTape Liquid Level Sensor problem

I have a rpi4 and have successfully replicated the project listed here using the eTape sensor (etape tutorial) I am satisfied with the performance using long breadboard and T-cobbler. In order to make ...
2
votes
2answers
61 views

How to power devices when all GPIO pins are in use

I have a number of RPi 4 boards that I'm clustering together in a single case. To consolidate power to a single wall outlet, I have them all connected together via a dedicated switch with PoE at each ...
1
vote
0answers
61 views

How to use Rpi UART to debrick a bricked LinkSys G Router?

I was working on a project that 'debricks' my bricked router(WRT54GL). Since this is my first time with Serial communication on any device, I have some questions to ask. This is the pinouts for the ...
1
vote
1answer
28 views

Don't know how to connect multiple MCP23017

I need more pins on my raspberry pi 3 so that I can use it to manage the lights in my house. I am going to use relays and MCP23017. I need to know how to use 8 of the MCP23017 on my raspberry pi. If ...
1
vote
0answers
28 views

Raspberry pi 0's GPIO not working (no output)

So I used to use a Raspberry Pi 3B to control my LED strip. It was, of course, an overkill but a fun project. I now want to do the same but with a Raspberry Pi Zero w. I got one, soldered the GPIO ...
1
vote
2answers
51 views

Protecting my Pi's GPIO pins when off

I have a Raspberry Pi 2 Model B and I am wondering if there is a pre-made solution, if I have to make it myself, or if it isn't an issue. For my project, the GPIO pins will be in constant use as ...
0
votes
0answers
39 views

“Hciuart.service dependency failed”, Timed out waiting for device /dev/serial1

I have the following problem: Since I wanted to use the integrated Bluetooth module on my Raspberry Pie 3 B+, I come across the following problem: Hciuart.service: Job hciuart.service/start failed ...
1
vote
0answers
37 views

What's the maximum rf fm signal that i can generate using raspberry pi?

I am planning to create a raspberry pi based monitoring system where my raspberry pi acts as a transmitter. I learned that we can use pi to generate FM signals from RPiTX project. I am planning to ...
2
votes
1answer
45 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
41 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
163 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
53 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
42 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
132 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
39 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
49 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
81 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
32 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
36 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
24 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
27 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
82 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
vote
3answers
52 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
66 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
37 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
52 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
89 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
50 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
48 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
69 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 ...

1 2 3 4 5 53