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.

483 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
191 views

How can I pause a video of omxplayer with out using keyboard?

I am working on my project that can display video when a magnet (signal ) is detected using a hall-effect sensor. Then after, if the magnet is removed from the sensor the video has to pause (not to ...
1
vote
1answer
33 views

GPIO.input(24) is coming back True when it shouldn't be (false button presses)

I have a button in a working circuit. Within sys/class/gpio/gpio24, value changes properly (it becomes 1 when pressed down, 0 otherwise). When I use GPIO.setup(24, GPIO.IN) within python, GPIO.input(...
1
vote
0answers
55 views

What is (typically) GPIO's UART RXD input impedance in a RPi 3 Model B?

I'm sorry if this is a trivial (or already answered) question, but I really couldn't find an answer on the web. I'm trying to connect an AVR board, which operates at 5V, to a Raspberry Pi 3 Model B's ...
1
vote
0answers
329 views

Permission issue accessing /dev/mem – gpio node-rpio

I am somewhat of a newbie, so please let me know if there is a way I can go about this better. I'm working on doing some LED coding (WS8201 strip) with node.js and it appears I am having trouble ...
1
vote
0answers
20 views

Read pin (power led) from port expander on ic2-0 at config.txt

In config.txt you can have conditional booting based on the GPIO pin level, e.g. the gpio4=1 line. Is it also possible to access the pin on the GPIO port extender at i2c-0, or is this something ...
1
vote
0answers
79 views

3.5in TFT screen hat and Raspberry Pi 3+b

I'm trying to understand something about the MPI3508 screen I purchased (https://www.amazon.ca/dp/B07DQKQG6X). I tried powering it via usb and connected a PC in its HDMI input and got it working (the ...
1
vote
0answers
740 views

RPi.GPIO - Properly Wiring and Setting Up Pins for Button Inputs

Edit: Breadboard, schematic, and code updated. I accidentally fried my Pi by shorting it out through the GPIO pins, so I figured it would be a good idea to ask for some help before trying my current ...
1
vote
0answers
165 views

what is causing my error 3 for sending SMS from GSM module

I have a Raspberry Pi 3 running Raspbian Stretch I've connected it to an Elemnt Engineerz Guild SIM900a GSM modem via the GPIO. I can't get it to send an SMS I connected gnd and 5v to gnd and 5v ...
1
vote
0answers
55 views

Safe GPIO configuration for powered-down RPi?

I have a RPi3 driving a robot and I've built a dual H-bridge circuit to run it. I have seperate fuses for the RPi and the driving circuit and I'm glad I do! Trouble is, when the RPi is off, the H-...
1
vote
0answers
122 views

DRV2605 + TCA9548A I2C Multiplexer gets sporadic “Remote I/O Error”

The setup is a raspberryPi driving two AdaFruit DRV2605s through an AdaFruit TCA i2c multiplexer and it all works correctly the bulk of the time. I adapted the sample Arduino code and by and large we'...
1
vote
1answer
82 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
0answers
63 views

PHP not executing commands

I have an apache web server installed in my Raspberry Pi. I created an index.php file on the /var/www/html folder. Whenever I access my Pi's IP address on a web browser to control the lights, none of ...
1
vote
0answers
140 views

Do I need a Bluetooth Dongle on a RaspberryPI 3 B+ to control GPIO pins from iPhone or android devices?

I'm trying to use Bluetooth to control the GPIO pins on my Raspberry Pi 3 B+. I know that my pi has Bluetooth capabilities built into it, but all of the tutorials that I've found online have required ...
1
vote
1answer
443 views

Raspberry Pi 3 B+ is not turning on

I've bought Raspberry Pi 3 B+ yesterday and it was working fine for... an hour. After that I accidentally touched the GPIO pins with the heatsink (it wasn't glued so... I accidentally moved it to the ...
1
vote
0answers
210 views

Raspberry Pi3 should I use multi-threading, interrupts or callbacks?

Project Description I am interfacing industrial PLC's with the Raspberry Pi 3 in order to read the efficiency of the given line, and display live results. In essence I need to do the following things:...
1
vote
1answer
92 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
vote
0answers
89 views

pigpio monitor GPIO not detecting change correctly

I am having trouble detecting a level change on pin 16 (or any other pin). My script is as follows: import RPi.GPIO as GPIO from time import sleep GPIO.setmode(GPIO.BOARD) GPIO.setup(16, GPIO.IN, ...
1
vote
1answer
773 views

Correct wiring for multiple analogue sensors?

I’ve recently embarked upon a project that I’ve wanted to do for a while. My overall plan is to have 3 planting shelves; each will have its own soil moisture sensor, water pipe and LED lighting. The ...
1
vote
1answer
239 views

GPIO Input Not Detected Within While Loop

Hi I'm having a problem with trying to detect GPIO input on a PIN within a while loop. Turnstile B Entry button is what I am troubleshooting the statement if tsB_entry_button == False: import RPi....
1
vote
0answers
81 views

GPIO commands for contact sensor circuit

I have a simple circuit that goes to a garage door contact sensor then to a resistor then to an LED to show if the circuit is open or closed. I've confirmed that my wiring works with a power source - ...
1
vote
1answer
244 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 ...
1
vote
0answers
112 views

Pin on off engine javascript nodejs

I have a little engine linked at pin 1 and 3. How can I turn it on and off throught nodejs? Is there also a way to control how many volts are sent (to make the engine faster or slower)?
1
vote
0answers
288 views

Is it possible to connect a Raspberry Pi Camera Module V2 without any concern to the CSI Camera Connector?

I have recently tried to connect the Raspberry Pi Camera Module V2 to the CSI Camera Connector on the Pi. At first, it worked properly and we could capture pictures and record videos. As part of a ...
1
vote
1answer
121 views

Supply 5v to peripheral using solder pads and not GPIO?

This seems like a simple enough question but it hasn't been easy to find an answer! I have a Pi3 (with recommended PSU), official screen, official camera and I've now added the respeaker 2-mics Pi ...
1
vote
1answer
1k views

Controlling Linear Actuator

I am hoping to control a WINDYNATION 4" Stroke Length Linear Actuator with a Raspberry Pi for a senior design group project. Ideally, the program will make the actuator fully extend, and then retract ...
1
vote
0answers
59 views

Setup Pi to be the brain controller for a robot

so I'm a Pi newbie and would love if someone can give me some hints on this. What I have currently: The Pi will control a robot that I have built. I have built a bunch of python functions that ...
1
vote
1answer
48 views

PiCameraNotRecording exception when trying out PIR script

So I was trying out this exact same script in this answer https://raspberrypi.stackexchange.com/a/46513 but when I tried to run it (for the second or third time) it gave me this exception: Exception ...
1
vote
0answers
552 views

What's wrong with my SPI interface?

I have been trying to get SPI working so that I can use Flashrom to program a BIOS chip with Libreboot. I am using a Raspberry Pi Model B+ connected via short F-F jumper wires to a Pomona 5252 clip ...
1
vote
1answer
417 views

How to check for alive process in an infinite loop and use LED as status indicator?

Clearly I'm a beginner when it comes to setting up a script. I'm trying to check if a process is alive and running, and if so, switch on an LED. I need help with the following: Check if a process is ...
1
vote
0answers
154 views

WiringPi can only turn on 8 LEDs

On my RPi 3 I have a PHP website to control 10 LEDs. Each is wired to a separate GPIO pin and 220 ohm resistor. Here is the code: <html> <head> <title>LED Control</title>...
1
vote
0answers
153 views

Raspberry pi shutdown when running python code

i have a python code which is running and has no errors, it is connected with arduino uno using nanpy firmware and lcd which has the library of adafruit/Adafruit_Python_CharLCD and it uses gpio BCM, ...
1
vote
0answers
150 views

conflict GPIO pin (between setting a pull-up resistor and a hat not claiming to use that pin)

I have a raspberry PI 3 (Raspbian) with HifiBerryDac+, running Mixxx. I wanted to run a pythonscript (2.7) which would allow users to automatically restart Mixxx by pressing a button (in case they ...
1
vote
0answers
311 views

Raspberry Pi won't send data through serial port

I have simple app in python that should send data through serial port (serial0/ttyS0): import RPi.GPIO as io import time import serial import array io.setmode(io.BCM) ser = serial.Serial(port="/dev/...
1
vote
1answer
414 views

sh: can't access tty: job control turned off

I own a raspberry pi model B revision 2 and when I switch it on, it gives me the following error message: sh: can't access tty: job control turned off I researched through the internet for a ...
1
vote
1answer
61 views

Incorrect TTYS0 input from sensor

I am trying to read data from a LV-MaxSonar-EZ0's TX pin connected to the RX pin on a Raspberry Pi Zero W. The problem I'm running into is that the data I'm getting does not fit what the sensor's ...
1
vote
0answers
123 views

sound and flame sensor

SOUND_PIN = 4 FLAME = 2 LED = 26 LED2 = 18 PIR = 6 import RPi.GPIO as GPIO import time import datetime import os import picamera GPIO.setmode(GPIO.BCM) GPIO.setup(PIR,GPIO.IN) GPIO.setup(SOUND_PIN,...
1
vote
1answer
309 views

GPIO (using sysfs problem)

I'm presently trying to use the built-in indicator lights on the Raspberry Pi B+ to provide status: Green = OK; Red = Problem After turning off the triggers (writing none to /sys/class/leds/led[0,1]...
1
vote
0answers
99 views

Issue with Vixen Seq - Pi3 - FPP- relay board

I'm trying to wire my Pi 3B to the relay (octocoupler). I'm wiring the 5V (pin 2 and 4 on the Pi) to the relay, also the grounds. I'm using the following GPIOs from the Pi (Pin numbers): 7(GPIO4)-11(...
1
vote
0answers
3k views

PWM with wiringPi library and C in order to blink an LED at a given frequency

I am working with the wiringPi library with C on a Raspberry Pi 3 Model B and attempting to understand and develop a model so that I can predict the blinking behavior of an LED connected to GPIO #18, ...
1
vote
0answers
172 views

How can I connect GPIO pins to RetroPie?

I am wanting to connect 12 buttons to RetroPie via the GPIO pins. The way I understand it, if I enable the pins that the buttons are connected to, I should then be able to map those in RetroPie. ...
1
vote
1answer
2k views

What pins are actually being used by my 3.5 TFT?

I have a 3.5 TFT and I used these instructions to get it to work with RetroPie on my Pi Zero W. The reason this is important is although there are schematics for this LCD panel, I'm not using any of ...
1
vote
0answers
461 views

All Outputs True when checking Input pins

The RPi setup has input Pins 20 and 21. The program is checking if the inputs are high or low constantly. If so the assigned outputs switch to high. The unexpected result is that when e.g. Pin 20 is ...
1
vote
0answers
133 views

Raspberry Pi Zero LCD + Headphone jack + Volume control

Is it possible to add an LCD screen, a headphone jack, and a Rotary Encoder (for volume control) to a Raspberry Pi Zero W? If so, how could I solder all this? Any useful links/tutorials are greatly ...
1
vote
0answers
129 views

Most likely hardware failure to take out WiFi, GPIO, and USB/Ethernet on Pi 3?

Short version: What is the most likely hardware failure that would prevent the USB ports from being powered, the GPIO UART pins from working at all, and the WiFi chipset from being initialized, ...
1
vote
1answer
116 views

Using GPIOs as Chip Selects on Raspberry pi 3 while using Windows IoT core

I need to control 5 SPI devices using Raspberry Pi 3 and Windows 10 IoT core. But, as we know, there are only 2 SPI Chip Selects available. Is there any way that I can use the GPIO of the Raspberry Pi ...
1
vote
1answer
768 views

PWM object's ChangeDutyCycle method is not working

I have a motor class but I dont' know why this motor cannot change speed class Motor: def __init__(self, pos, line_status=0): def set_motor_gpio(_a, _b, _pwm): self._A = _a ...
1
vote
0answers
220 views

Has anyone tried connecting a adafruit hat board and an LCD Screen?

We use the Raspberry Pi 3 boards for an elementary school robotics program. We saw these cool Kuman 3.5" touch screens that said they were HDMI (which I assumed meant they connected directly into the ...
1
vote
0answers
206 views

GPIO 17 and 18 not working as inputs using Scratch2, OK with ScratchGPIO8plus

We've built a simple controller circuit for operating a 12v mechanical valve and some Scratch code to control it. We are running this system using a Pi3. We use GPIO (not physical pins) 4 and 24 to ...
1
vote
1answer
240 views

Programming RPi Hub module with EEPROM to use pins as GPIO output?

I have been working on a project recently that is going to require more GPIO pins than the Raspberry Pi can provide. In order to add more I purchased a RPI-Hub module, though the data sheet says it ...
1
vote
0answers
24 views

Lighting Issue On Snapshots

I'm creating a proof of concept project for my Pi 3. The concept is to take a photo using a USB webcam when a button is pressed. That part was simple using OpenCV. However, the lighting is fairly ...