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
3
votes
3answers
579 views

Is there any reason NOT to use SPDT switches with RPi?

I'm building a doohickey that uses 4 pairs of momentary switches. For prototyping, I'm using standard little pushbutton switches that plug into a breadboard, two for each pair. When I've finished ...
1
vote
1answer
26 views

Addressing multi i2c busses in programs

I have a Raspberry Pi4 and I need to setup a program that can address many more ports than the Pi has. So far I have three MCP23017 ICs and they are connected to the standard i2c bus on pins 3 and 5. ...
1
vote
0answers
18 views

RPI3b+: UART serial communication problem

I have my RPI setup to communicate serially with another board. Currently, I have a usb to serial converter which is plugged into one of the RPI ports. This works well but, I want to take that out and ...
3
votes
6answers
7k views

Simple pushButton circuit causes errors

I set up a simple curcuit and tried a pullup and a pulldown scenario, but both lead to a lot of "false positives". Currently I ended up with the circuit you can see in the image. I have no button ...
-1
votes
3answers
40 views

What is simplest Python code to call the begin_time function with the value of time equal to 5 when the launch Button is pressed?

I have the following code: def begin_time(time): print(time) from gpiozero import Button begin = Button(27) I want to call this function with time = 5 Any help would be appreciated
0
votes
0answers
13 views

C++ Code not compiling of RPi after upgrading from Wheezy to Buster

I am getting the error: ‘i2c_smbus_write_byte_data’ was not declared in this scope when trying to compile GPIO code. I have a clean install of Buster (I had accidentally corrupted Wheezy). On Wheezy, ...
0
votes
0answers
18 views

Removing 3.5inch touchscreen and going back to HDMI out

I installed a 3.5inch touchscreen onto my pi 3 model b+, it came with a wee card of the setup lines etc. That was sometime ago, and now I need to revert the system back to being HDMI output. I’ve ...
0
votes
0answers
8 views

raspberry pi zero I2S record and playback

I am following this answer to enable both audio record and playback on RPI zero. My question is: dose the files ~/.asoundrc and /etc/asound.conf conflict each other? Sorry, I should just comment ...
2
votes
0answers
23 views

Button hardware for RPI

I have the following circuit: I am wondering if this configuration will work if I'm trying to add buttons. I wanted to set them up as GPIO=GPIO.PUD_DOWN and to have it activate on the rising edge, ...
2
votes
0answers
30 views

Is it possible to control servos in both directions on the RPi?

I have been working on controlling servos in one direction with PWM control via GPIO ports on my RPi 3. I've worked with motor controllers that use PWM before and it seems that I should be able to ...
1
vote
0answers
28 views

Raspberry Pi has no GPIO Output

my raspberry pi 3B+ hast the latest Buster Update(Installed 23.03.2020). When I measure the GPIO output I get with at the 5V pin around 0.025V of output and at the 3V pin the multimeter says 0V. I ...
2
votes
1answer
217 views

How to connect 3W 8Ω speakers to Raspberry Pi 3.5mm audio jack?

I have a pair of 3 Watt 8 Ohm speakers. https://www.amazon.in/JST-interface-Production-Raspberry-Projects/dp/B0738NLFTG My questions: I want to connect it Raspberry pi 3. How can I do that? From ...
1
vote
2answers
31 views

RGB Led flickers when controlled by GPIO Raspberry

I found a python script to control an RGB LED with GPIO output pins from a raspberry. I connected a common cathode LED to the GPIO Pins and added a 300 ohm resistor to the ground pin. When I run the ...
1
vote
0answers
24 views

Create website to control RaspberryPi remotely [closed]

I wanted to home automation for a long time. Basically what I want is a website through which I can control my raspberry pi GPIO pins and also read and display data from them on my website. I will ...
1
vote
1answer
39 views

powering a sensor usin external power

I' m not electronic or electricity specialist , i'm a developer who tries to make fun stuff on raspberry pi , and this is why i burned two rpi 3 . i'm using my rpi with many electronic stuff , pir ...
0
votes
0answers
18 views

Raspberry Pi connect to external RFID Module FDX-B/Animals

I have purchased an RFID reader which is supposed to be able to read implants that are in animals RFID https://www.ebay.com/itm/134-2K-AGV-RFID-Animal-Tag-Card-Reader-Module-TTL-FDX-B-ISO11784-85-...
1
vote
0answers
27 views

Multiplexer and Python problem on Pi

So I've got a 16-to-1 multiplexer I'm using on the raspberry pi. Right now I've only got one motion sensor attached to it (on channel 15) to test it before i attach and fill up all 16 channels on it ...
0
votes
0answers
25 views

Can GPIO pin of Raspberry pi tolerate voltage above 3.3V? [duplicate]

I am using an inductive proximity sensor having an operating voltage of 5V with raspberry pi 3B+. Sensor has been given 5V from Pi. On sensing metal, output of this sensor is approximately 4.5-5Volts. ...
0
votes
0answers
26 views

How fast I can read at raspberry pi 3 model b's GPIO

I want to read the output of OV7670 camera module that produces 8-bit output at a very high frequency. The output pixel clock frequency is around 8MHz. I have to sample those 8-bit data at raspberry ...
0
votes
1answer
26 views

Control the startup and monitoring GPIO status

I want to control the startup of a Raspberry Pi 4 and at the same time listen to the GPIO status of the 40 pin. Can I use an Arduino for that? If so, any advice on which Arduino shall I use?
1
vote
0answers
29 views

Problem using MQTT: published message will publish but won't receive

I wrote this code for controlling gpio pins everything is ok but i cant turn on or off gpio pins message will publish but it will not turn on or off gpio pins import paho.mqtt.client as mqtt import ...
1
vote
0answers
24 views

Conditional Servo Movement

I am currently working on getting a raspberry pi to drive a servo motor according to a set condition. In the final program I will have a sensor determining the level of water in a glass, when this ...
1
vote
1answer
39 views

Servo does not keep its position once it does no longer receive a signal from gpizero

Following gpiozero.readthedocs.io I managed to move a servo which in turn opens a (model) toll-gate by winding up a wire. However, the behavior is rather unexpected - as soon as I stop sending a servo....
1
vote
1answer
48 views

Error when trying to read out temperature with gpiozero

I am new to gpiozero. I successfully managed to make some LEDs blink, but I am struggling reading out the CPU temperature as described in the example at gpiozero.readthedocs.io. My code is pretty ...
2
votes
1answer
37 views

Use Raspberry with two devices that require 3.3v pin

I'm planning a project with an RFID reader that connects to the GPIO pins on a RPi2 and will use the 3.3v pin. Additionally I wanted to add an active buzzer, which also would require an 3.3v pin. Is ...
1
vote
1answer
50 views

No. of GPIO pins required for all the sensors

I am working on a 4WD car project and I'm using the following electronic parts: H-Bridge, L298N: 2 PWM pins and 4 direction contol pins 8 Ultrasonic sensors, HC-SR04: 2 pins, for TRIG and ECHO IMU, ...
-1
votes
1answer
26 views

How to work several GPIO pins with shell script

I realise that this is a newbie question but no where on the internet do I find the answer. I want to control a couple of GPIO pins on Pi (3+mod A, Buster) so I write a simple shellscript. Its using ...
0
votes
1answer
32 views

Possible to use 1 pin for both RX and TX?

I have 1 GPIO pin on my RPi that I'm using to monitor power status of my project, the intention is to connect this pin to a serial port on a Teensy that will be running a script to send information ...
1
vote
2answers
86 views

Controlling fan of the LABISTS Raspberry Pi4

I'm a new Raspberry Pi 4 user. I have bought the Labists Kit which includes 3 heatsinks and a fan. As far as I understand the fan is connected directly two the GPIO pins (see for example this video ...
0
votes
0answers
46 views

Problem with DIY Smart Glasses Projection module

I am making Smart glasses which will display android app, click pictures, notifications and many more, and which is to be displayed on a small prism I searched a lot of posts online, many of then ...
1
vote
0answers
35 views

RPi.GPIO + single channel relay + solenoid lock

I'm working on my first python/hardware project and I want to create a simple (or at least I thought it was simple) cabinet lock, which will lock/unlock when certain RFID tags are approached to the ...
1
vote
0answers
45 views

How would I go about writing a program(python) to mimic the use of an AND Gate using Raspberry Pi

How I set up my breadboard: Placed SN74LS08N (AND gate) on a breadboard. Connected IC pin 7 to GND and IC pin 14 to 5 V for IC to get powered. Connected GPIO pin 16 to IC pin 13, Connected GPIO pin ...
1
vote
1answer
56 views

Multiple Hat and GPIO

I need, for a project, to connect on the same RPi (a 3B+) a NFC lector, the Sense Hat and also be able to use 26 GPIO port for additionnal LED and button. The project is a kind of a physical "Keep ...
1
vote
1answer
35 views

Writing to GPIO 1 (ID_SC) witth Pigpiod C interface

I am writing a general-purpose stepper motor driver C shared library for the Raspberry Pi using PIGPIO (pigpiod C interface) for 4 to 7 motors using A4988 drivers. I designed an interface board (...
0
votes
0answers
24 views

Is it fine to power a buzzer that requires only 3V using the 3V3 pin of the Raspberry Pi 3 B+

I have a solid state relay but I think I don't need it anymore.
0
votes
0answers
42 views

Can we implement a protocol other than spi on Raspberry Pi?

Pi supports SPI, I2C and UART by default. Can we implement any other protocol like MDIO into it? If yes, how do we do it?
0
votes
1answer
48 views

Re configuring GPIO pins for SPI protocol

GPIO pins 19,21,23,24,26,35,38,40 are dedicated for SPI protocol. Is it possible to use other GPIO pins for SPI? If yes, how do we do it?
0
votes
0answers
44 views

How to continuously check Pin status in infinite while loop

I am working with Raspberry Pi 4 and using python for some project. The sample code is as below: while True: if( GPIO.input(a)==GPIO.LOW): if __name == '__main__': try: ...
1
vote
1answer
48 views

How can Rpi3+ python use four GPIO pins to drive the unipolar stepping motor 28byj48?

I am working through the 'Ultimate Starter Kit" for my Raspberry Pi 3+. In Chapter 16 the tutorial shows how to work with a stepper motor. Note: The program works per the tutorial - I just cannot ...
1
vote
0answers
32 views

Two PIR Sensors - One with regular false positives

I'm having some false positives on a PIR sensor (HC-SR501), but with a slightly different set up to the previous questions on the topic I have found. I already had one PIR sensor attached to my ...
2
votes
1answer
62 views

Can I use a GPIO and do multiple things with it at the same time?

I have a GPIO that creates the PWM pulse. Would it be possible to have my python code read the same GPIO, and on high execute my code to read the ADC? Would that disrupt the PWM because I'm accessing ...
2
votes
0answers
28 views

Using GPIO on the Bitwizard DMX hat board

I have a rpi 4, with a relays board on top of it, and a Bitwizard DMX hat board on top of that. The Bitwzard board doesn't have a male header on the top, so I am unable to connect my sensors. It was ...
1
vote
1answer
64 views

Which GPIOs can receive DHT11 data?

The 'kookye' DHT11 tutorial suggests connecting to GPIO14 (TXD) at pin 8. An rpi3B+ and a relay board uses the GPIO14 for programming firmwware per the table: PIN GPIO CLASS RELAY ...
0
votes
1answer
43 views

Connect camera via gpio pins

is there anyway to connect wires from a camera to gpio pins on a Pi to use/control the camera? In my case this is the camera. to look something like this
12
votes
2answers
3k views

How do I avoid a temporary short circuit from destroying the PI?

I have a Pi 3b+ in a MIDI foot controller and part of the I/O is a pair of expression pedal sockets. After, ahem, getting the tip and sleeve round the wrong way, they are working correctly now. But, ...
0
votes
1answer
42 views

DHT 11 Sensor Voltages

GOAL A 3-Wire DHT 11 of unknown pedigree is to be connected to a Raspberry Pi: SDA GPIO The goal is to take "due diligence" and avoid frying an rPi. Thank you RESOURCES Ada Fruit's 4-pin DHT11 ...
0
votes
0answers
18 views

Multiple 5v Sensors on Pi4 [duplicate]

I'm just hoping to confirm before I blow up my new Pi4: I have three 5v sensors which I am already committed to for my automotive project. I have already set them up for use with Arduino and ...
2
votes
1answer
32 views

Control SPI Wirelessly

I would like to control a WaveShare e-Ink display wirelessly. I have lots of experience working with this type of device over SPI using the GPIO boards and the WaveShare python libraries. I'd like to ...
2
votes
0answers
28 views

More than 2 SPI slaves

I like to connect more than two SPI slaves to the Raspberry. Just want help how to configure my Raspberry Pi Zero.

1
2 3 4 5
54