Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
2answers
89 views

RPi 1 Model A input/output pin ratings

RPi 1 Model A here. Brand new to RPi and electronics in general. I'm finding a hard time finding the exact voltage/current "ratings" for my model but the closest I could find was a comment under this ...
1
vote
0answers
771 views

Set permissions and group for /dev/gpiomem permanently [duplicate]

I need to allow my user access to the GPIO pins and found following solution. Access GPIO pins without root. No access to /dev/mem. Try running as root! This works perfectly. All I need to do is ...
1
vote
1answer
619 views

ESC Control with PS3 Controller using Python [closed]

I have connected my PS3 controller to the raspberry pi using a bluetooth dongle. I am not sure about how to structure the code to control the ESC with the left joystick (axis 1). Could anyone advise ...
1
vote
1answer
2k views

Raspberry PI 2 Model B Not Detecting ds18b20 Sensor (Tested with Multiple Sensors)

I just wanted to ask some advices. I have tried everything I could find, including : /boot/config.txt add Line dtoverlay=w1-gpio,gpiopin=4 Update and Upgrade Updating firmware Buying new Sensors. ...
1
vote
2answers
3k views

MFRC522 Not working over SPI Interface

I am running (on a Pi3) an MFRRC522 reader - much like this one: It has been working fine, but after I changed SD card, to increase capacity - whilst also doing a new Raspian install I haven't been ...
0
votes
0answers
745 views

Simple Buttons with GPIO, not working

I' following this tutorial to have two buttons working with my Pi. The code I have is the same: import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(23, GPIO.IN, pull_up_down = GPIO.PUD_DOWN) ...
0
votes
2answers
11k views

Controlling Raspberry Pi GPIO ports using node.js

I want to use node.js to parse data from a java script application back to the node.js server, I have accomplished this in a very rudimentary form and now I want to have the data turn on or off the ...
0
votes
1answer
1k views

Controlling servo SPEED with either pi-blaster or pigpio

Ultimately I want to be able to control up to 8 servos using node.js - I'm able to control the servos using either pi-blaster or pigpio, but how do I control their speed with which they move?
0
votes
2answers
5k views

Run a shell script from a python script when a button is pressed

I'm trying to create a very simple python script that waits for a GPIO button press and then runs a shell script. I personally don't know much about python so what I've come up with is mostly from ...
0
votes
2answers
3k views

ZFM-60 fingerprint reader via GPIO

I'm trying to connect a ZFM-60 fingerprint scanner (https://aliexpress.com/item/Free-Shipping-USB-Fingerprint-Sensor-Support-Android-Windows-System-Optical-Fingerprint-Reader-Sensor/32475559052.html?...
0
votes
1answer
221 views

Raspberry pi 3B+ won't boot, solid red light

My Pi won't boot, I was coding my Pi when my friend came and wanted to see a movie from the Pi, I shut it down normally and close the power supply, then changed the SD card that had kodi on and tried ...
0
votes
1answer
454 views

Connect multiple SPI e-paper devices to a single Pi

So I'm thinking of getting these 2.9" displays: https://www.waveshare.com/wiki/2.9inch_e-Paper_Module#Working_with_Raspberry_Pi they come with an SPI interface that can be connected to the Pi. Is it ...
0
votes
1answer
945 views

How to address gpio pins

I'm kind of new to raspberry pi, and I saw a tutorial about making a LED blink. The LED was connected to pin 17, but the tutorial said pin 11. I connected the LED to pin 17, and in the terminal I ...
0
votes
1answer
317 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
19k views

Reading pin state whether it's input or output using Python's RPi.GPIO

Is it possible to read the pin state (1 or 0) whether it's set as output or input without setting this with RPi.GPIO.setup (pin, GPIO.IN/GPIO.OUT)? I mean, I can do this via this command: gpio read ...
0
votes
2answers
456 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 ...
0
votes
1answer
1k views

Safe to solder directly onto Pi GPIO pins?

I just purchased an Adafruit 2.2" PiTFT screen with the intent of fitting it inside an official Raspberry Pi case. If fits pretty well just resting directly onto the GPIO pins (without the supplied ...
0
votes
0answers
244 views

How to connect sensor to Raspi via poor man’s a/d converter?

TL/DR: I’m using this and there are things I don’t understand about this circuit. Ultimately I’d like to read data from this sensor, but all I get is gibberish. Please, help. I have set up “poor man’...
0
votes
2answers
975 views

can I connect 5v to GPIO pin on startup?

I have a bunch of stuff set up on my pi (RPI 3 for the record), but one of the things I want to run is an RGB LED which is common anode. I have successfully gotten it working by connecting the common ...
0
votes
1answer
679 views

Connecting DHT11 sensor

I want to use the DHT11 sensor with my Raspberry PI 2 Model B. I'm using pin#01 for the VCC, pin#39 for GND, but I don't know which pin should I use for DATA? Should I enable some GPIO ports to use ...
0
votes
1answer
1k views

What GPIO pins are required to Power RPi? [duplicate]

We are using Raspberry Pi Model B: We used USB connector from PC - confirmed output - 5V, with 2 leads: Connected +5V to Pin 2 Connected GND to Pin 6 on connector - Inserted Ethernet cable ...
0
votes
1answer
193 views

Reading Output signal from external circuit using Rpi GPIO Pin

I am trying to read a signal coming from an external circuit thru the use of raspberry pi's gpio. the signal I am trying to read is a 3.3V signal coming from a voltage divider circuit. this circuit ...
0
votes
1answer
89 views

What pins to close a circuit [closed]

I'm using a Raspberry Pi 3B. What is the easiest way to make and break a single connection under program control - just like touching two wires together?
0
votes
1answer
136 views

GPIO ribbon cable with multiple connectors

I need to connect multiple extension boards to single Pi3B+. I have checked that they will not be using the same GPIO signals. I am thinking of using a single ribbon cable with one female (for the Pi) ...
0
votes
1answer
171 views

Momentary Switch Auto Activating Pull Up Resisitor

My setup is like so: A Raspberry Pi B+ acting as an airplay audio receiver using shairport. The Pi connects to a 100V line Amp which feeds the audio out to several installed ceiling speakers around ...
0
votes
3answers
365 views

Powering an element that draws more current/voltage than GPIO can supply?

I'm a little over my head here and I'm hoping someone might be able to help. I'm trying to control this Heating Pad using Raspberry Pi GPIO pins, turning it on and off via GPIO. It takes 5V DC and ...
0
votes
0answers
301 views

minimal delay on waking monitor via GPIO/HDMI-CEC

I'm planning on creating a "Magic Mirror". I have already got the UI running to my likings and my Pi-zero is on its way. My concern is that having the mirror powered on 24/7, is not really eco-...
0
votes
2answers
373 views

PIR Module False Positivesq

All I am working with a PIR Module and a camera for a project to provide text messaging when motion is detected as well as taking a picture. I am seeing a large number of false positives from the PIR. ...
0
votes
1answer
5k views

Trying to use PiGRRL 2.0 Custom Gamepad PCB but there's no documentation on how to program the buttons

I have this gamepad PCB from Adafruit: https://www.adafruit.com/products/3015 In their guide it's supposed to work with the file they give you but that image only works on raspberry pi 2 and I'm ...
0
votes
1answer
34 views

GPIO pin turns off immediately when switch is connected, turns back on when disconnected

I have no problem turning on and off pins on my rpi4 (using both gpio on the terminal and Gpiozero with python3) however when I connect a wire (which is connected to a switch) to the pin... it turns ...
0
votes
2answers
4k views

Is 3V3 of Pi enough to power 5V relay

First of all I am asking this question out of curiosity, I have no knowledge of electrical devices other than understanding of few terms that I learned in school. I am planning to work on home ...
0
votes
1answer
2k views

Can the GPIO pins be used for serial communications?

I in the planning/information gather stage. I want to replace the guts of a robo dog with a raspberry pi 3. It seems to have 8 serial interfaces with 8 pins(not necessary all in use). I am trying ...
0
votes
1answer
485 views

Pi works, GPIO part will not cooperate

I bought the Canakit, which comes with all the necessities: breadboard the T-Shaped GPIO to Breadboard Interface Board Wires LEDs and other useful things. As soon as I opened my kit, I immediately ...
0
votes
1answer
420 views

How to open multiple RC522 reader device on android things?

I use Raspberry pi 3 model B on Android Things. for RC522 communication, I use https://github.com/Galarzaa90/android-things-rc522 this source success work, only 1 RC522 reader device but I want 2 ...
0
votes
2answers
239 views

On the Raspberry Pi 2 Model B, Where do I plug the Energenie module?

I have a Raspberry Pi 2 Model B. The GPIO pins look exactly like this: I bought the Energenie Raspberry Pi RF-Transmitter Board. The instructions (https://energenie4u.co.uk/res/pdfs/ENER314%20UM.pdf) ...
0
votes
1answer
654 views

Try & Except fail to catch OSError

I'm trying to check if remote machine (RaspberryPi) runs pigpiod- a daemon needed down the road to control its GPIO, using Python. if remote/ machine does not run pigpiod an error is displayed : >...
0
votes
1answer
214 views

Raspberry get stuck after some days of working

I've read a lot of post dealing with raspberry boot problems. My case is slightly different. I've bought a raspberry pi some months ago, just for trying it and learn a little bit of python, I've ...
0
votes
2answers
549 views

Getting NMEA string from GPS module to your Raspberry PI B+ [duplicate]

I would like to ask if it possible to get NMEA code/string from a GPS module that connected to one of the GPIO of a Raspberry?
0
votes
1answer
103 views

Digital signal calibration

#!/usr/bin/python import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) while True: val = 17 GPIO.setup(val,GPIO.IN) val1 = val * 1200000/255 print val1 GPIO.cleanup() A serial monitor (...
0
votes
2answers
3k views

Controlling Buzzer Module - No sound

The wiring seemed pretty trivial as did the required code. I have the following buzzer module: http://www.ebay.com/itm/KY-006-Passive-Buzzer-Module-Arduino-AVR-PIC-/370886693686?pt=...
0
votes
1answer
117 views

enable software i2c on raspberry pi gpio

I am trying to interface more than one sensor with Raspberry Pi Zero W, which communicate using i2c interface. So far I am able to connect sensor to dedicated i2c and read the data. Want to know ...
0
votes
1answer
1k views

Problems triggering via GPIO

I am building a network of Raspberry Pis, and want a lot of Raspberrys to take a picture after receiving a Trigger Signal. I want to send this Trigger Signal via a GPIO Pin. It sounds simple, and I ...
0
votes
4answers
297 views

How to resolve “RuntimeError: Unable to export GPIO. Try to run as root!”?

I have interfaced a push button switch and LEDs to GPIO. Whenever I try to execute the script from command line, the code python /home/myPi/myProject/run.py gives me the error RuntimeError: ...
0
votes
0answers
45 views

Is it possible to plug in and out sensors, LED-s etc. on the breadboard while the Raspberry is running?

What I would like to do, is to let the Raspberry Pi run and while it is running, connect and disconnect eg. sensors whenever I please to/from the breadboard WITHOUT turning off/disconnecting the Pi ...
-1
votes
2answers
97 views

I don't know where to start [closed]

I am completely new to Raspberry Pi and have started from basically no knowledge. My end goal is to make a synth or drum machine. My problem is that I attempt to start learning something like how to ...
-1
votes
2answers
2k views

GPIO pin LOW not LOW enough (aka how to ZERO the tension on a low pin?)

This question was asked before here, but there was no answer 1 year ago. I'm facing the same issue: I'm switching the same 5V relay (SONGLE SRD-05VDC-SL-C) using a GPIO on HIGH and this works, but ...