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
0answers
18 views

Creating a Pulsatile Pump with Raspberry Pi

so I was given a setup on an Arduino to transfer to a Pi with Ubuntu on it. I am pretty new to this, so please excuse any stupid ideas... so the current setup on the arduino is a 24V Pump (Comet 1395....
0
votes
0answers
20 views

Connect a Microphone to Raspberry Pi Pico ADC Pins

I’d like to try using my voice as an input to my Pico. I think I should be able to define a pair of one-word voice commands, and train a Tensor Flow Lite Micro for Pico model on them. What I can’t ...
0
votes
0answers
12 views

Bash code for UPS detection of re-introduction of external power to Raspberry Pi

I am currently working on an RPI based project and have incorporated a HAT based UPS to access when there is a loss of external power + graceful shutdown. External power loss will occur frequently. ...
0
votes
1answer
15 views

brushless dc motor connection

i am connecting 2 brushless dc motors to a raspberry pi B and need help on connecting the correct pins . I saw a video on how to connect one motor but don’t know which ones to use to connect the ...
0
votes
1answer
39 views

Pigpio servo and step motor control

I am able to drive the step motor by using wave_chain() method of the pigpio library. Now, I have to drive the servo motor with stepper motor at same time. The documentation says that wave_chain() ...
0
votes
0answers
18 views

How to test if Pico State Machine is working?

I am trying to get some WS2812b LEDs to run with my Pico. Before actually attaching them I am trying out this library: https://github.com/benevpi/pico_python_ws2812b/blob/main/ws2812b.py It is using a ...
0
votes
2answers
23 views

running loop in call back function blocks other callbacks - GPIO add_event_detect

This is my complete code, that does not work as expected. The issue is if f_trigger def while loop runs, then f_reset is deaf - not listening anymore and not triggered. therefore alarm_cancel is never ...
1
vote
2answers
51 views

How to use 2 GPIO pins for 3 buttons

I am using almost all the GPIO pins on a project so I had to be resourceful when adressing the pins for the buttons. But I just can’t get it to work. I don't know if something is wrong with the code ...
1
vote
3answers
65 views

Do double sided GPIO headers exist?

I'm trying to attach two peripherals to a Pi Zero (no pin conflicts as far as I am aware), and I'd like to attach one peripheral to the front of the board and one to the back. Is there such a thing as ...
0
votes
0answers
17 views

SIM7600 LTE Modem via GPIO

I am building a drone that should connect to LTE internet with waveshares SIM7600 HAT. Every guide I see online for using the HAT as a LTE modem is using a USB connection between the PI and the HAT. ...
2
votes
1answer
64 views

Can a Raspberry Pi boot a small OS/application off of a floppy disk?

Is it possible to develop a small OS/script for the Raspberry Pi that can boot from a floppy disk? If so what knowledge and tools would be needed to accomplish this? i.e. No sd card, just a floppy ...
0
votes
0answers
20 views

Hardware Timed Servo PWM

I am working on a some time-critical system that will run image processing and controlling 4 SG90 servo motors. In short, I will do visual-servoing. In this topic, joan pointed out some library, ...
0
votes
1answer
23 views

Controlling 4 servo motors through hardware PWM

I am working on a some time-critical system that will run image processing and controlling 4 SG90 servo motors. In short, I will do visual-servoing. Since I will do visual servoing, I don't want to ...
0
votes
0answers
13 views

RPi.GPIO on ubuntu 14.04 running ros. Python 3.6.3

I'm trying to controll the GPIO pins while running ROS on ubuntu 14.04. First i got the error that went something like "can only run on a raspberry pi!" So I upgraded my python to 3.6.3, now ...
0
votes
2answers
68 views

raspberry pi and ultrasonic distance sensor HC-SR04

So I have my raspberry pi, I watched a YouTube tutorial on what to do. I copied absolutely everything but still, it's not working. The wiring is surely correct as it is copied from the video and the ...
0
votes
0answers
10 views

SIM800 shield as Internet provider

I've been using for a while a Huawei USB dongle as an Internet provider for my Raspberry Pi, which I have connected to my solar panels system at my country house (which doesn't have an accessible ...
0
votes
1answer
24 views

try to set GPIO.output(x, LOW) but connected LED still lights

I try to make a LED light up with the code import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setup(16, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) ...
0
votes
0answers
12 views

ltp305 Dot Matrix Python Library not allowing me to use display.set_character()

I am trying to display a number on a Dot Matrix ltp305 display that increases with each button press, enabled by the pressing of a normal button connected to the GPIO. I am sure everything is ...
-3
votes
0answers
15 views

Is it possible to program STM32F103C8T6(Blue Pill) using raspberry pi GPIO pins?

I have a doubt, I want to same some money sooo... I want to program STM32F103C8T6(Blue Pill) using raspberry pi from visual studio + PlatformIO\ I don't want to use USB to FTDI converter / STLink is ...
-2
votes
1answer
17 views

Problem with GPIO PIN 4 (Physical pin 7)

I have a simple LED circuit. I want to connect 3 LEDs to 3 different GPIO pins 2,3 & 4 (GPIO numbering). Pins 2 and 3 works perfectly fine, but 4 wasn't working as expected. I disconnected all the ...
0
votes
0answers
26 views

LED strip works through Arduino PWM, but not Raspberry Pi PWM

I've been stuck on this for a while. I'm following a simple tutorial for RPi-controlled LEDs. From this, my LEDs do random stuff and don't light up correctly. I've been trying strandtest from this ...
0
votes
2answers
66 views

How should I interface a solenoid to a RPi GPIO input?

I want to use a Raspberry Pi 4 to turn my existing dumb doorbell into a smart one that can trigger alerts and other home automations. The doorbell is a simple chime, consisting of an electromagnet in ...
1
vote
1answer
38 views

5V short circuit with GND

When using mpu6050, vcc wire short circuit with GND like 10 times, and cause shutdown every time, raspberry pi is still working now, Mpu6050 can't detect when typed sudo detect y -l, there is nothing ...
0
votes
2answers
254 views

Fan control GPIO settings

I have several Raspberry Pi 4 with a case that includes a fan. I connected the red cable to 5v Power(Physical/Board pin 4) and the black cable to GPIO 14 (Physical/Board pin 8). I setup raspi-config ...
0
votes
1answer
22 views

pigpio gpiosetAlertFunc keep missing pulses that are measly 150Hz

I am using pigpio's gpiosetAlertFunc() to listen for a falling edge on a pin but it keeps missing like 80% of the pulses. the pulses are 400ns long that repeats every ~7ms. Im guesing that the pulses ...
0
votes
0answers
18 views

pigpio gpioHardwareClock() and gpioSetAlertFunc() does not activate on my second pi 4

So Im moving my code to a new pi4 from my old pi4 because i think the old one has some hardware problems. but when i ran my code on the pi 4 two of the functions that i heavily rely on does not work ...
0
votes
1answer
31 views

Boot Pi4 using GPIO of Pi0

I am trying using Pi Zero GPIO and optocoupler to Power On(boot) my Pi4. My Pi4 is shutdown with terminal command(It is connected with power). My schematic set up: My Python code: #!/usr/bin/env ...
0
votes
1answer
52 views

How to read SPI memory with raspberry pi? (using wiringpi)

This is the pinout I have for the flash memory W25Q128FV which I'm trying to interact with I'm trying to control it with a raspberry pi 3 B+. Here's how I wired everything: CS - GND D0 - SPIMISO WP - ...
0
votes
0answers
15 views

I2C lines doesn't work when the camera is enabled on Kernel 5.10

I'm using a Raspberry CM3L+ module on CM3-Panel hardware. This hardware works with no problem with the latest Raspberry OS (January 11th 2021). I tried to upgrade the OS to move to Kernel 5.10: sudo ...
0
votes
0answers
27 views

Dimmable directional LEDs under GPIO control?

I'm wanting to source miniature 12V dimmable LED spotlights for control by the Pi. I've used IRLZ34N mosfets in a simple circuit and gpiod/pigs on the Pi before to control 12V "5050 RGB" LED ...
0
votes
0answers
19 views

Beginner question: Bad results with WS2812B and strandtest.py

I have a setup for testing my WS2812B led strip with the raspberry pi. I am following the AdaFruit best practice guide Including using the recommended level shifter after the pwm pin. I've included ...
0
votes
0answers
20 views

Capacitive Sensing on the Raspberry PI without hats

I saw a project on Instructables which made a Arduino Tinfoil Piano. I wish to recreate that using the Raspberry Pi 3b+. The project involves in using the Capacitive Sensor Library in the Arduino, ...
0
votes
1answer
62 views

Testing Raspberry Pi 4 GPIO

I'm fairly new to RPI and I'm looking for a way to check if my GPIO pins are faulty, I've tried pigpio test but it failed all my pins and I've seen that this test isn't viable for RPI 4. Later on I've ...
0
votes
2answers
38 views

How to control the brightness of an LED with or without additional hardware by setting a variable

I already know that using for example GPIO.output(led_pin, led_state) I can turn on and off an LED. What I would like to have, is to adjust the brightness of an LED, either by an absolute value (in ...
1
vote
1answer
52 views

Let the RPi generate a pulse per second (PPS)

I'm trying to let the RPi generate a PPS (pulse per second) to synchronize an external LiDAR with the RPi. The PPS is the only way to synchronize the LiDAR with the RPi and I can't use a GPS module as ...
0
votes
1answer
22 views

Connect Infrared sensor with GPIO

I'm following a tutorial on how to connect an infrared sensor to the raspberry pi to control it with remote control. So far so good, the infrared sensor is working, but now I have to read its output ...
0
votes
2answers
122 views

Raspberry Pi DHT 11 sensor not working.I get None None

Have integrated Raspberry pi4 with a DHT sensor. The data pin is connected to pin GPIO 26 Have tried connecting the VCC to both 3.3V and 5V Have tried with both Adafruit_DHT.DHT11 and Adafruit_DHT....
1
vote
0answers
82 views

Which of the GPIO pins are suitable for controlling the WS2812 strips?

I'm running multiple (6), separate WS2812 strips off of one Raspberry Pi4. They each need to be running independently - so the strip running on pin D18 will be getting different commands to the strip ...
0
votes
1answer
32 views

Shutting down a LED when a script fails

I have a python3 script which is started by systemd automatically on boot. This script turns on a green LED to signal that the script has started. Now I want the LED to turn off if the script fails/...
-1
votes
1answer
55 views

What code do I need to play videos using GPIO buttons with a raspberry pi?

I am trying to make a python program that uses GPIO buttons to play videos on a raspberry pi. I do not really understand python and I need some help with the code to make the videos play. I have tried ...
0
votes
1answer
39 views

how to properly make a charging circuit — 2s 7.4V to 5V 2A

I have 2 18650 li-ion cells, each at 3.7v and this bay with this white connector I saw on youtube that depending on the length of the cell, we can know whether they have integrated "invisible&...
-1
votes
1answer
30 views

Can't read or write from gpio

I am running Linux pi 5.9.0-0.bpo.5-arm64 #1 SMP Debian 5.9.15-1~bpo10+1 (2020-12-31) aarch64 GNU/Linux on a raspberry pi 4 and trying to access the gpio pins. I ran the following commands: sudo -i ...
-1
votes
1answer
52 views

1.44 inch ST7735S lcd screen on gpio only white output [closed]

I recently bought an lcd screen on ali express that is attached to the gpio, but the system does not detect it, screen is constantly white and output is only on hdmi. I tried turning spi on raspi-...
-1
votes
2answers
39 views

Transistor and 12V diode strip

I wanted to control my 12V diode strip with Raspberry, but I am not very confident in my circuit-creating abilities and I don't want to fry my Raspberry. So I created a basic circuit diagram: I want ...
1
vote
2answers
44 views

What should I look for to find the proper GPIO chip on the system?

I'm using the Rust gpio_cdev library. This uses the GPIO character device, rather than the deprecated sysfs. With the character device, you need to tell it the proper gpio chip to use. My code might ...
0
votes
0answers
25 views

write and receive image to embedded modem via txd rxd in raspberry pi 3

How can I send and receive image (page) to embedded modem via Txd Rxd in raspberry pi3 using python ? And how can configure buadrate and flow control using Cts Rts?
0
votes
0answers
26 views

How to use 4 CS for SPI in C++

I'm currently trying to implement 4 CS in RaspPi. I'm still a newby in this field and used the library wiringPi. For CS0 and CS1 this works totally fine. However now I have 2 more CS on the GPIO Pin ...
0
votes
0answers
23 views

Calculating a time-varying voltage output that simulates a modulated carrier wave

So I have this measurement instrument and I want to transmit its data (database files from MySQL) at low frequencies (80-100kHz) through a limestone cave ceiling to the surface. Disregarding the ...
0
votes
1answer
31 views

Connecting 2 Raspberry Pi's for Extra GPIO ports

For the project I am working on, i will need more GPIO pins than the Raspberry 4B provides. I'm looking into combining 2 Raspberry 4B's together to get extra GPIO pins. I also looked into port ...
2
votes
2answers
116 views

Re-configure SPI-CS as gpio while using SPI

I am on a raspberry pi 4. Using both SPI's with no need for either chip select. I'm running out of I/O and could really use those. Does anyone know if there is a way to repurpose the SPI chip selects ...

1
2 3 4 5
60