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
1
vote
1answer
16 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
35 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
votes
0answers
24 views

SHIM & TOUCHSCREEN ON SAME GPIO Pi PINS [closed]

I want to put an LED SHIM & a touchscreen onto the same GPIO pins. Will it work? & is it safe?
1
vote
0answers
15 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
23 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
36 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 ...
2
votes
1answer
76 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 ...
2
votes
3answers
79 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
51 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
30 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
28 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
56 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 ...
0
votes
2answers
34 views

How to implement remote control GPIO Raspberry Pi?

Good afternoon. I decided to build a small machine based on Raspberry, running through wifi. Wrote a simple web muzzle, which requests turn on and off the engines. Not sure if this is the best option, ...
1
vote
1answer
66 views

PCF8591 with Analog Joystick I/O error when reading input PYTHON

I have been trying to create a retropie unit, and I'm in the midst of writing a script to inject uinput events for the analog axis values. This is the code I've written so far, but the issue is that I ...
1
vote
1answer
30 views

Is there a way to have USB data transferred from Pi to HAT?

I'm designing a Raspberry Pi HAT that requires USB for debugging. The 40-pin GPIO connector that connects the Pi to the HAT doesn't seem to have any USB designated pins. I would like to use the USB ...
-1
votes
1answer
23 views

How to make lilypad temperature sensor work with raspberry pi zero?

I discovered a lilypad sensor thought of connecting it with raspberry pi zero to measure living room temperature. But lilypad sensor is analog input and pi doesn’t have analog pin. How can i make ...
-3
votes
0answers
34 views

Can a Pi Zero be stacked on top of the GPIO pins of a regular Pi?

I'm curious if anybody has attempted to use the bare board Pi Zero (without the GPIO pins pre-soldered) as a virtual Pi on a Pi HAT for a full size Raspberry Pi (2, 3 or 4, etc)? I see the possibility ...
1
vote
3answers
81 views

Servo motor behaves odd

hello I Connected a servo motor to my Raspberry pi Zero W and used the example from raspberrypi.org: granpa scarer: Grandpa Scarer and the servo worked however after changing the value for: p....
0
votes
1answer
39 views

SimpleMFRC522 stop reading after some time

My code stack after some time (example 1 day) after reading MFRC522 in loop mode. At the beginning it works without problems, after some time is not working anymore. I can't figure out why. Can you ...
0
votes
2answers
62 views

How to run a program after reboot

RASPBERRY PI 4 Hello there, I have this script that should shut off a power outlet when it detects a movement. The rpi-rf_send code is from this repo. The question is: if the current goes away, ...
0
votes
0answers
25 views

Timed trigger for GPIO input

I'm running a raspberry pi system that records fish as they swim passed an IR break beam sensor at a fish ladder. So far the system works well but I'm trying to cut down some of the false triggers. ...
3
votes
2answers
87 views

Dead GPIO Pins, please help me find the culprit

One of my experiments has lead to two seemingly dead GPIO pins on my Raspberry Pi Zero WH. I'll explain what I did to seemingly cause this; please help me understand what happened. The goal: Have a ...
0
votes
0answers
28 views

How do I control a GPIO pin with a HTML button?

I am trying to send a temporary signal through one of the GPIO pins on my Pi 4, like to light up an LED for 1 second then turn off. Is there are way to do this by clicking on a button on my HTML web ...
4
votes
2answers
882 views

Which GPIO pins does the Pi Zero camera use?

I'm working on using the Raspberry Pi Zero camera as well as other sensors simultaneously. But while trying to figure out which GPIO pins the camera uses, so I know which ones I have left for other ...
0
votes
1answer
20 views

Using pigpios waves and audio output

I am using a Raspberry Pi 3 B+. I want to play audio through the 3.5mm jack and use PWM at the same time or successively to simulate a IR-Remote. I know that you can't use the hardware PWM while ...
2
votes
1answer
62 views

GPIO pullups not working?

Sorry for the very basic question. I am trying to set a built-in pullup on GPIO pins and it doesn't seem to be working. Hardware is Pi 3B and 4B (I tried on both), OS is Raspbian 10 (buster). The ...
2
votes
0answers
23 views

PWM on pump not working as expected

I am attempting to run a PWM on a pump using rpi.GPIO using the following code: def run_PWM_on_pump(): gpio.setmode(gpio.BOARD) gpio.setup(8, gpio.OUT) p = gpio.PWM(8, 0.5) #also works at ...
0
votes
0answers
23 views

Do the PiJuice and SenseHat HATs clash?

I have two hats a PiJuice UPS and a SenseHat. The GPIO pinouts for each are https://pinout.xyz/pinout/pijuice and https://pinout.xyz/pinout/sense_hat respectively. When I stack my SenseHat onto the ...
3
votes
0answers
76 views

Raspberry Pi button bug, what is happening?

I am new user of raspberry pi. I have two buttons, and some code to run, yet the led will not react to the buttons. It's probably a easy fix, but keep in mind, I am new to robotic and have only ...
2
votes
0answers
70 views

Pulse Position Modulation on Raspberry Pi Zero

I want to WRITE a Pulse Position Modulation (PPM) to an arduino from a raspberrypi. Is the board capable to do this and if so, from which port/pin? A pulse position modulation is a signal that ...
1
vote
1answer
42 views

How to Monitor the Health Level and Functionalities of Relays Connected to Raspberry Pi

I am building an application to control more than 20 raspberry pis where each of which controls 32 relays connected to electrical locks. having a big system like this would require self-diagnoses ...
1
vote
0answers
25 views

Having trouble reading the Zero cross signal using Pigpio

I am trying to control an AC Light dimmer using the pigpio python library. Light dimmer I can see the input AC source and the zero cross signal wave on my oscilloscope. As I understand it I need to ...
2
votes
1answer
91 views

What is going on with my GPIO pins?

So I wanted to try out my Raspberry 3B+ once again, but I have been sitting here for hours without even being able to turn on a LED. My code: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO....
0
votes
0answers
27 views

Which raspberry pi model to use 3.3v to pulse input into 3-6v 2-5A to 400kV piezo transformer?

https://www.amazon.com/gp/aw/d/B07S712WKL/ref=sspa_mw_detail_4?ie=UTF8&psc=1 Said product, another is practically the same except no clarification on input current. My main question is how I can ...
2
votes
2answers
79 views

Is it safe to connect a GPIO Pi pin directly to a 3.3V Arduino pin, and vice versa?

I have Pi4 on a UPS and a 3.3 volt Arduino (Nano 33 IOT) supplied without a UPS protection. I am designing a system where Pi monitors a 3.3V Arduino pin to know if there is a power outage (and shut ...
-1
votes
2answers
76 views

Is it possible to power IR light module from 3.3v GPIO

Welcome, i've got a question that is bugging me for quite some time lately. I've got RaspberryPi zeroW with ZeroCam camera module (without IR filter). To get it to work in dark I bought IR LED ...
3
votes
1answer
76 views

How to use Rpi GPIO to PWM adjust IR LEDs brightness?

I'm using this circuit for my project, which I referred from https://www.sparkfun.com/news/1396. I don't really understand how current works in GPIO pins, so the question is: instead of connecting ...
1
vote
1answer
68 views

How to tap / tee / fork the Rpi GPIO pins covered / blocked by a HAT / pHAT / bonnet?

I have a blinkt pHat that covers the entire GPIO pin array and I'm trying to trigger changes to the LED array after an external prompt. I expected to use a momentary switch connected to the GPIO pins, ...
0
votes
1answer
51 views

How can I power a IR LED ring using GPIO port?

Okay so, I'm currently working on a final year project about vein visualization with Raspberry Pi 3 Model B+ and a NoIR camera V2. An infrared light source is required to capture clear vein image. I'...
2
votes
2answers
241 views

What servo motors can safely be driven directly from a Raspberry Pi's GPIO header?

A Raspberry Pi's GPIO header includes power pins, and enough I/O pins to drive multiple servo motors. When using this header's 5V supply to power servo motors directly (rather than using external ...
2
votes
1answer
85 views

Rpi3B+ and Audio Amplifier HAT GPIO Pin Push Button False Detection/Triggering Problem

I'm currently having trouble with my project. I'm using a Raspberry Pi 3B+ with an InnoMaker Hifi Amp Hat and some push buttons. import time import signal import os import RPi.GPIO as GPIO GPIO....
1
vote
2answers
48 views

Controlling 28 invidivual leds with a raspberry Pi Zero

I want to do a what I hope is a simple project. Making a led light clock built into a plank. Basically I'm planning on cutting 28 slots in a piece of wood, and placing a small LED light in each slot, ...
0
votes
1answer
60 views

Piezo Buzzer Driven By Rpi GPIO Problem

I'm trying to light up an LED and play a buzzer noise at the same time. Here is my code so far: Import RPi.GPIO as GPIO Import time GPIO.setmode(GPIO.BCM) GPIO.setup(7, GPIO.OUT) while True: ...
2
votes
2answers
139 views

AC mains dimmer dimming 7W LED lamp problem (RpiZero + MPDM V4.1)

I'm trying to dim a 7W LED with a Raspberry Pi Zero for home automation. However it doesn't work as expected. I followed this tutorial : https://www.youtube.com/watch?v=wqY4-gHqvZI . I have the exact ...
0
votes
0answers
62 views

Setting up the second PWM channel from kernel module not working on RPI 3 model B+

I'm trying to set up both PWM channels (PMW0 and PMW1) on my Raspberry Pi 3 Model B+ from my kernel module. I've successfully set up channel 0 with the desired frequency and variable duty cycle and I'...
1
vote
1answer
21 views

What is the frequency and cycle length of the pigpio library?

I've got a raspi 3b with an esc and a brushless motor attached. I can run the motor using pigpio the following commands: # First start the pigpio daemon sudo pigpiod # calibrate the esc pigs s 12 ...
3
votes
1answer
63 views

Does directly connecting pins fry the Pi?

As a followup to this question: Can I safely connect two GPIO pins to each other (ie. for testing purposes)? And can I safely connect an input pin to either +VDD (3.3 V) or to Ground? Or do I need a ...
0
votes
0answers
28 views

raspberry pi 4 doesn't boot [duplicate]

I have a raspberry pi 4 which was working and suddenly turned off and ever since isn't booting up. Red and Greeen LED is continously on.(Not blinking) I have tried another memory card with differnt OS ...
2
votes
1answer
89 views

How to connect EEPROM to Raspberry Pi 3?

I was wondering on how to connect an EEPROM chip to the Raspberry Pi 3? And any suggestions on which EEPROM chip model is best to use with RPi3?
0
votes
0answers
29 views

Power on Rpi 3B+ from shutdown with only GPIO SCL (weird)

I was searching for ways to power on my rpi from shutdown (o halt) mode, then I noticed somewhere else that shorting SCL and GND will turn on... Well in fact, I tried this and my RPI turned on ONLY ...