Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
40 views

RPI Fan Startup and Temp Control

Info: I am running a rpi 3b+, with Recommended Raspbian installed, and also with a Noctura NF-A4x10 5V, mounted on the lid, with vent holes, of the official rpi case. I will eventually turn this ...
1
vote
1answer
72 views

SPI sending function

I'm currently reworking a project from someone who graduated a few years back and I'm supposed to change the function of his work for a bit. I have trouble understanding these few lines from SPI ...
1
vote
0answers
20 views

Can we use LCD GPIO screens with other non-GPIO devices?

I have a LCD screen with only GPIO connector. But I'd like to use this screen also on other devices, such as DSLR camera. Is it possible to connect a GPIO device, via GPIO port to other devices that ...
1
vote
2answers
177 views

Relay status led's are blinking but the relay coil is not activating

Devices I am using are: 1) Songle 2 channel relay module - https://www.electronicscomp.com/2-channel-5v-relay-module-with-optocoupler?gclid=...
0
votes
2answers
50 views

Stronger 433Mhz RF Transmitter?

I got pilight working yesterday and was able to control a (very close) Etekcity RF outlet, but I discovered that the transmitter power is too low to work on an outlet in the same room behind a couch. ...
0
votes
0answers
13 views

Long wire leading to bad display of led matrix?

I am using a 16x32 RGB led matrix by Adafruit. When I tested it at my desk with short 6 inch jumper wires it worked just as I wanted. However, for my actual project the screen cannot by right next to ...
0
votes
0answers
44 views

Control 12V motor from 3.3V GPIO with external 12V Power Supply

I have a 12V motor, which I need to control from my Raspberry Pi (through the RaspiRobot Board). However, the RaspiRobot Board gives me only 3.3V for the motor. At the same time, I have a 12V adapter ...
0
votes
1answer
36 views

How to hook up multiple devices with sda pins?

I am building something with raspberry pi. I am using the 16x32 led matrix as well as the port expander (MCP23017). Both use the SDA and SCL pins. I am having trouble hooking it up. I realize this may ...
0
votes
1answer
39 views

Mapping Arduino pins to Raspberry Pi pins

I am following instructions on wiring an LED screen to an Arduino. I have a Raspberry Pi 3 Model B, so I am having to "interpret" the instructions. I'm stuck on a step where the instructions say to ...
1
vote
1answer
51 views

How Can I Make Lights Flash On My Raspberry Pi When A SSH Connection is Active?

I recently got a Raspberry Pi B+, and I have been playing around with it a lot. I want to start a personal project where, when I link to my Pi through an SSH connection from my laptop, I can make a "...
0
votes
1answer
41 views

Are my resistor leds safe

I have the following leds ... ... that I hope to be able to connect to my pi for power and disk activity indicators. I read some guide that claimed that around 330Ω resistors were needed, but the ...
0
votes
0answers
45 views

how can I use an external GPIO sound card and set it as default?

I've bought a seeed voice card as an external GPIO sound card and as a input audio device to use pocket sphinx.After it was installed successfully, i typed "cat /proc/asound/cards" to see my card ...
0
votes
0answers
24 views

Checking Voltage Level at GPIO Pin Program

I’m trying to write a program that will loop through 3 GPIO pins connected to an external charging pad and see if a device has been placed on the pad (high voltage). If high signal is detected the ...
0
votes
0answers
25 views

HD44780 Display and wiringPi

I have wired a display to the raspberry pi, which uses an HD44780 controller. The wiring was verified by using this python script: https://www.raspberrypi-spy.co.uk/2012/08/20x4-lcd-module-control-...
0
votes
1answer
61 views

I can't change pin value

I've been with my new Raspberry for a month and it worked perfectly but today the pins have stopped working. I have tried many ways to put them with value 1 but for more I try not change them from 0. ...
1
vote
1answer
35 views

Is it possible to revive GPIO 18 pin? [duplicate]

I guess it (pin 18) got burned after me accidentally connecting it to the 12V of the led strip and not the data pin, while the RPI ground and 12V ground were connected too. I used pigpiod, gpiotest ...
0
votes
1answer
53 views

GPIO only reaches 2,4v when high

TLDR; Under little load the GPIO 22 reaches 3,5v whereas under more load it only reaches ~2,4V, which is not enough to trigger the reset-line on an ATMEGA328P. UART GPIO Pins still reach 3,3V in both ...
0
votes
0answers
25 views

Emulate USB devices from one Pi zero to another Pi zero

I'm looking for the best way to emulate USB devices that are plugged into a Pi zero and connected to another Pi zero through GPIO pins, so the second Pi zero will emulate the actual device that is ...
0
votes
1answer
45 views

Use Python flask or NodeJS for controlling stepper motors via Web?

Im planing a project where I need to controll some stepper motors with my RaspberryPI. I'd like to controll those motors interactively via a web GUI. This server should run on my Py. Now I found a ...
1
vote
1answer
105 views

Ultrasonic sensor stops working a few minutes later

I want to get distance continuously using while loop but a few minutes later my code suddenly stops working and doesn't get distance (there is None value in distance variable) I have changed first ...
0
votes
1answer
36 views

5 volt GPIO pins on RPi not working?

So, today I made a simple LED circuit with a 5 volt pin on my Pi and it doesn't work. I tried the 3 volt ones and they work, but every 5 volt pin fails to work. The circuit just consists of a red Led,...
0
votes
0answers
43 views

Sending Data from LoRa connected to Raspberry Pi

My objective is to connect a LoRa module with RPi and send data using it. So I made the connection:(Rpi to LoRa) 3v3 (Physical Pin 1) to Power Source (Pin 1) Tx (Physical Pin 8) to Rx (Pin 3) Rx (...
1
vote
0answers
37 views

Interrupts with MCP23017 using the mcp23017 dtoverlay

I'm at my wits end with this one. Okay, so we've got an MCP23017 with its INTA wired to the Pi gpio12 (bcm) in /boot/config.txt dtoverlay=mcp23017,addr=0x20,gpiopin=12 so far so good. I'm looking ...
-1
votes
1answer
27 views

unwanted wake from halt

I want to use the "wake from halt" with my raspberry pi to keep it down must of the time and waking up using external stimuli when need. But I am not sure why, sometime it wakes up from halt although ...
1
vote
1answer
25 views

Connect Raspberry Pi to access controller Z-5R by GPIO

I try to understand how to control Z-5R. Z-5R - it's access controller, that control the electromagnetic lock by RFID cards. I want to control this device by Raspberry Pi. How I can plug it correct? ...
0
votes
1answer
34 views

KY040 Rotary Encoder not responding at all

Hey I'm very new to raspberry pi and decided to start a mall project including a rotary encoder. I found some guides online that I followed but I just can't get any signal from the encoder ...
6
votes
1answer
498 views

How can I wire a Raspberry Pi to an 8-relay board in a tidy professional manner?

I want to connect a Raspberry Pi to an 8-relay board, such as this one. Together with ground and power this amounts to ten wires. One option to connect the two is by using female to female jumper ...
0
votes
1answer
34 views

Control GPIO from HDMI V sync

My Project on a Raspberry Pi 2 with Raspian stretch. I want use a GPIO pin to drive 3d shutter glasses (glasses hacked to receive 0 _3V square wave) Video playing on the HDMI port and A Pin goes on ...
0
votes
0answers
17 views

PiCamera Minimal latency between real world event and digital data presence

Using a picamera, what is the best latency one can achieve from a real world event like an led lighting up and the Pi/MCU 'knowing' it has occured(by extracting image data)? I would also be ...
0
votes
1answer
42 views

How to toggle a 1 Channel Relay 5V

So. I have a 1 Channel 5V relay from a starter kit and I cant turn it on or off. I saw a bunch of tutorials but in every one the labels on the relay are such as VCC, GND and so on. My relay its ...
1
vote
2answers
41 views

Closing Circuit versus voltage

I want to control this remote in the picture using GPIO. Am Newbie. I followed a cookbook to connecting the relay directly to the garage door motor but thought "Why not use the remote and perhaps ...
0
votes
2answers
40 views

capture Image with picam then send to another pi via UART

I would like to send an image(JPEG) captured by a pi-zero (in a in-closed container) to an pi3 for storage and analysis. Currently I have UART via gpio set up, but so far I have only been able to send ...
0
votes
1answer
44 views

What is the highest amount of relays Pi 3 can handle?

I'm looking to do something interesting with 16-20 laptop and computer fans. I was wondering if this was possible to just connect them to a large battery and then use a trigger to control some power ...
1
vote
1answer
33 views

Blink project mishap, help?

So I've set up the blink experiment using my newly bought electronics kit for my RPi 3B+ (https://www.amazon.de/Freenove-Raspberry-Processing-Tutorials-Components/dp/B06VTH7L28/ref=sr_1_3?ie=UTF8&...
0
votes
0answers
25 views

Erratic motor behavior from a Pi being controlled through a websocket

I'm in the process of trying to put together a small "robot" that can be controlled over the internet. I'm trying to get the code for the drive motor controls down now, and I've hit an odd issue. ...
1
vote
1answer
57 views

Use internal pull up resistors with the gpio-keys module in the device-tree

I have an external board with some buttons that are attached to gpio 20 and 21 which connects these pins to ground when pressed: simulate this circuit – Schematic created using CircuitLab I'd ...
0
votes
0answers
25 views

Connecting a PIR and Relay Module to a Raspberry Pi causing 2 Minute False Alarms

I am building a small home automation system, and one node has a PIR to detect motion, and a Relay Module to control a 240v light with a Raspberry PI 3. The PIR is connected to 5v, and has a ...
0
votes
0answers
41 views

Change UART default pins

On of on my pi zero I think my RXD pin is out. When trying to connect through usb/serial I receive all the loading of the boot and the login console but cannot send anything (thus cannot login). I ...
0
votes
0answers
54 views

Read data from a balance via RS232 port using rs232 to usb converter cable in rapsberry pi

I am a beginner to this, I have a balance (scale) that I need to read the data (weights of material) from. Data will be read every 10 seconds and I have looked up RS232 codes in here and utilised ...
0
votes
1answer
35 views

Connect raspberry pi to an iphone app without port forwarding

For our capstone project, we have a python code that is supposed to detect the presence of a tile beacon, then we want that program to communicate with an iphone app built with swift letting it know ...
1
vote
1answer
65 views

GPIO not fast enough for RF transmitter?

I'm trying to control a 315MHz RF socket using the RCSwitch library. I tested with an Arduino and it worked 100% of the time but when porting over to a pi zero I can only get it to correctly turn on / ...
1
vote
2answers
33 views

Channeling a single circuit into 6 possible circuits based on gpio pin signal

I basically want a single input relay, with 6 outputs, that switches to any of the 6 outputs based on the gpio signal, if that makes sense. So the gpio signal would send a signal like 1-6 in binary ...
0
votes
2answers
74 views

can I use SSH and GPIO UART simutaniously?

I am connected to my Raspberry PI 3 B+ running Raspbian through an SSH terminal, and I am trying to make an application that uses the UART through the GPIO. Whenever I try to open the port "/dev/...
1
vote
0answers
47 views

GPIO in /sys/class/leds/

I am doing a project with Raspberry Pi and OpenWrt. I need to attach indicator LEDs. Basically, I need to modify the DTS for bcm2710 and add additional GPIOs in the led section such that it gets ...
0
votes
0answers
59 views

Pigpio Wiegand timeout

I have an RFID keypad linked to my Raspberry Pi. It sends out a Wiegand 26 signal when someone presses a key or presents a card/fob. The code is based on http://abyz.me.uk/rpi/pigpio/examples.html I ...
1
vote
2answers
147 views

How to control 12V LED with the GPIO?

Heyo! How to control single 12V LED using Raspberry's GPIO? To be more exact, I need to connect 12V LED & push button to Raspberry Pi 3 B+ GPIO in order to control LED (on/off) and read button ...
-1
votes
1answer
109 views

Start / stop a script with buttons

i want to start and stop this script with a buttons 1 button to start and one to stop using gpio pins 35 and 37 #!/usr/bin/env python from random import randint import SimpleMFRC522 import time ...
0
votes
1answer
63 views

anode RGB LED to raspberry Pi

I have wired up a common anode rgb led to my raspberry Pi. I dont understand why its not lighting up. My setup is this: 5v to rgb anode rgb to pi pins ( 5,6,26) My code is const Gpio = require('...
0
votes
3answers
56 views

Controlling a led button and receiving input from that button

Ok, I have a button with a small 24v Led inside. My goal is to control the light depending on the state of the button. Quick press: toggle start/pause --> light on/off Long press (1500ms) --> reset -...
0
votes
1answer
45 views

Python RPIO.ChangeDutyCycle() Equivalent in WiringPi (C)

I'm currently developing an application with the WiringPi library. I have implemented a prototype in Python, and I'm currently trying to reproduce the same behaviour in C++. However, I ran into some ...