We’re rewarding the question askers & reputations are being recalculated! Read more.

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
16 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
26 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
24 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
41 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
0answers
37 views

12v DC proximity detector for use on truck (2-3 feet range) [on hold]

Well after the 3rd time getting hit at work, this last time was major damage... of course no one said anything. I suspect that the issue is parking. The parking lot is a crappy design. Anyways, I ...
0
votes
2answers
23 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
46 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 ...
0
votes
1answer
27 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
77 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
32 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
56 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
21 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
78 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
27 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
837 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
15 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
50 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
20 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
22 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
71 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
65 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
39 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
20 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
82 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
74 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
62 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
71 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
52 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
47 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
226 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
84 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
47 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
56 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
127 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
49 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
16 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
61 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
26 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
65 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
28 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 ...
2
votes
1answer
47 views

Rpi4B can control either one of two L298N modules, each driving two motors, but not both modules at the same time, why?

I'm using a pi 4 for a rover I want to build and I have 2 L298N drivers. I connected them using a breadboard to my pi so I don't need that much GPIO pins but only one pair of motors is working and ...
0
votes
2answers
40 views

txd and rxd pins with same numbers at the end of name

So I was looking at alternate functions of the GPIO pins of the Raspberry Pi 3b+ and found that some GPIO pins do support txd and rxd alternate functions. However some are named txd0/rxd0 and some are ...
2
votes
1answer
37 views

Unable to set GPIO even as root

$ echo "1" > /sys/class/gpio/gpio17/value echo: write error: Operation not permitted Doing sudo -i to log in as root ends up the same. $ ls -ll /sys/class/gpio/gpio17/ -rwxrwx--- 1 root gpio 4096 ...
0
votes
2answers
107 views

using GPIO pins as TX/RX pins

I'm working on a project that needs multiple TX/RX pins, but the Raspberry Pi that I have only has 1 of these pins. Can I use the GPIO pins as TX/RX pins? Or is there an adapter available somewhere? ...
1
vote
2answers
61 views

Rpi GPIO pins + 2N2222 to independently drive two DC12V fans

I'm pretty new to Pi and electronics. I need to use my Pi as fans controller. I got two 12V fans and need to control it from Pi. I want to use external power supply (12V) to give them propper power. ...
1
vote
2answers
83 views

Setting Pull Up/Pull Down mode doesn't work (mostly)

I can't seem to set the pull-up resistor mode on the PI4 with most methods I try. I have tried: C# (the new System.Device.Gpio interface), WiringPi (using a C# abstraction), and wiringPi command line ...
-1
votes
1answer
86 views

How to physically wire two I2C sensors' SCL/SDA signals to a single I2C bus?

I need to connect two sensors like this https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRDDlL2AK_eYo9BKbImJcekMZ0PgIYC2GL0OLIMVGzkWAtq54zG to rpi 3 b. I found that it is not a problem and ...