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
28 views

PiGPIO inconsistent when using servo

so I will do the following command once and it will work and then the same sequence of commands never works again. Any help is appreciated, thanks! The commands are to first arm some ESCs then ...
0
votes
0answers
25 views

Why does GPIO state for pin 7 and 8 reverts on pin 10 and 12

I have a Raspberry PI 3 model B. I have 3 LEDs connected to the GPIO. They are on pin 7, 8, and 10. I use the rpi_gpio Ruby gem to control the LEDs. When I set 10 to high it lights up the LED ...
0
votes
0answers
54 views

Is there a way to loop through GPIO pins and a database in python

I have built a set of musical stairs using raspberry pi, motion sensors and python, and a web app to change the instrument using PHP. The python connects to a mysql database storing the instrument ...
0
votes
0answers
101 views

Python, pygame.mixer, wait for track to end

A little stuck on the last part of this code. I want a random track to play until the end when a switch is switched. I would like the track to play no matter how many times the switch is switched ...
0
votes
0answers
29 views

Interrupt triggers without button pressed what can i do?

I have two buttons: a red and a green one and i want to measure how often each one gets pressed and i want to write into a csv file. The problem is even without me pressing the buttons the pi gets ...
0
votes
0answers
1k views

raspberry pi 4 New uart configuration

New raspberry pi 4 has uart on gpio 12 and 13 under ALT4. how could a character device /dev/ttyS5 be created out of it? Thanks
0
votes
0answers
64 views

Remotely controlling the GPIO of Raspberry Pi from a Django application

I am new to RPi and Django so please excuse me if my question is silly. I have developed a simple shopping application on Django which I plan to host on PythonAnywhere or any other hosting provider. ...
0
votes
1answer
119 views

Pigpio on callback get value

I currently have some code that I found that constantly outputs a value from a digital caliper. However, I want to modify this so that it is inside a function that can return that is returned from ...
0
votes
0answers
17 views

Gpio state manipulation if subroccess is finished?

I have my raspberry pi 3 running a python script that manipulates some strings and according to that they sometimes pipped to minimodem. How can i be sure that the pipped subprocess is finished so I ...
0
votes
0answers
39 views

Read VW Cluster Adapter Over GPIO

So, i'm trying to develop a new cluster using my Pi. I've built the entire thing using a WiFi OBD-II Adapter & Python. Then I hit a stumpling block, OBD cannot read things like Indicators/Cruise ...
0
votes
1answer
646 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
569 views

Raspberry pi and microbit working together

Can I do a pin out from raspberry pi onto a breadboard and have a microbit setup to receive that pin out and have the microbit run a command on pin in? Or can I have the raspberry pi send a signal to ...
0
votes
0answers
77 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
71 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
168 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 ...
0
votes
0answers
81 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 ...
0
votes
0answers
64 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
0answers
131 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) ...
0
votes
0answers
34 views

Raspberry Shut down After trying to connect fan

I just bought a new Raspberry Pi 3B+ UK and was working with it for about 2 hours, and then when I was not at home, my son noticed that the CPU is hot and tried to cool it down with a normal 5V PC fan ...
0
votes
0answers
93 views

Multiple SDA/SCL | Getting 16x32 RGB LED to work with MCP23017?

I am close to completing a device which will have a 16x32 led matrix as well as quite a few lights/buttons/sensors. All these lights and sensors go through an MCP23017. I am using the Adafruit led ...
0
votes
0answers
182 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
277 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
0answers
187 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
114 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
62 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
146 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. ...
0
votes
0answers
249 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 (...
0
votes
1answer
216 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 ...
0
votes
1answer
259 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
1answer
69 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 ...
0
votes
0answers
42 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. ...
0
votes
0answers
93 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
180 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
220 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 ...
0
votes
3answers
100 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
206 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 ...
0
votes
0answers
94 views

piscope SPI pin activity even though the SPI device is not connected

my final goal is to use python (spidev) to communicate with a BMS chip. Until now I was quite unsuccessful, thats why I wanted to use piscope to track the activity of the SPI pins. The device is not ...
0
votes
0answers
35 views

how do I assign pins on GPIO expander mcp23017 to a 2nd i2c bus

So I've got a device on my pi that takes up almost all of the GPIO pins on the pi, but the device nicely has an MCP23017 on board, giving me an extra GPIO pin, number 496 - 503 What I want to do is ...
0
votes
0answers
37 views

DS18B20 & Pi 3+

I'm not getting a w1_slave, and all I'm getting is 00-xx0000 when the DS18B20 isn't burning my fingertip. I went for green for ground, which is on the top right plug from this perspective. I spliced ...
0
votes
0answers
52 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 ...
0
votes
0answers
296 views

GPIO number vs Pin number. Which to use?

I am writing a code for an ultrasonic distance sensor. The code worked fine when i used the gpio numbering system for the wires connecting to the gpios and sensor. As soon as i connected the sensor to ...
0
votes
0answers
318 views

MAX7219 7-segment via SPI not working

I am following these instructions to get a simple 7-segment display working: https://github.com/rm-hull/luma.led_matrix My problem is that as soon as one of the 3 SPI Pins are connected the digits ...
0
votes
0answers
64 views

How do I find which pins my TFT display is using?

I have a TFT Touch Screen Display from Tontec that I'm using for a project. According to the product description the display only uses 8 pins. However, the connector cable takes up 26 pins worth of ...
0
votes
0answers
122 views

Multiple raspberry pi's 3 synchronized image navigation

We have 7 raspberry pi's 3, each connected to the internet and an display. On each screen / raspberry pi is geeqie (image viewer_ running with an image slideshow. The goal is to have all raspberry pi'...
0
votes
1answer
517 views

counter with tkinter

Good evening: I speak from Colombia, the problem is that I am doing a project in which I must have an object counter that passes a sensor. Well, I hope I can explain myself: code1 works perfectly, ...
0
votes
0answers
39 views

After changing lirc gpio wifi stops working with raspbee module attached

I build a tv remote control using lirc on an rpi3, and it worked very fine up to this day. Today I put a ZigBee (RaspBee) module on the first 12 GPIO pins and my output GPIO pin (17) for the remote ...
0
votes
1answer
325 views

Setting a mode to a pin requires root permissions

I’m trying to change pin mode on RPI (with Raspbian) – it works when I invoke those commands sudo chown root.gpio /dev/gpiomem sudo chmod g+rw /dev/gpiomem but after every restart I have to execute ...
0
votes
1answer
371 views

Lipo power: Powerboost versus Micro-Lipo charger

I'm a hardware newbie, wanting to power my RPi Zero via a Lipo battery, and also have the battery charge without removing it. There are many posts about this, but my question is more about two power ...
0
votes
1answer
27 views

Making a music device from RPi

I am making a musical instrument from a raspberry pi out of cardboard. It would be like a piano with an octave of notes (13 including sharps). How would I get the raspberry pi to detect when a circuit ...
0
votes
0answers
126 views

Pi4j Edge detection does not work (always detects both edges)

I am new to using Raspberry Pis GPIO and I am using pi4j to control it. I simply tried to make a Button work, that only triggers when releasing the button. Here is my code if (Gpio....

1
47 48
49
50 51
55