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

Detecting connections between non-GPIO and GPIO pins in Pico?

XY-problem I have a keyboard that consists of two halves. Each half uses 16 pins. The pins in each half are aligned in a 8x8 matrix yielding 64 key presses that can be detected, and two times 64=128 ...
0
votes
0answers
25 views

Input Number and output a number of pulses

I own a mobile home park. I have water meters that have remote displays. I find myself constantly needing to change the values of the display. It takes forever to roll the wheel by hand, so I want to ...
0
votes
0answers
30 views

Raspberry Pi Pin 17 Displaying Abnormal Behavior

I found that GPIO 17 (there was a switch wired up to it) had abnormal behavior. I have wired up a hall effect sensor on pin 18, but when it goes low (it is high when not detected, low when detected), ...
1
vote
0answers
30 views

what is schmitt trigger gpio mode in rpi2040?

I have been studying RPi2040 GPIO's function and I don't understand this Schmitt Trigger Mode of the GPIO. I have a background in STM32, can someone please explain this mode relating to STM's GPIO ...
1
vote
1answer
28 views

Increase GPIO Voltage

I need to dock the 12V relay when giving the command via software, however, the GPIO provides only 3.3V not being enough to arm the relay. My idea is to use a voltage booster (Step-up Mt3608) to raise ...
1
vote
0answers
43 views

Control multiple (10+) monitors at the same time?

I want to make an art installation where there's an array of monitors are displaying graphic rendered by a single machine. In the picture I shown, each little square represent a monitor, and the ...
-1
votes
0answers
19 views

Can’t figure out how to get ALITOVE WS2811 LED lights to work

To start, I’m well aware there are lots of neopixel and ws281x tutorials everywhere, but still I can’t get it to work and I have tried following all of those tutorials. But I can’t seem to find the ...
0
votes
2answers
25 views

Short pin 5 for boot, and also use I2C bus on pin 5

I'm building a little audio streamer box, using a Rpi4. This box has a few buttons, such as play/pause, next track, previous track, etc, as well as a power button that I want to use for turning it on ...
1
vote
3answers
40 views

Constant 3V3 to GPIO output behavior

I am new to circuit design, and I have some questions about a circuit I'm seeing in a raspberry pi starter kit. I think my questions is elementary, but I am having trouble finding an answer due to my ...
0
votes
2answers
27 views

Keeping a Python script for PWM running and just changing duty cycle

I am currently trying to connect a laser to my 3D printer and give a TTL signal manipulated by an M106 command. The "official" way didn't work out for me so right now I am trying to control ...
0
votes
1answer
32 views

Raspberry pi zero GPIO pin not detecting Input

so I am using a raspberry pi zero to detect the signal from this NPN Inductive proximity sensor(its input supply range is 6to36V and the signal pin to output the same amount of Voltage which we give ...
0
votes
0answers
28 views

Can i Transfer Data from one raspberry pi to another over i2c? [duplicate]

Hi, i have following Problem: I have A raspberry Pi 3B+ with a Touchscreen, which uses every Single Pin on the 40Pin GPIO header. The only thing i have is a i2c breakout on my Touchscreen. But i have ...
0
votes
0answers
11 views

LTE-HAT GPIO SIM7600

I´m able to connect to the internet via the SIM7600 4G HAT modem when it´s connected to USB. Now I´d like to achieve the same without USB but only with the GPIO connection. Somehow the manual (https://...
0
votes
0answers
24 views

Connecting the pi to a pixhawk flight controller

I am building a drone using a Pixhawk 2.4.8 flight controller. I want to add a pi with a picam to my build. I have followed this manual for connecting the pi to the controller. Therefore I have made a ...
1
vote
0answers
35 views

MCP23008 Python Input Handler

How do I declare a Python callback handler method on a MCP23008 input pin? This Adafruit tutorial, which uses CircuitPython shows how to read input from the extended GPIO pin on the MCP23008, but does ...
1
vote
1answer
60 views

I2C detectable but stopped working - using RasPi 3B, RaspbianOS (and MatLab/Simulink)

Dear community, I'm almost at my wit's end and would be so happy to receive help. It would be a great Christmas present to me if some of you take the time to read and provide inquiry, knowledge or ...
0
votes
2answers
28 views

Raspberry Pi 4B duplicate Rx pins

Can I duplicate Rx on raspberry? If its possible how it will be? I need to connect 2 device which connect via gpio tx/rx.
1
vote
0answers
30 views

GPIO9 Input Always Active

Porting an application from a RPi 3 to an RPi 4 that requires several button inputs. All are working properly, except the button in GPIO9 (Pin 21) is always high/true. Guessing this has to do with SPI ...
0
votes
1answer
23 views

Error setting up GPIO direction of SPI_CE0_N pin

I'm using a Rapsberry Pi Zero 2 to control an FPGA, the Lattice iCE40, via SPI (which I have accordingly enabled via raspi-config). In order to upload the image on the FPGA, I need to follow the ...
0
votes
1answer
51 views

Raspberry Pi Python Script stops after some hours [closed]

i've read that it is a common issue, that some python scripts stops after about 3 hours. i have the same problem with mine. it is a script, that ligths up a LED strip like a fire. Unfortunately i'm ...
0
votes
0answers
37 views

How to setup GPIO on a Flask production server?

I am coding a web application with Flask and I come across with a problem where I cannot setup my gpios on my public production server. It throw an error 500 Internal server error. I've realized ...
-1
votes
3answers
54 views

gpio pin set to output 1 but no current flowing through the fan

I have 2 RPi-4. I've been using a fan inside a case that is designed by Canakit to be used with RPi-4. I've been using the fan for a few weeks by connecting it to constant 5V and ground. Everything ...
-1
votes
2answers
33 views

Displaying number 0 to 9 in a common Cathode 7 segment display

I am using Raspberry pi to display 0 to 9 in a common cathode 7-segment display. A Raspberry pi only has 4 power sources but a common cathode 7 segment needs me to control all the 7 segments ...
0
votes
1answer
34 views

Is it safe to drive the ENA+, DIR+ and PUL+ ports of a stepper motor driver with a 3.3v pin from the RPi 4 GPIO header?

I'm using this Cloudray 2-phase stepper motor driver DM422S to drive this Cloudray Nema 17 stepper motor (52Ncm 1.8A). I connected the signal ports for ENA+, DIR+ and PUL+ of the motor driver to the 3....
0
votes
1answer
33 views

connect an digital gpio output to a digital gpio input

I want to use a GPIO-out to talk to a GPIO-in... two different programs running on the same pi. The program with the GPIO-in can be activated by either a button, or the other program... with the GPIO-...
1
vote
1answer
33 views

Power supply for stepper motor driver board

I'm doing a project where I wish to use 5 stepper motors simultaneously. I've ordered these (with driver board included) https://www.amazon.ca/gp/product/B015RQ97W8/ref=ppx_yo_dt_b_asin_title_o01_s00?...
0
votes
1answer
61 views

Can I add a second processor to pi 4b 8gb? Is it even possible?

I want to get more than the most possible performance out of my pi 4b. I was looking around, and I saw it was possible to get just the processing unit for the pi 4 without the rest of the pi. I ...
0
votes
0answers
31 views

Raspberry Pi | Data Communication | Process Data

I need to receive electricity data from a charge controller with a raspberry pi and process these data on the hmi screen. How can I get accurate information about raspberry pi data communication, how ...
1
vote
1answer
47 views

How can I connect raspberry Pi 4 to submersible water pump

I recently handle a part of my team project which is hand sanitizer part came up with the idea of using a raspberry pi to power and control the hand sanitizer system. It's nothing large scale, but I ...
0
votes
0answers
23 views

High speed TTL pulse generation

I'd like to take ~400 MB binary file, where 0's indicate low and 1's indicate high, and stream this out the rPi I/O with 20 ns time base. So something like 0000101001 Would yield Low Low Low Low Hi ...
0
votes
0answers
26 views

GPIO event monitoring fails on Zero 2

On my (first) Raspberry Pi Zero 2, gpiod_ctxless_event_monitor (from libgpiod) fails, while identical calls succeed on my other Pi 3 and 4. Is this a limitation of the Zero or does this indicate that ...
2
votes
2answers
92 views

Removing noise from I2C inputs

Removing noise from I2C inputs. I have 32 input switches to monitor so I’m using multiple MCP IC‘s communicating over I2C. I’m getting noise when nearby solenoids are activated. There is no impact on ...
1
vote
3answers
42 views

Is It Safe To Connect A 16 Port Servo Driver's External Power Supply To My Raspberry Pi? (Will It Cause A Brownout?)

I have an adafruit 16 port servo driver. In the directions on their webpage, they explain how to wire it, as well as connect an external power supply. They mention not to plug the power directly into ...
0
votes
0answers
37 views

PWM Set mode problem

As you know to work with Hardware PWM you must enable it at /boot/config.txt .I did that and i set GPIO 19 as PWM1 . it works well . but I notice that after the Raspberry Pi boots the GPIO 19 gives a ...
0
votes
1answer
58 views

How To make Raspberry Pi Hardware PWM off after startup

I am driving motor using ESC with Hardware PWM signal comes from Raspberry Pi ,I set the GPIO 19 (PIN 35) to be PWM1 , the problem is when the Raspberry Pi startup it gives output value to PWM1 (GPIO ...
0
votes
1answer
183 views

L298n driver with 3.3V Voltage

I am using L298N motor driver for DC motor. First, I tested the motor with Arduino, by giving PWM signals to the enable pin of the L298N pin. I have two questions: Arduino can supply average 5V ...
0
votes
1answer
52 views

How do you program a 1x4 Matrix Keypad in Raspberry pi?

I bought a 1x4 Matrix Keypad https://www.google.com/url?sa=i&url=https%3A%2F%2Fshopee.com.my%2F-Luminense-1x4-Matrix-Memberane-Switch-Keypad-Numpad-Arduino-Raspberry-Pi-i.63040732.4334990197&...
2
votes
3answers
95 views

How to test for a device at an I2C address

I use i2c-detect to find connected i2c devices on my Raspberry. For example: Now I want to use that information to perform some tasks, for example: if “Address 76 is connected”: DO STUFF For this, ...
1
vote
0answers
41 views

Pins of GPIO expander 'MCP23017' randomly turning on when connected to multiple motor drivers powering 3V dc motors

I have a MCP23017 GPIO expander connected to four DRV8833 dual channel Motor drivers. This setup is later meant to drive eight motors concurrently. I tried testing a few patterns and noticed that ...
-1
votes
1answer
41 views

How to set raspberry pi gpio to low at boot (PWM pins)

I have project that works with raspberry pi 3 which control a motor speed through PWM0 pin (GPIO 19), the problem is that raspberry pi give high state after startup , which cause the spinning of the ...
0
votes
1answer
29 views

Is it possible to power a pi 4 from 1 source and turn on and off using another power source?

I have a raspberry pi 4 and 2 5v power sources. 1 of the power source is always on and i would like it to power my pi. The other one i will be connecting to a 5v to 3v converter and connect it to a ...
0
votes
2answers
36 views

MG 996R Servo only works in one direction with pi 4b

I have an MG 996R Servo from DM DIY More hooked up to physical pin 18 of my raspberry pi 4b running python 2.7.16 with GCC 8.3.0 on Linux2. I am powering the servo with an external 5V supply capable ...
0
votes
0answers
115 views

Hx711 gives random values with RaspberryPi 4

I created a weight scale using a RaspberryPi, Hx711 and 4 load cells. I followed this tutorial and did everything like shown there. This is the circuit they used: I also used tatobari's hx711py ...
-1
votes
1answer
38 views

UART Rx TX pins not reading sensor output RPI3

This is my first pi project so I'm a bit new at this. I'm trying to connect a senseair K-30 CO2 sensor to the pi via the UART gpio pins. This is the sensor I am using: https://www.co2meter.com/...
0
votes
1answer
55 views

Controlling a rotary encoder through a Tkinter interface (letting RPI control the dial instead of the dial controlling a function on the RPI)

EDIT*** I have a "STEC11B03 ALPS" rotary encoder and I want a python script to output the same signal to the circuit as the rotary encoder does when turning. I want the script to do the same ...
0
votes
2answers
104 views

Using GPIO PWM with sysfs

I'm able to write to GPIO pins with sysfs with the standard commands like echo "1" > /sys/class/gpio/gpio6/value, but that only turns the pin on or off. I tried echo "0.5" > /...
0
votes
2answers
17 views

Does the RPI v2 B and the RPIv4 B have the same pinouts?

Question: Do the RPI v2 B and the RPIv4 B have the same pinouts? example: https://www.etechnophiles.com/wp-content/uploads/2021/01/R-Pi-4-GPIO-Pinout-1-768x572.jpg?ezimgfmt=ng:webp/ngcb40
0
votes
0answers
17 views

How to set SPI0_CE0 to be GPIO8 on CM4

I have a CM4 that has a WS2182b RGB LED on GPIO8 as seen in the diagram below: I think I need to change something in /boot/config.txt to be able to use GPIO8. I still want to use SPI0 if possible, ...
0
votes
2answers
36 views

Raspberry Pi 4 GPIOs are constantly on, even after restarting and cleaning up GPIOs

So, I got a Raspberry Pi 4 Model B, and I'm trying to make a project using relay boards. Turns out, when I turn on my Pi, one of the pins is already active and the indicator turned on partially. I ...
1
vote
1answer
39 views

Raspbery Pi GPIO Hat

I've got this Raspberry PI GPIO [expansion hat][1] attached to a Raspberry PI 3b and have a question. Even though the terminal blocks are well labeled, I don't think I understand what pin numbers of ...

1
2 3 4 5
63