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

How to operate 4 wire stepper motor and operate

I have a stepper that has 4 wires: PIN 1 --- A --- BLK --- CONNECTED TO GPIO 4 PIN 2 --- A\ --- GRN --- CONNECTED TO GPIO 23 PIN 3 --- B --- RED --- CONNECTED TO GPIO 17 PIN 4 --- B\ --- BLU --- ...
1
vote
0answers
14 views

Voice-enabled QnA bot [closed]

I want to develop a custom voice-enabled QnA bot. I am relatively new to the raspberry pi. I want to know if such a project is possible with this kind of hardware that raspberry pi offers. Please ...
2
votes
1answer
42 views

Relay does not turn off

I am trying to control a 4-Relay module with my Raspberry Pi 4. I tried to do that by writing this script: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) relais_1 = 8 relais_2 = 10 ...
1
vote
1answer
23 views

Rpi 4 Pin 29 default to High pull?

I am fairly new to Raspberry PI GPIO pins. I have some simple code which sets Pin 29 (BCM 5 in this picture) as an IN (READ) Pin and then reads from it after boot and on raspberry pi 3 it has always ...
1
vote
2answers
34 views

Am I missing GPIOs?

I'm currently trying to resolve an issue, where my OnOffShim doesn't shut down the Pi 3B anymore. So I checked /sys/class/gpio and was a little surprised that I don't find all GPIOs there: user@rpi:~...
1
vote
1answer
52 views

writing into fifo file and reading it

1.Transmitter side code: A)Recording audio into fifo file(no need to create fifo file separately arecord command will create fifo file): import os os.system('arecord -D plughw:1,0 -d 0 --rate=19200 ...
0
votes
1answer
29 views

Safe way to limit GPIO output time

I'm trying to figure out a fail-safe way to provide an output on GPIO pin of the Pi that would not be vulnerable to my (possibly) buggy code crashes. Is there a surefire way to do so? Scenario: I ...
0
votes
0answers
34 views

SDA/SCL values of accelerator VALUES get affected when I use other pins

Essentially the SDA/SCL reads the I2C values of the accelerometer perfectly fine when no other pin on the pi is active. I have connected 4 drone propellers and whenever I give thrust to them by ...
0
votes
0answers
19 views

Raspberry Pi controlled RGB LED strip very dim

I have followed this tutorial https://dordnung.de/raspberrypi-ledstrip/ to hook up my raspberry pi zero w to a 12V rgb led strip. The lights come on and are able to be controlled using pigpiod, ...
0
votes
0answers
26 views

What happens if a GPIO “in” pin is accidentally configured as “out”?

I have a 433MHz receiver connected to a GIPO pin (which is configure as "IN"). I was wondering what happens if the GPIO is accidentally configured as "OUT" during reboot, shutdown, or when another ...
1
vote
2answers
66 views

Multi-threaded python function using list and dictionary of GPIO pins cannot activate a relay problem

At the first part of the code(Initializing relays) the GPIO output works as expected, but at the second part it doesn't works, I have break my head for the last four hours trying to find out what is ...
-1
votes
0answers
42 views

Serial reception through uart [duplicate]

I want to do real time voice communication through uart of raspberry pi 3b.Currently I am able to transmit data while recording it.But at receiver side I am not able to receive it properly.The code I ...
1
vote
3answers
38 views

Can I send 12 volt output signal from a Guardline Security Alarm to a Raspberry pi GPIO input of 3.3 volts

My new Guardline Security Alarm can send a 12-volt output signal to an accessory device. I would like to send that signal to my Raspberry pi and have it send an email to my iPhone. I bought a SMAKN Dc/...
1
vote
1answer
59 views

lighting up LEDs from suricata security alerts

so I am a Python newbie attempting to write a script that will light up a different LED based on the priority level of the latest security alert added to a log file generated by the Suricata Intrusion ...
0
votes
1answer
35 views

Can a voltage at a GPIO pin with no mode set harm the pi

I have a Raspberry Pi 2 Model B, and I plan on using the GPIO pins to detect whether a voltage is present or not. However, the circuit that controls the voltage levels runs independently from the pi, ...
-1
votes
1answer
48 views

Turn GPIO pin to 5v pin

Is there a way to change GPIO function to use it as 5v power pin. Because all of the power pin used for the Touch Screen.
2
votes
1answer
46 views

5v/12v power source/submersible water pump/RPI/relay. What kind of combination is suitable?

I am using a 12v DC water pump with a 20 l/min flow rate, a raspberry pi 3B and a distance sensor. I would like to use a relay and an external power supply to control turning on/off the water pump. so ...
1
vote
2answers
47 views

Is RPi 4B protected against GPIO shorting?

I read that a Pi 3's +5/3V GPIO pins when they contact, potentially frying the whole computer. Does this still happen/what's the risk of this happening on a 4B? Is it "protected" in any way?
-2
votes
0answers
37 views

Generating arbitrary bandlimited waveform on GPIO 4 (GPCLK0) on Pi Zero W

I am trying to use the Pi Zero W to generate multiple FM signals concurrently, and I think that it is possible, but I would like for anyone to point out any problems in my method: The famous FM ...
2
votes
0answers
32 views

LIRC mode2 shows no output

I am trying to receive configure an IR remote control for my raspberry and I configured LIRC on the Pi and it works all fine but I won't be able to capture some output with mode2 -d /dev/lirc0 I ...
0
votes
1answer
31 views

Is it safe to put capacitor on 3v3 pin of raspberry

I am going to use INA220 ic for current monitoring, and the datasheet says: Use a 0.1-μF ceramic capacitor for power-supply bypassing, placed as closely as possible to the supply and ground pins. ...
1
vote
0answers
37 views

Sine Triangular PWM using Raspberry Pi 4

I am new to Raspberry pi. I want to make sine triangular PWM which will control the H-bridge of the inverter. I generate sine wave (50 Hz)and triangular wave (1500 Hz) using python language and ...
0
votes
1answer
20 views

polling gpio raspberry 2 doesn't work

i'm writing a library for my raspberry pi 2 for gpio control. I'm trying to test a function for read a gpio driven by interrupts with sysfs but i can't do that my function stops in poll() function. ...
0
votes
0answers
21 views

Bridge between Twilio API/phone line and closed circuit 20v intercom

Question about how to achieve the below using a Raspberry PI. What hardware would i need to buy and is the below possible? I have a closed circuit intercom system in my house. This is a video ...
1
vote
2answers
53 views

Whenever I restart my Raspberry pi 4, GPIO pin number 3 goes high and low very fast (bug in pi?)

I just switched from Raspberry Pi 3 to 4, which I use to control some devices. I just discovered that whenever Raspberry pi 4 boots, it changes the pi state of GPIO pin number 3 very fast from low to ...
0
votes
0answers
26 views

Pull up resistor is broken?

As far as I understand, after activating internal pull up resistor like this: GPIO.setup(pin, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.input(pin) should give me 1. However, I get 0 for pins 38 and 40 ...
1
vote
0answers
29 views

EasyDriver stepper motor through sysfs not moving

I'm trying to activate a stepper motor using easydriver from here https://www.schmalzhaus.com/EasyDriver/Examples/EasyDriverExamples.html using sysfs and C, but it doesn't move. I connected my ...
3
votes
2answers
134 views

SSD1306 OLED I2C Detection Problem

I know there are similar questions, but none of them helped me out. I have a Raspberry Pi 3 Model B Rev 1.2 and Raspbian 10 installed. I try to connect an 0.91" Oled display (Hardware Details) which ...
2
votes
0answers
36 views

Unable to intercept the code of my remote control at 433 MHz with RaspberryPi

I'm trying to reproduce the code generated by my universal 4-channel radio control with RaspberryPI. I cloned my remote with a universal remote like this: I used the libraries included in 433Utils ...
0
votes
0answers
24 views

i2cdetect show bus is different every time

I am use ToF sensor(VL53L0X) on my Raspberry Pi's GPIO,I discover one problem about VL53L0X. I am input command i2cdetect -l It's show i2c-1 i2c bcm2835 I2C adapter I2C ...
0
votes
1answer
35 views

GPIO ports going high on setup not output line

I hope someone can help with this, i've looked at similar Q&A's but haven't found an answer that solves the basic question. Right, trying to give all the info... I'm using a first generation B+ ...
0
votes
0answers
21 views

GPIO push button popout webpage

I have a project that I connected a push button to RPi 4's GPIO, and if I push the button it writes out "Button pushed". I wrote this code in python. Now I want this code to run in a webpage. So I ...
0
votes
0answers
33 views

How do I use extended pins with the Raspberry Pi?

Might be biting off more than I can chew with this project but I received a raspberry pi + touch screen kit and wanted to add 2 max31865 chips. Screen takes up most pins but luckily has ' extended the ...
0
votes
0answers
23 views

Looking for information on connect raspberry pi to ps2 console

I am wondering if anyone can tell me if it is possible or help point me ilin the right direction to information about connect a raspberry pi to a ps3 console and have it act like a controller. I have ...
0
votes
0answers
39 views

Crontab with WiringPi

I want to change pin state at certain time with Crontab. I tried to use this command: 7 0 * * * /usr/bin/gpio -g write 0 0 but it returns me this error: bash: 7: command not found I also tried: 7 0 * ...
6
votes
1answer
45 views

Debounce code for reed switch rotation counter

I have just finished my first ever Raspberry Pi project (a hamster wheel counter that uploads to Thingspeak) following an online project I found that included the code. (https://www.hackster.io/...
0
votes
2answers
109 views

How to decode a 433MHZ signal

I've made the classic 433mhz send/receive experiment, using cheap hardware on the same breadboard and same raspberry, I've wired both sender and receiver to VCC 5V, GND to GND and data to GPIO 27 (...
0
votes
0answers
16 views

GPCLK: my CLK_CTRL register has the right bit assignments, but my CLK_DIV register is wrong and my program keeps crashing

I can't figure out what about my code is wrong. I've been using the BCM2385 Manual (particularly pages 107 and 108) and this GPCLK guide. I'm using a Pi 3 Model B right now, so based on this it sounds ...
1
vote
1answer
64 views

Controlling LEDStrip using Pi (3B+)

Yo, My name is Fabi, Like 2 Months ago i started this "Project". I wanted to controll my LED Strip using my Pi. And this pi should host a Local webpage so i could control my led strip using any ...
1
vote
1answer
23 views

How to send keyboard strokes from a rpi trough rx/tx to a windows pc (preferably with python)

I want to play around with an rpi to send keystrokes or keycombinations from my rpi to a windows pc. I dont want to configure anything on the windows pc in order to achieve it. So far all the ...
0
votes
0answers
47 views

My Pi is annoying my security alarm system

I'm a bit of a Pi addict - we've got six Pis around our house doing various things. My latest project was to add a little bit of smart control to our dumb MHRV (Heat Recovery) system. I've got a Pi ...
1
vote
0answers
21 views

Arducam blocking i2c

Ive been trying the get the Arducam 16MP IMX298 Color MIPI Camera Module to work with some I2C controlled LEDS. Im able to detect the LEDS and controll them perfectly. i2cdetect -y 1 shows 4 ...
1
vote
1answer
33 views

Connecting multiple wires to a single GROUND pin?

I'm working on a project for my Intro to Computers class, and I need to light up several LED lights in a row with my Raspberry Pi (Model 4)(Using a breadboard). I'm sorry to say, but I am a beginner (...
0
votes
1answer
51 views

Number of SPI devices limited just by CS pins? And pin assignment flexibility question

I've done some research, but not probably not enough, as I'm still confused some. First of all, I've got a Pi rev 1 Model B (with the 26 pin connector) and two devices: The Waveshare AD/DA board and ...
3
votes
1answer
84 views

Oh no! GPIO again!

I'm working at this source: https://github.com/ozw1z5rd/ninepin/blob/master/iec/iec.c int iec_init(void) { int result; int minor; if ( request_mem_region(GPIO_BASE, 4096, LABEL_DEVICE) == NULL ...
3
votes
3answers
148 views

GPIO vs I2C SMBUS2

This example scans for any I2C slave address current on the I2C bus. (I am using a RPi 3B+ with raspbian buster from september release) Script trial_smbus.py: from smbus2 import SMBus channel = 1 ...
0
votes
0answers
52 views

Use a 2.5" LCD in a Blaupunkt Dashcam for Raspberry Pi?

and thank you for reading my topic. I recently bought a "2.5" LCD HD Dashcam" from the Blaupunkt brand (BPDV122), although I am aware they have just used this design from another company. https://www....
0
votes
0answers
34 views

Why do my servos only work the first time

I Posted earlier about having problems with my servos that you guys helped me with and I'm really grateful for that. Now I'm facing an other issue with the servos: I have put them on my "robot" that ...
0
votes
0answers
35 views

Unable to stop motor through GPIO in Python

I'm using an rPi to send a GPIO signal to a servo motor. When I run the program, the motor starts turning, and then continues without stopping, even if the program has terminated through the use of a ...
-1
votes
3answers
90 views

running a mosfet from 3.3V gpio output

i am running a low side switch with the 3.3V gpio output of the pi, and for the particular transistor i’m using (irf520 ) the 3.3V is barely enough to turn it on - is there some clever positive ...