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
10 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
1answer
88 views

GPIO pins mind bogling error

Raspberry pi 3 b+ I'm trying to make an Obstacle avoidance obstacles. It's a very simple project. I tried with one ultra sonic sensor, it worked. Gave me the distance which i could further ...
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: ...
0
votes
1answer
692 views

Hardwarw PWM via GPIO zero

I heve problem. I don't know if GPIO zero supports hardware PWM. Does it? Where can i change software PWM to hardware PWM? I know rpiGPIO can use hardware PWN for sure but I'd like to continue use ...
1
vote
1answer
62 views

Power supply issues - reboots continuously but GPIO power working

My Raspberry Pi 2 was working with OpenELEC os properly. Suddenly it had stopped working. I don't know whether it had updated anything automatically. It is continuously rebooting. I could see the ...
0
votes
1answer
94 views

Pi Zero Gpio Extender Reset

I currently have a project I'm working on using a Raspberry Pi, connected via I2C to a GPIO extender (MCP23017), which is using a Transistor (TIP120) to control a Solenoid Valve and a DC Motor in ...
-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. ...
2
votes
1answer
68 views

fork() Process Issue on Channel Switching via Rotary Encoder

I have KY040 rotary switcher(encoder) as shown below picture. It is the scenario that there are 5 radio stations(simple html url) in urls.txt which are read into stations list in radyoCS.py, at every ...
6
votes
2answers
14k views

Raspberry Pi 3 model B “dtoverlay=gpio-shutdown”

To my /boot/config.txt on Raspberry Pi Model B I added: dtoverlay=gpio-shutdown,gpio_pin=3,active_low=1,gpio_pull=up Right now nothing happens when i shorten GPIO#3 with ground. What else needs to ...
2
votes
1answer
71 views

Problems with my DIY floater

I've created a sort of sensor to detect whether the water level in my aquarium is too high or too low. Hardware part: See this schematic for how it works: So the red part floats on top of the ...
0
votes
1answer
73 views

Different modules

What are the things to be considered when connecting 3-4 different modules to raspberry pi3? Ex: i am using 4 modules namely RFID reader, hall effect sensor, gps and some push buttons. Need to ...
1
vote
1answer
113 views

Multiple Raspberry Pi zeros (no wifi) + touchscreen. Daisy-chained communication?

I'm trying to devise a solution that will connect multiple Raspberry Pi zeros together for communication between them. I'm using a touchscreen on each of them, so GPIO pins 1-24 are taken. Also, I'm ...
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
2answers
322 views

File transfer between raspberry pis via GPIO pins

I'm trying to send image(3MB) captured by one pi to another pi, external WIFI or setting up one pi as AP is not possible due to strict regulations, all I can use are the two wires. Currently I'm ...
2
votes
1answer
52 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
1answer
84 views

Javascript pm2 fails to persist my scripts at RPI boot time

I do this to make my scripts run on Raspbian start: sudo pm2 startup ubuntu sudo pm2 start my_script.js sudo pm2 start another_script.js Yet, RPi starts without them, what can be wrong?
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
223 views

WittyPi on Pi Zero W - I2C read / write fail

I've connected WittyPi2 (an RTC Power Management hat) to my Pi Zero W - but I'm constantly getting failures in the log, to do with the I2C communication: I2C read 0x01 0x68 0x09 failed (result=), and ...
1
vote
1answer
145 views

RaspberryPi 2 GPIO stopped working

I have RaspberryPI with Arch Linux and everything was going well, until this morning when I tried to do my usual work on it, it sounds like nothing happening at all, I have checked with pintest (I use ...
-1
votes
1answer
155 views

Raspberry PI SPI interface

I'm looking at a Raspberry Pi and I am a bit new to Serial Peripheral Interface. I see the Rasperry Pi has two SPI interfaces on the GPIO pins. Can one SPI interface be programmed to connect to ...
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 ...
0
votes
2answers
530 views

Raspberry pi 12v relay

I have bought this relay: https://rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.ebay.co.uk%2Fulk%2Fitm%2F262722739443 In the '1 channel 12v relay' variety I am going to be using it to power ...
1
vote
1answer
88 views

How can I connect an EasyADC board mikroe340?

I've got a 4-channel 12-bit ADC "Mikroe340" from Mikroelektronika (datasheet). I'm wondering how to wire it with GPIO.
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
406 views

Change GPIO pins for official Raspberry Pi 7" touchscreen

I need to use different GPIO pins with the Raspberry Pi official 7" touchscreen. I'm already using pins 3, 4, 5 and 6 with a hat, and it would be a pain to change them. I've looked through several ...
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 ...
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 ...
1
vote
1answer
136 views

Problem with LED blink program on Pi

I am completely new to RPi and stuck unexpectedly. I am trying to create a simple python program to make my LED blink. Here are the two programs which are giving same outputs on terminal when I ...
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 ...
1
vote
1answer
460 views

Connecting Hifiberry Digi+ clone (PiFi Digi+ V1.0) to an Raspberry Pi 1 B (26Pin Header)

Hi I wanted to make use of an older Raspberry Pi and build an Volumio Music Player. I ordered Hifiberry Digi+ clone (PiFi Digi+ V1.0), unfortunately I forgot I own an older Raspberry Pi 1 B with the ...
2
votes
2answers
131 views

Vibration-induced power loss problem

I am a pilot using a Pi 3 as an ADS-B receiver for a gyroplane. It works really well provided I don't try to have the Pi mounted to the aircraft anywhere. As soon as I do, the vibration seems to cause ...
0
votes
2answers
503 views

How do I approach using the GPIO to control an on/off signal to a heating system in my house?

Currently the heating system in my house works as outlined in the following diagram. I push a button on the thermostat which will either turn on or turn off the thermostat. When the thermostat is ...
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
1answer
194 views

Barcode Scanner using RX & TX (GPIO) PIN

Im having some issues reading from a barcode scanner module.. The scanner works just fine if it is used with a USB adapter, my goal is to use the RX & TX GPIO of my RPi to control it. What I am ...
0
votes
1answer
146 views

SimpleMFRC522 stop reading after some time

My code stack after some time (example 1 day) after reading MFRC522 in loop mode. At the beginning it works without problems, after some time is not working anymore. I can't figure out why. Can you ...
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
310 views

Can I connect GPIO pin and ground to a PC motherboard power switch to turn it on/off

I would like to use RPi to connect a jumper cable from PC Motherboard power switch to a GPIO pin and Ground to be able to turn the PC On/Off automatically and remotely. Would it work and is it safe?
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 ...
0
votes
1answer
71 views

Clearing edge detect registers (GPEDS0/GPEDS1) crashes Raspbian Stretch

I've been working on a PHP library for Raspberry Pi for a few years now, and since (not sure specifically which) a version of Raspbian Stretch, the Pi becomes completely unresponsive when clearing the ...
1
vote
2answers
280 views

Multiple RPi and multiple external 5V power sources. Connecting all GNDs = ok?

First off, I'm a noob when it comes to hardware/electronics. Barely started and not planning on getting too deep in it. I have a bit complex setup that boils down to multiple RPis (around 13, with ...
0
votes
1answer
118 views

GPIO button to complete input prompt

I would like to prompt the user for input, then with the push of a GPIO button, submit the input value. This is tricky since the GPIO button polling is typically done in a loop. I was thinking that ...
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 ...
0
votes
1answer
172 views

Using I2C and the adapters

I am trying to use the GPIO pins for I2C communication between the master and the slaves and have been using this page as a reference for me on how to do it. The code is run from userspace daemon. So ...
1
vote
1answer
378 views

Pi 3 reboots when GPIO 13 is given 3V

simulate this circuit – Schematic created using CircuitLab I am taking the 3V from Pi and giving it to COM of a relay. The NO goes to GPIO 13 of the same Pi. I have a 120V line that triggers ...
0
votes
1answer
217 views

How to get gpio status on an output pin in ruby

I'm using the Pi to control some decorative lights. I turn the lights on and off via cron scripts and would like to get status on the lights as well. When I run the code below, it reports 'on' if ...
0
votes
1answer
132 views

Rasberry Pi LED GPIO using Python

In my project I invoke a python script via node.js on my Rapberrypi B+ model and what the python script does is that it turns on the BCM GPIO ports as per the python arguments passed through the ...

1 2 3 4 5 53