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
-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
17 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....
1
vote
2answers
1k views

Led connected to pin is always on

I've been following basic tutorials on how to programmatically turn on leds from my Raspberry Pi 2. I'm using a breadboard, and I connect 3 leds, using a male-female jumper from the pins of the ...
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 ...
2
votes
1answer
207 views

Pi Camera streaming via gpio

is there a way to transfer the video stream from one raspberry pi to another via gpio pins? One pi is In a closed container with the camera and the other pi drives the user interface. Networking is ...
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
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 ...
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 ...
1
vote
1answer
3k views

How can I connect the H-bridge L9110 with the Raspberry Pi?

How can I connect the H-bridge L9110 with the Raspberry Pi model B's 26 pin GPIO header?
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, ...
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 ...
2
votes
1answer
375 views

Pifox on Raspberry Pi 2 [closed]

The rasberry pi 2 is well known to be able to transmit low power radio emissions off of the GPIO pins. I am a licensed amateur radio operator, and am trying to use the program pifox, a foxhunt ...
-2
votes
2answers
297 views

What is output and input For Raspberry Pi GPIO

Yesterday I tried to make my first physical computing application with python on the Raspberry Pi 3. This app was suppose to simply light an LED. I couldn't get the thing to light. The problem I'm ...
1
vote
1answer
3k views

I2S Recording combined with I2S Playback

I have a Raspberry Pi Zero and I am using the Adafruit I2S MEMS Microphone together with the ADAFRUIT I2S 3W CLASS D AMPLIFIER BREAKOUT - MAX98357A. I did follow the two respective tutorials and I ...
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
1answer
149 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 ...
-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 ...
0
votes
0answers
741 views

Controlling brushless motor with ESC and Raspberry Pi b+

I'm trying to build a quadcopter and I have one ESC, one brushless motor and one Raspberry Pi B+. I find many tutorials on internet to see how to connect these components but it doesn't work. I'm ...
1
vote
1answer
214 views

Power over USB vs from Raspberry

If I connect a relay to Raspberry PI (Ground to Ground, VCC to 5v, and switch pin to one GPIO), when I write 1 on that pin, the relay switches on and off. But, if I connect the relay Ground and VCC ...
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....
-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
1answer
965 views

Rpi3b+ to Rpi3b+ jtag/SWD connection and OpenOCD

I'd like to hook together two Raspberry pi 3b+ to use jtag/SWD with OpenOCD. I learned it can be done, but implementing it has proven challenging. I have two questions: How to connect the Rpi's. If I'...
0
votes
2answers
747 views

How to control 12V LED with the GPIO?

Heyo! How to control single 12V LED using Raspberry's GPIO? To be more exact, I need to connect 12V LED & push button to Raspberry Pi 3 B+ GPIO in order to control LED (on/off) and read button ...
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
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 ...
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 ...
-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 ...
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
1answer
177 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
0answers
95 views

MAX14830 GPIO control

I'm using the MAX14830 as UART and GPIO extender. Got the UART working, but I'm confused on how to use the GPIO. I notice there is a new entry in /sys/class/gpio (gpiochip496): pi@raspberrypi:/sys/...
0
votes
1answer
42 views

Raspberry Pi 3B+ input pin strange behavior

I have few switches connected to Raspberry Pi inputs. Internal pull up resistors are enabled. When I connect pin to the ground Raspberry Pi behave fine - pin state is low. However when I disconnect ...
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. ...
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 ...
2
votes
2answers
96 views

Adding I2C Bus with dtoverlay Does Not Show Up in i2cdetect

I am trying to set up multiple I2C interfaces on my pi. I have added the following lines to my /boot/config.txt and rebooted: dtoverlay=i2c-gpio,bus=4,i2c_gpio_delay_us=1,i2c_gpio_sda=29,...
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 ...
0
votes
1answer
25 views

Would lifting the pads off of the display and camera connector kill a RP?

Tried to remove some I/O that i dont need from my RP3 A+ to fit in a mobile project. Ive done this before on my RP3 B with great success. But I wasnt to gentle when removing the display and camera ...
1
vote
1answer
82 views

DHT11 Temprature sensor makes raspberry pi go crazy!

I am trying to use the DHT11 sensor temprature and humidity sensor with my Raspberry Pi 4B. When I connect the sensor with my Raspberry Pi and turn it on, the red LED on it starts blinking and it can'...
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 ...
0
votes
1answer
67 views

How to get 3.5PiTFT and 2.8PiTFT to work on Raspbian Jessie 8?

Whenever I download Raspbian Jessie 8 and install it, it automatically works with 7inch display and a full up monitor through ribbon cable and HDMI cable respectively. However, when I plug in the 3....
5
votes
0answers
721 views

Can I control GPIO Pins when using Android on the Pi 3?

I want to install Android on my Raspberry Pi for implementing a GUI app, which is easy to create using Android Studio. But now I am confused about how to control the GPIO pins on the Pi 3 to turn on ...
3
votes
0answers
72 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 ...
1
vote
1answer
35 views

GPIO.input(24) is coming back True when it shouldn't be (false button presses)

I have a button in a working circuit. Within sys/class/gpio/gpio24, value changes properly (it becomes 1 when pressed down, 0 otherwise). When I use GPIO.setup(24, GPIO.IN) within python, GPIO.input(...
1
vote
1answer
51 views

PiCameraNotRecording exception when trying out PIR script

So I was trying out this exact same script in this answer https://raspberrypi.stackexchange.com/a/46513 but when I tried to run it (for the second or third time) it gave me this exception: Exception ...
1
vote
1answer
5k views

Accessing gpio not working as non-root. “Can't open /dev/mem: : Permission denied”

I am attempting to get a c++ program to access the gpio as non-root. I am on a raspi 2 running Jessie. I followed the instructions on issue: Access GPIO pins without root. No access to /dev/mem. Try ...
0
votes
1answer
229 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 ...