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

Thoughts on emulating a ROM chip with a Raspberry Pi?

I am reverse-engineering a late-'80s IBM Wheelwriter typewriter, which runs off of an Intel 8088. It has a ROM chip, specifically: https://www.datasheets360.com/pdf/1277907997291200345?xrefPartId=...
0
votes
1answer
49 views

128x64 OLED Display Issue [closed]

I have a cheap display I got from eBay connected to a Raspberry Pi B+. It has 4 pins (vcc, gnd, scl, sda). I followed the adafruit tutorial here but after setup, when I run a python example (any of ...
1
vote
2answers
112 views

GPIO pins do not appear to go into the raspberry pi

I am testing out this new birthday present I got ages ago and I this set I have got has got male pins and the raspberry pi's GPIO pins are male as well and they obviously appear to not go in. This ...
1
vote
3answers
52 views

GPIO to detect if external 5v source is turned on or off?

I'm using a Pi Zero W and I'd like to connect a 5v source to a GPIO pin to detect if the 5v is on or off. I know the GPIO is only digital I/O and 3.3v max, so is a simple voltage divider enough or do ...
0
votes
1answer
78 views

Using GPIO between two radio programs

So I have two programs that are meant to talk to radio's via GPIO pins but need them to talk to each other via GPIO Eg.. Program 1 PTT = 12 COS = 16 Program 2 PTT = 16 COS = 12 So basicly when ...
0
votes
0answers
24 views

PiFace Digital2 and LED display

I'm building a home alarm system with Raspberry Pi 3 B+ and the PiFace Digital 2 board. I will have used all 8 inputs, and maybe 4 outputs. Now, my question is, If I would like to connect a 16x2 ...
0
votes
1answer
61 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
163 views

LIRC won't setup the device

Very new to this low-level driver stuff, so many places to make mistakes. Basically I'm trying to get an IR transmitter with lirc. I have a IR led to pin 23 with a transistor, however there's nothing ...
1
vote
1answer
31 views

Value of GPIO in a slider buttton changing without doing anything

I want to use a slider button of 3 pins. Actually I'm using 2 of it, like the schematic below: simulate this circuit – Schematic created using CircuitLab My code is: import RPi.GPIO as GPIO ...
1
vote
1answer
39 views

connect 4 measuring devices output to a raspberry and set a Pin high if value exceed a particular value

I have a special measuring system. Each measuring unit gives PWM output (total 4 outputs). Maximum frequency will be 10Khz (for each output). I wanna measure the frequency of each PWM evey second ...
2
votes
1answer
28 views

Changing between I2C and GPIO in the same application

My program is a test system. It should first set SCL=1, SDA=0. Read some values from other GPIOs. Then set SCL=0, SDA=1. Read some values from other GPIOs. This is in order to verify the integrity of ...
2
votes
1answer
90 views

Any way to add more GPIOs to the AIY Voice Kit?

I'm working on a project using the google AIY Voice Kit V2 as a base. I'm planning on adding a keypad which requires 12 GPIOs. Does anyone know of a way to add more GPIOs to the Pi Zero W with AIY ...
1
vote
3answers
47 views

Turn on 2 leds with a toggle switch

I have a toggle button with 3 pins. I want to use it to turn 2 leds, when it's in one position turn on one led (red) and when it's in the other position turn on the other led (green). I found a lot ...
1
vote
0answers
34 views

RFSniffer and Transmitter program for 434 mhz receiver and transmitter

In the past, I have successfully build a solution to control my etekcity smart plugs working on 433 mhz using the RFSniffer and transmitter ( RFOutlet ) etc. programs. Currently i am trying to ...
1
vote
1answer
34 views

How Can I Determine Why My Python Script Is Terminating?

I'm running Raspbian Jessie 4.9.35-v7+ on a Pi 3 Model B. I cobbled together a basic python script to monitor a GPIO pin and send a network signal to a remote application and made two copies of the ...
1
vote
4answers
94 views

program my robot with python

initially my question was about how to fix my code. You informed me that usage of that python class will not work with my setup of one motor. I agree and I want to instead use the GPIO library to ...
3
votes
2answers
207 views

Water Level Detection Sensor 3.3 Volt vs. 5 Volt

I'm using a classic Water Level Detection Sensor or sometimes called Rain Water Level Sensor together with a RPI 3+ to detect water in a Pot (Link). So I don't need any analog reading but only the ...
2
votes
3answers
239 views

Multiple GPIO Buttons

I've seen a tutorial here that shows me how to do this: But what I want to do is like this: I want to have multiple buttons and distinguish between them. The graphic I painted depicts the desired ...
2
votes
1answer
123 views

Raspberry Pi 3b+ do not detect DS18b20 on 1Wire

Problem: The new raspbian kernel does not detect the DS18b20 sensor over the 1wire bus. This is due to the Device Tree that was added to Kernel 3.18.8 What hardware used: Raspberry Pi 3b+ Kernel: 4....
1
vote
2answers
31 views

Is it possible to change Rx pin as GPIO15 is damaged?

I rather stupidly connected 5 V logic directly (without using a level shifter) to Rx, GPIO 15 (pin 10), of my RPi 2B and now it appears to have stopped functioning. Could I configure another pin ...
3
votes
1answer
39 views

gpiozero import resets pullup

In order to use a GPIO connected button as a power off switch I have set a pullup for pin 23 in a dtb overlay (following http://blog.gegg.us/2017/01/setting-up-a-gpio-button-keyboard-on-a-raspberry-pi/...
1
vote
2answers
110 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 ...
1
vote
3answers
128 views

Command/control latching relay using gpio pin only

first off, I'm a noob when it comes to hardware/electronics. Barely started and not planning on getting too deep in it. Now, what I am trying to do may not be possible, hence this question. I have ...
3
votes
2answers
173 views

/dev/mem vs /dev/i2c-1

What are advantages and disadvantages in accessing I2C and other interfaces directly with /dev/mem (as in this code) instead of using /dev/i2c-1 (as in most examples like this)?
1
vote
1answer
78 views

Pigpio not calling Callback for first rising or falling edge

I have some sample code (taken out of my larger program) that regularly (but not always) missing the first rising edge: #!/usr/bin/python import pigpio, time def callback(g, l, t): print("Callback ...
1
vote
2answers
47 views

Connecting RPi to a motion sensor

I'm new to working with RPi GPIOs, and I never studied electronics so bear with me on this newbie question. I have an RPi 2 Model B, and I'm tasked with detecting a motion detector alarm going off. ...
0
votes
0answers
32 views

Which language is best for Raspberry Pi Apps for better GUI and Firebase

I want to develop Raspberry Pi app which requires lots of REST API calling, GPIO controls and very best GUI. I have done research on following. Running C#.net or VB.NET apps in Raspbian OS using Mono....
0
votes
1answer
30 views

Wireless doorbell using gpiod

Good Morning, I have a non issue that I am just curious how its working. So I have a wireless doorbell that I built. It works using the gpiod and remote gpio. So I have a chime unit that I built with ...
0
votes
0answers
30 views

GPIO LED is constantly on. GPIOZero can't turn it off

If power is supplied to the Pi then the LED will be on by default. I've got the LED connected to GPIO pins [4, 6] and the script can not turn it off. I've switch the cables around and that's resulted ...
2
votes
2answers
132 views

How to check if SPI is enabled and functional on Raspi 3b+?

I have run raspi-config and enabled SPI and also verified that /boot/config.txt contains the line: dtparam=spi=on However, when I run lsmod | grep spi I get the following: spidev ...
0
votes
0answers
27 views

How to attach Air208 GSM micro sim card board to raspberry pi zero w that already has display attached on GPIO

I have a Air208 GSM micro sim card board that I want to attach to my raspberry pi zero w to make calls. The issue is that I already have a 3.5" tft display attached to the pi zero w via GPIO (header ...
1
vote
1answer
40 views

Connecting jumpercable to gpio pins

My teacher gave me a large group of jumper cables attached to one another. this might be a stupid question but if it's attached like on the on the bottom picture what is the order of the cables? (...
1
vote
1answer
33 views

gpio command from terminal

I have two simple scripts, one in Python, one in bash to turn on and off a LED. I don't know what I'm doing wrong but if a run the bash script nothing happen, while the Python script It works flawless....
-1
votes
2answers
40 views

Raspberry Pi IO issue (Python)

I am testing my Raspberry Pi IO pin because I realize some of my IO pin is not functioning. So I wrote this python program to test all the IO pin import RPi.GPIO as GPIO import time GPIO.setmode(...
2
votes
1answer
59 views

Controlling LED strip from GPIO Help?

I have a ws2811 LED strip that I was powering using an arduino, but I want to do some more complicated things with it, and figured my old raspberry pi would be perfect. So I followed a tutorial online ...
0
votes
3answers
96 views

Input on GPIO at very Fast Speed

I am getting a signal at 1 GPIO which i need to read at an interval of exactly 10^ (-6) seconds. I am using wiringpi.h in C and the issue is that digitalRead() also takes some time thus i am not able ...
0
votes
1answer
52 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 ...
3
votes
1answer
85 views

Controlling a High Power 13V DC Motor with in-built Hall Effect sensor

I am a beginner with electronics and RPi. I have a Brushed DC Motor that runs at a constant 13V and draws about 4-5 A while running and about 18-20 A at stall. It also has a single Hall effect sensor ...
3
votes
2answers
493 views

I want to run a Python 3 script on startup and in an endless loop on my Raspberry Pi

I have created a smart vending machine using my Raspberry Pi. For now, I open the Raspberry Pi using SSH and run the script manually for every transaction. I want to automate the process and run the ...
1
vote
1answer
75 views

Pigpio reading sensor returning -83”i2c read failed”

I am testing using my new air quality 5 click sensor with my Raspberry Pi (https://www.mikroe.com/air-quality-5-click) using command line. When I enter i2cdetect -y 1it appears at address 48. Then ...
1
vote
1answer
49 views

Can't get HC-SC04 Sensor to work

I'm using a Pi Zero W with a soldered project board to interface two ir Sensors and trying to make an HC-SR04 sensor work. I'm using the 5v supply to power all three sensors. I've set up a Motion.py ...
1
vote
0answers
58 views

How to get maximum GPIO output speed in Kernel module?

I'm writing a Linux kernel module on RPi2 to push an array to RGB Led matrix, so I want to have maximum speed of GPIO to reduce the 'flick' when it run Bit Angle Modulation. According to this site, ...
1
vote
0answers
36 views

Issue with controlling GPIO via Flask web app

I am currently building a project in which I am using a Flask web app to control various different components with the pi's GPIO. The issue i am currently having is stopping the execution of code that ...
0
votes
0answers
28 views

Build/Buy 128 Button Matrix

I want to build a system where roughly 100 Buttons can be pressed and start a specific command. Pricecly I want to digitalize a good old Piano, at least as good as possible. As far as google led me ...
0
votes
1answer
121 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 ...
1
vote
3answers
96 views

Problem controlling LED on GPIO3

I need to add a status led to my pi zero w and after taking a look at the pin out I decided to put an led between pin 5 and 6. Please see attached picture. I soldered a blue 0805 SMD led directly on ...
1
vote
1answer
71 views

Connecting several (roughly 100) Buttons to the PI (USB?)

I havent found anything, but iam sure there is already info on the topic. So even just a link would be helpful for me. I want to build a Jukebox. So pretty simple. Around 30 Buttons, if Button is ...
1
vote
1answer
56 views

Risks of powering short LED strip directly from GPIO

I am trying to understand the simplest ways to power a short LED strip of 30 WS281x lights. Most of the instructions I’ve found mention using a separate power supply for the LED’s, but is it ...
1
vote
1answer
38 views

RPi Zero: Two UART devices at the same time

I need to read UART data from one device, and send different data to the other device, all via raspberry pi zero. It has only one UART TX and one UART RX on GPIO pins, but I heard that it is possible ...
0
votes
0answers
49 views

I want to toggle a button from GUI tkinter and display a counts from GPIO

I want to toggle a button from GUI tkinter and display a counts from GPIO. Here I have a counter system code: from gpiozero import * from time import sleep #####GPIO input########## led = LED(26) ...