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.

622 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
451 views

Problem with 1-Wire devices not showing up on GPIO4

i hope you're having a nice day. For a project i want to implement 1-Wire communication in a Raspberry Pi Zero W. The goal is to use a Maxim Integrated Max17313 Fuel Gauge for inspecting battery usage....
1
vote
0answers
50 views

Device Tree for Generic Output

I'm currently developing my first Pi Hat for a personal project. I've been exploring Device Trees and I'm quite liking the concept from the perspective that the userland code can address specific ...
1
vote
0answers
45 views

Input() called from GPIO input (button press) returns error

I'm learning Python whilst tinkering with various 'kits' I got for my Raspberry Pi. Currently messing around with the RFID-RC522, a simple to use RFID read/write board. I have independent Write.py ...
1
vote
0answers
33 views

setup pi3 to work with embedded modem through TXD RXD

how can I configure pi3 (GPIO ) connected to embedded modem through (UART Pin 8-Pin 10)TXD RXD? and how can write python code to control with modem?
1
vote
0answers
68 views

making a DC motor spin both ways

I week ago, I got my raspberry pi, connected it to a DC motor, and made the DC motor spin using python. now, I'm trying to get the motor spinning both ways. I have tried but failed. What is the best ...
1
vote
0answers
62 views

regulating the speed of a motor connected to a TB-6612 FNG motor driver using the pwm output generated by the pca9685 multichannel servodriver

I understand that this type of usage is not typical for the pca9685. I am trying to use one of the pwm pins of the pca9685 to regulate the speed of a motor. As for now the motor works regularly if ...
1
vote
0answers
169 views

GPIO input, keep high after button press

Hi was just wondering if there was a way of making a GPIO INPUT (connected to a momentary switch) stay high (for a certain amount of time), no matter how long the switch has been pressed for? The ...
1
vote
0answers
18 views

Connect RTC while TFT Display is attached via gpio

I have an raspi zero and it is connected with a RB TFT 3,2" Touchscreen (I dont use the Touch function). Is it possible that I connect a rtc even if gpio 1 to 26 is already used by the screen? ...
1
vote
0answers
150 views

Powering a Servo with 12V Battery and Buck Converter

I wanna power my servo with the 12V terminal of a Mastercraft Nautilus battery pack (see here)(long story). The servo is a actuonix pq-12 micro linear servo (see here). I'm stepping the voltage down ...
1
vote
0answers
120 views

Enabling software i2c causes boot failure

I have a Raspberry Pi 4 model B, fresh installation of Raspberry Pi OS. I am trying to use software i2c to get around the clock stretch bug in the broadcom 2835 chip. I edit /boot/config.txt to ...
1
vote
0answers
139 views

Rpi ILI9341 2.8" 240 x 320 5110 SPI TFT LCD Screen Setup Problem

I ordered a cheap 2.8 inch ILI9341 screen from Amazon (https://www.amazon.co.uk/240x320-Screen-Serial-Module-ILI9341/dp/B07MXH92RL/ref=sr_1_12?dchild=1&keywords=spi+screen&qid=1589230039&...
1
vote
0answers
252 views

How to cut power to gpio pins on shutdown

I am working on a project where i am using a pi running retropie to make a homemade arcade machine. i have wired and coded a startup/shutdown button. i would like to set up the pi n such a way i can ...
1
vote
0answers
240 views

How to connect wires from a SNES controller to the Pi Zero's GPIO?

I am following a MagPi tutorial (issue 42, February 2016) showing how to build a HDMI-powered retroconsole by fitting a Raspberry Pi Zero into a SNES controller. I am unsure how to connect the SNES'...
1
vote
0answers
174 views

Does python sleep function affect GPIO output?

I am using a sensor with Raspberry pi to monitor a process (temperature) every second. I have an LED to indicate if the value is above 50 degrees. And the LED should remail ON for the next 10 seconds ...
1
vote
0answers
384 views

Trouble Detecting Devices on Added I2C Buses

I decided to add additional i2c buses to my raspberry pi 4 through the use of gpios and overlays. I first came across this idea from this post by the instructables. Through editing the config.txt file ...
1
vote
1answer
486 views

Using GPIO.add_event_detect with kivy

Hello Raspberry Pi people, I am using Kivy v1.11.1 on my Raspberry Pi with Python v3.7.3. The goal is to use a GPIO input to toggle the button state (parallel use of a real button and the touchscreen ...
1
vote
0answers
76 views

LIRC null values, Raspbian Buster

I tried to install an IR receiver on my Pi 3B under Raspbien Buster, kernel 4.19. I managed to install lirc, and when I use mode2 -d /dev/lirc0 I read pulses. The problem is the following : when I ...
1
vote
2answers
599 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
103 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 ...
1
vote
0answers
66 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 ...
1
vote
0answers
303 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 ...
1
vote
0answers
106 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
36 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
0answers
685 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
70 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
0answers
200 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 ...
1
vote
0answers
468 views

JavaScript library for the HC-SR04 Ultrasonic sensor

I wired the sensor to my Raspberry Pi. My aim is to use JavaScript to get a live reading in the console of the distance, but the module I found has been archived by the author. Code that I found on ...
1
vote
0answers
490 views

LIRC sending error transmission failed

I am trying to set up and send IR-Signals with my Pi using LIRC I was already able to receive signals and to configure them as a remote device. I followed this tutorial : https://gist.github.com/...
1
vote
0answers
184 views

Rpi AdaFruit python library controlling SPI MCP3008 of eTape Liquid Level Sensor problem

I have a rpi4 and have successfully replicated the project listed here using the eTape sensor (etape tutorial) I am satisfied with the performance using long breadboard and T-cobbler. In order to make ...
1
vote
0answers
146 views

Raspberry pi 0's GPIO not working (no output)

So I used to use a Raspberry Pi 3B to control my LED strip. It was, of course, an overkill but a fun project. I now want to do the same but with a Raspberry Pi Zero w. I got one, soldered the GPIO ...
1
vote
0answers
53 views

What's the maximum rf fm signal that i can generate using raspberry pi?

I am planning to create a raspberry pi based monitoring system where my raspberry pi acts as a transmitter. I learned that we can use pi to generate FM signals from RPiTX project. I am planning to ...
1
vote
0answers
110 views

How can Rpi GPIO read the status of a water flow switch connected to a chlorinator?

My pool salt chlorinator uses a flow switch (https://harwil.com/product/flow-switch-model-q-12/) to detect when the pool water is circulating, which is one of the conditions to allow the production of ...
1
vote
0answers
733 views

Sine Triangular PWM using Raspberry Pi 4

I am new to Raspberry pi. I want to make sine triangular PWM which will control the H-bridge of the inverter. I generate sine wave (50 Hz)and triangular wave (1500 Hz) using python language and ...
1
vote
0answers
51 views

EasyDriver stepper motor through sysfs not moving

I'm trying to activate a stepper motor using easydriver from here https://www.schmalzhaus.com/EasyDriver/Examples/EasyDriverExamples.html using sysfs and C, but it doesn't move. I connected my ...
1
vote
0answers
56 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
177 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
1answer
81 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
135 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 ...
1
vote
1answer
552 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
0answers
35 views

Can i play a wav file with sample rate 250Khz in my pi 3b+?

I had a wav file which sample rate is 250Khz, how can i play it in my raspberry pi 3b+, and is there any method to output it as PWM form with GPIO. Thanks.
1
vote
0answers
191 views

FM Radio with HifiBerry Amp2

Is there a way of running a Raspberry Pi 3 with a mounted HifiBerry Amp2 together with an FM Radio Module e.g. TEA5767 FM Radio Breakout Board? Currently I set up my RPI to run Mopidy and Spotify ...
1
vote
0answers
129 views

How to control Midea HVAC (not standard) using Raspberry Pi

I have a Midea duct HVAC that has only the option of wired thermostat remote and it's not smart. I want to build something smart so I can turn on / off the AC or the heating remotely, but I don't ...
1
vote
0answers
96 views

6 Stepper Motors at 3000 Steps Per Second

I am planning on purchasing 6 stepper motors that I will need to operate at roughly 3000 steps per second each with DRV8825 stepper drivers. I was wondering if the Raspberry Pi 3B+ has the speed to ...
1
vote
1answer
1k 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
vote
0answers
208 views

RFSniffer and Transmitter program for 434 mhz receiver and transmitter

In the past, I have successfully build a solution to control my etekcity smart plugs working on 433 mhz using the RFSniffer and transmitter ( RFOutlet ) etc. programs. Currently i am trying to ...
1
vote
1answer
1k views

Pigpio not calling Callback for first rising or falling edge

I have some sample code (taken out of my larger program) that regularly (but not always) missing the first rising edge: #!/usr/bin/python import pigpio, time def callback(g, l, t): print("Callback ...
1
vote
1answer
298 views

HC-SR04 Ultrasonic Senor Wiring, Operation, and Python Programming Problem

I'm using a Pi Zero W with a soldered project board to interface two ir Sensors and trying to make an HC-SR04 sensor work. I'm using the 5v supply to power all three sensors. I've set up a Motion.py ...
1
vote
0answers
333 views

How to get maximum GPIO output speed in Kernel module?

I'm writing a Linux kernel module on RPi2 to push an array to RGB Led matrix, so I want to have maximum speed of GPIO to reduce the 'flick' when it run Bit Angle Modulation. According to this site, ...
1
vote
0answers
105 views

Issue with controlling GPIO via Flask web app

I am currently building a project in which I am using a Flask web app to control various different components with the pi's GPIO. The issue i am currently having is stopping the execution of code that ...
1
vote
0answers
234 views

RF 433Mhz reciever not finding remotes

I'm having some trouble with my 433Mhz receiver on my pi. I first tried to read the signal my Nexa PET-910 and 433Mhz doorbell sent on the pi, but I could not get any usable data, just noise, or no ...

1 2
3
4 5
13