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

Supply 5v to peripheral using solder pads and not GPIO?

This seems like a simple enough question but it hasn't been easy to find an answer! I have a Pi3 (with recommended PSU), official screen, official camera and I've now added the respeaker 2-mics Pi ...
2
votes
2answers
105 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 ...
28
votes
3answers
8k views

How can I use the GPIO pins as digital outputs?

I've read that the Raspberry Pi has a number of input and output pins. How can I switch them? (from Python?) What voltage logic? Do I need pull-up or pull-down resistors? Do I need to switch the pins ...
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 ...
1
vote
1answer
292 views

Raspberry Pi 3 GPIO pins always active

Wiring setup for Rpi: I have an rpi 3, and I've recently started experimenting with the GPIO side of things. I'm new to electronics in general, although I do computer programming regularly. I have a ...
0
votes
1answer
53 views

Skywriter Hat and Google AIY Kit possible?

I looked at https://de.pinout.xyz/pinout/skywriter_hat and http://de.pinout.xyz/pinout/voice_hat . Both need pin 11 and 13. Is there any way I can use both at the same time. Can I redirect the ...
-1
votes
2answers
2k views

GPIO pin LOW not LOW enough (aka how to ZERO the tension on a low pin?)

This question was asked before here, but there was no answer 1 year ago. I'm facing the same issue: I'm switching the same 5V relay (SONGLE SRD-05VDC-SL-C) using a GPIO on HIGH and this works, but ...
1
vote
1answer
146 views

Using GPIOs as Chip Selects on Raspberry pi 3 while using Windows IoT core

I need to control 5 SPI devices using Raspberry Pi 3 and Windows 10 IoT core. But, as we know, there are only 2 SPI Chip Selects available. Is there any way that I can use the GPIO of the Raspberry Pi ...
1
vote
1answer
360 views

Pi3 Model B reaching 100+ degree Celsius immediately after boot

Have a Pi3 Model B, was playing around with GPIO and trying to integrate a PIRO sensor (IR). Must have done something wrong with the circuit as now the Pi immediately reaches 100+ degree Celsius ...
0
votes
1answer
84 views

GPIO pins mind bogling error

Raspberry pi 3 b+ I'm trying to make an Obstacle avoidance obstacles. It's a very simple project. I tried with one ultra sonic sensor, it worked. Gave me the distance which i could further ...
0
votes
1answer
101 views

What pins to close a circuit [closed]

I'm using a Raspberry Pi 3B. What is the easiest way to make and break a single connection under program control - just like touching two wires together?
6
votes
2answers
2k views

Impossible to scan RFID tags using libnfc, PN532, and RPi3

I recently bought this NFC/RFID reader PN532 module V3 I want to use it with my raspberry pi 3. I have install and configured the library libnfc. The PN532 is connected with I2C. I have well enabled ...
0
votes
1answer
638 views

Hardwarw PWM via GPIO zero

I heve problem. I don't know if GPIO zero supports hardware PWM. Does it? Where can i change software PWM to hardware PWM? I know rpiGPIO can use hardware PWN for sure but I'd like to continue use ...
0
votes
1answer
89 views

Pi Zero Gpio Extender Reset

I currently have a project I'm working on using a Raspberry Pi, connected via I2C to a GPIO extender (MCP23017), which is using a Transistor (TIP120) to control a Solenoid Valve and a DC Motor in ...
1
vote
1answer
59 views

Power supply issues - reboots continuously but GPIO power working

My Raspberry Pi 2 was working with OpenELEC os properly. Suddenly it had stopped working. I don't know whether it had updated anything automatically. It is continuously rebooting. I could see the ...
2
votes
1answer
66 views

fork() Process Issue on Channel Switching via Rotary Encoder

I have KY040 rotary switcher(encoder) as shown below picture. It is the scenario that there are 5 radio stations(simple html url) in urls.txt which are read into stations list in radyoCS.py, at every ...
1
vote
2answers
197 views

Callback parameters to GPIO.add_event_detect?

I have a button object that when pressed needs to perform something, and for this I'd need to get a property of the button. I'd like it to work like: ... GPIO.add_event_detect(button, GPIO.RISING, ...
2
votes
1answer
67 views

Problems with my DIY floater

I've created a sort of sensor to detect whether the water level in my aquarium is too high or too low. Hardware part: See this schematic for how it works: So the red part floats on top of the ...
0
votes
1answer
71 views

Different modules

What are the things to be considered when connecting 3-4 different modules to raspberry pi3? Ex: i am using 4 modules namely RFID reader, hall effect sensor, gps and some push buttons. Need to ...
1
vote
1answer
101 views

Multiple Raspberry Pi zeros (no wifi) + touchscreen. Daisy-chained communication?

I'm trying to devise a solution that will connect multiple Raspberry Pi zeros together for communication between them. I'm using a touchscreen on each of them, so GPIO pins 1-24 are taken. Also, I'm ...
0
votes
2answers
256 views

File transfer between raspberry pis via GPIO pins

I'm trying to send image(3MB) captured by one pi to another pi, external WIFI or setting up one pi as AP is not possible due to strict regulations, all I can use are the two wires. Currently I'm ...
2
votes
1answer
82 views

Javascript pm2 fails to persist my scripts at RPI boot time

I do this to make my scripts run on Raspbian start: sudo pm2 startup ubuntu sudo pm2 start my_script.js sudo pm2 start another_script.js Yet, RPi starts without them, what can be wrong?
2
votes
1answer
91 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
1answer
126 views

RaspberryPi 2 GPIO stopped working

I have RaspberryPI with Arch Linux and everything was going well, until this morning when I tried to do my usual work on it, it sounds like nothing happening at all, I have checked with pintest (I use ...
0
votes
1answer
145 views

Raspberry PI SPI interface

I'm looking at a Raspberry Pi and I am a bit new to Serial Peripheral Interface. I see the Rasperry Pi has two SPI interfaces on the GPIO pins. Can one SPI interface be programmed to connect to ...
2
votes
2answers
265 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 ...
0
votes
2answers
280 views

Why do I keep seeing a red box when trying to connect my FLIR thermal scanner?

I am connecting the Lepton FLIR thermal scanner to my Raspberry Pi and I've gotten everything setup and working but when I try to run the program all I see is a red box surrounded by black. ...
0
votes
1answer
116 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'...
1
vote
2answers
59 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, ...
2
votes
2answers
242 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 ...
1
vote
1answer
87 views

How can I connect an EasyADC board mikroe340?

I've got a 4-channel 12-bit ADC "Mikroe340" from Mikroelektronika (datasheet). I'm wondering how to wire it with GPIO.
0
votes
1answer
367 views

Change GPIO pins for official Raspberry Pi 7" touchscreen

I need to use different GPIO pins with the Raspberry Pi official 7" touchscreen. I'm already using pins 3, 4, 5 and 6 with a hat, and it would be a pain to change them. I've looked through several ...
1
vote
1answer
419 views

Connecting Hifiberry Digi+ clone (PiFi Digi+ V1.0) to an Raspberry Pi 1 B (26Pin Header)

Hi I wanted to make use of an older Raspberry Pi and build an Volumio Music Player. I ordered Hifiberry Digi+ clone (PiFi Digi+ V1.0), unfortunately I forgot I own an older Raspberry Pi 1 B with the ...
0
votes
1answer
126 views

Problem with LED blink program on Pi

I am completely new to RPi and stuck unexpectedly. I am trying to create a simple python program to make my LED blink. Here are the two programs which are giving same outputs on terminal when I ...
0
votes
1answer
87 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: ...
0
votes
1answer
169 views

Barcode Scanner using RX & TX (GPIO) PIN

Im having some issues reading from a barcode scanner module.. The scanner works just fine if it is used with a USB adapter, my goal is to use the RX & TX GPIO of my RPi to control it. What I am ...
0
votes
0answers
84 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'...
0
votes
1answer
277 views

Can I connect GPIO pin and ground to a PC motherboard power switch to turn it on/off

I would like to use RPi to connect a jumper cable from PC Motherboard power switch to a GPIO pin and Ground to be able to turn the PC On/Off automatically and remotely. Would it work and is it safe?
1
vote
1answer
30 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
65 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 ...
1
vote
2answers
244 views

Multiple RPi and multiple external 5V power sources. Connecting all GNDs = ok?

First off, I'm a noob when it comes to hardware/electronics. Barely started and not planning on getting too deep in it. I have a bit complex setup that boils down to multiple RPis (around 13, with ...
2
votes
1answer
121 views

Vibration-induced power loss problem

I am a pilot using a Pi 3 as an ADS-B receiver for a gyroplane. It works really well provided I don't try to have the Pi mounted to the aircraft anywhere. As soon as I do, the vibration seems to cause ...
0
votes
1answer
111 views

GPIO button to complete input prompt

I would like to prompt the user for input, then with the push of a GPIO button, submit the input value. This is tricky since the GPIO button polling is typically done in a loop. I was thinking that ...
34
votes
6answers
70k views

Access GPIO pins without root. No access to /dev/mem. Try running as root!

I've made a python script using the RPi.GPIO library. I need to run it without root but I get this error when running it with "python ./script.py": No access to /dev/mem. Try running as root! I've ...
0
votes
0answers
30 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 ...
5
votes
2answers
1k views

Accidentally connected 3.3v gpio pin to 5v gpio pin

So I had the GPIO diagram upside down (haha). SO I connected the 5V Power pin on the header to the 3.3V Power pin on the GPIO. It was only for a second or less. My RPi still works fine, but I wonder ...
0
votes
0answers
35 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
143 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?
2
votes
1answer
78 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 ...
1
vote
2answers
110 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. ...