Questions tagged [rpi.gpio]

rpi.gpio refers to the package name of a Python module for accessing the Raspberry Pi's GPIO pins. The module allows GPIO pins to be initialised, turned on, and turned off. It uses a functional programming style.

Filter by
Sorted by
Tagged with
1
vote
1answer
182 views

Rpi 3/4 python 2/3 using mfrc522 RFID/NFC library to read/write Mifare blue tag problem

Trying to read my RFID MFRC522 using a Mifare blue tag and it is not working. Wondering if i could get any help on this as when i put the tag to read it doesn't show up as quick? using: https://...
0
votes
1answer
30 views

no output from 8 channel relay when i run the python script below

# import GPIO and datetime import RPi.GPIO as GPIO import datetime # set GPIO numbering mode and define output pins GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) GPIO.setup(37,GPIO.OUT) #Relay 1 ...
0
votes
0answers
19 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
1answer
37 views

Pi Zero W and Light Sensor with LDR

I have a Raspberry PI Zero W and Light Sensor like on the photo: I connected it to Raspberry Pi as follow: GND to GND VCC to 5V SIG to GPIO-3 Using the following code below I am able to detect if ...
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
11 views

Ifconfig, interrupt device and enc28J60 spi1

Good morning I have configured and connected an enc28j60 card to the spi1 port of my raspberry pi3 and I have found the error in the photo that does not make the ethernet port work. I ask you for help ...
0
votes
0answers
20 views

Interrupt Servo once movement has initiated

I'm new to python and RPis. I'm building my own robot to learn. I manage to control my little robot and move it around, as well as moving the pan camera with my keyboard. While I was searching for a ...
1
vote
1answer
103 views

Please set pin numbering mode using GPIO.setmode(GPIO.BOARD) or GPIO.setmode(GPIO.BCM)

I've got an LED on bcm 18 and a servo motor on bcm 8. My code appears here. from gpiozero import LED import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(8,GPIO.OUT) servo = GPIO....
0
votes
0answers
20 views

Why does EmulationStation block GPIO event loop?

I am working on a custom startup script for the Kintaro super kuma 9000 (link is down ATM) case for my raspberry pi 3B+ Here is the minimal example: import RPi.GPIO as GPIO import os import time ...
1
vote
1answer
60 views

Rpi python GPIO PWM control L298 and PCA9685 motor HAT

I need to find out which GPIO pin on the raspberry pi will be connected to which module when I fit the Adeept Motor Hat v2.0 on the 40 GPIO pins. I am attaching the image and the schematic of the ...
0
votes
1answer
128 views

Rpi python GPIO PWM control L298N motor direction and speed problem

I am unable to understand parts of the code #!/usr/bin/python3 # File name : motor.py # Description : Control Motors # Website : www.adeept.com # E-mail : support@adeept.com # Author ...
0
votes
1answer
190 views

Rpi python using L298 motor driver and PCA9685 servo controller to change speed and diretion of robot car

I am unable to understand the code provided with the raspberry pi robo kit I got. I need help in understanding the code as I am new to raspberry. Thanks! #!/usr/bin/python3 # File name : ...
0
votes
0answers
21 views

Rpi 3b Simon Says Button Help

I'm just starting out with my pi and wanted a little project so I decided I'd try and create the game "Simon Says". I rigged up 4 buttons and 4 LEDs on a breadboard, etc. The aim of the game (for ...
2
votes
2answers
26 views

SPI Not working when chip select is connected to ground, works fine when connected to CE 0,1 or 2

I am working on MFRC522 sensors. However I need more than 3 SPI Devices. The 3 works fine except when I want to connect chip select to GPIO, It does not work. I tried a single spi device by connecting ...
2
votes
4answers
78 views

Why is my relay switching on automatically when I start my program?

I'm building a little automated hydroponics system using a raspberry pi zero, a 5 volt relay, a pump and a soil moisture sensor from adafruit. So far everything is working, I can pull the pin to high ...
3
votes
2answers
53 views

Python file called by PHP script in apache server unable to get RPi.GPIO

I've been trying to use a site on my local network to activate the GPIO pins on my Raspberry Pi 4. I installed apache and wrote a quick PHP script which executes a python file in /var/www/html.I have ...
1
vote
0answers
22 views

Can we use pin 3 and 5 for rtc clock module and for detecting input from push button while both are connected?

I have my project where all the GPIO pins of raspberry pi have been utilized. Now I want to add an rtc clock module to the RaspberryPi. Pin 3 and 5 are already connected to the push button in input ...
1
vote
0answers
30 views

Can i transfer files between two rapberry pi's using Aux cable?

As a part of project, i have to transfer any file from one pi to another pi through Aux cable.
1
vote
0answers
179 views

raspberry pi GPIO input value changing randomly

We attached a wire to pin 40 and another one to 3V3 supply. Also attached an LED+resistor between 5 volt and pin number 38. When the wires do not touch each other, the LED constantly emits and all the ...
1
vote
0answers
33 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
1answer
65 views

Can Rpi receive serial/UART data through GPIO pin?

Can I receive data which is transmitted through UART port from a transmitter side raspberry pi on a receiver side Raspberry pi's GPIO pin??
1
vote
1answer
105 views

writing into fifo file and reading it

1.Transmitter side code: A)Recording audio into fifo file(no need to create fifo file separately arecord command will create fifo file): import os os.system('arecord -D plughw:1,0 -d 0 --rate=19200 ...
0
votes
0answers
29 views

What happens if a GPIO “in” pin is accidentally configured as “out”?

I have a 433MHz receiver connected to a GIPO pin (which is configure as "IN"). I was wondering what happens if the GPIO is accidentally configured as "OUT" during reboot, shutdown, or when another ...
1
vote
1answer
26 views

I run thonny and have no module name RPI error

I run Thonny on a pi zero.(i am a beginner) want to activate gpio i get an error" import rpi.gpio as pigo, modulenotfounderror: no module name 'rpi'. i have update library. still not working.
2
votes
1answer
106 views

Voice transmission through UART

I want to transmit real time voice signal recorded by usb MIC through uart using Raspberry pi 3b. But by using USB MIC it is not possible for me to transmit voice to uart directly without storing it. ...
1
vote
2answers
84 views

Whenever I restart my Raspberry pi 4, GPIO pin number 3 goes high and low very fast (bug in pi?)

I just switched from Raspberry Pi 3 to 4, which I use to control some devices. I just discovered that whenever Raspberry pi 4 boots, it changes the pi state of GPIO pin number 3 very fast from low to ...
0
votes
0answers
20 views

Is it possible to consistently apply voltage to two or more devices?

I want to connect two or more of the following actuators to my raspberry pi: https://www.ebay.com/itm/Nano-Magnetic-Actuator-diy-micro-plane-model-servo-micro-actuator-0-5g-/183745663278 However, ...
0
votes
1answer
29 views

Is it possible program GPIO PINs using Microsoft MakeCode?

It is possible to run Microsoft Make Code on a Raspberry Pi. But it looks like I can select a bunch of boards but not a Pi. Is it possible to program the GPIO pins on the Pi by running Make Code on ...
0
votes
1answer
46 views

Turn On/Off 3D printer projector with Python/GPIO

There are similar questions but I don't want to turn on the LED but the 3D printer projector(NQM Plus Light engine) for the image projection. The pins that I wanted to use are shown in the picture. ...
3
votes
1answer
148 views

Sending a binary data stream to a GPIO at a certain frequency

I would like to send a random binary data sequence to a rpi GPIO at a particular frequency and then read the data stream off a scope. Is there a way of implementing this through python?
1
vote
1answer
1k views

How to connect ST7789 LCD to Raspberry Pi

I'm trying to connect to this LCD ( sry 4 japanese page:( use translate plz ) This monitor driver is ST7789, 7pins.[GND VCC SCL SDA RES DC BLK] And now I'm connecting to pi like this https://imgur....
0
votes
0answers
29 views

How to make more efficient reading of GPIO

My (python) program (on Raspberry Pi zero W) turns on/off a GPIO pin (connected to a relay module) depending on the RSSI signal of my phone (connected via bluetooth) and the status of one more GPIO ...
0
votes
0answers
30 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. ...
2
votes
0answers
30 views

PWM on pump not working as expected

I am attempting to run a PWM on a pump using rpi.GPIO using the following code: def run_PWM_on_pump(): gpio.setmode(gpio.BOARD) gpio.setup(8, gpio.OUT) p = gpio.PWM(8, 0.5) #also works at ...
1
vote
3answers
313 views

How Can Rpi3B+ Detect MQ9 Gas Sensor's Carbon Monoxide Leakage, Without Using ADC?

I already have bmp180 sensor connected to raspberry pi 3b+, now I want to add MQ9 sensor like this https://e-radionica.com/en/mq9-gas-sensor.html Is connection straight forward like the bmp180? ...
-1
votes
1answer
235 views

Module not found Error

I am working on rasberry3 pi b+ model for my project and I did installed NOOBS zip file and stored in Micro SD card and put in SD slot on Rasberry Pi b+. When i'm compiling my python code for my ...
3
votes
2answers
987 views

How to connect ST7789 LCD to SPI Bus 1 as 2nd screen?

I've been trying to get this ST7789 library working with the 240x240 1.3" display on the rpi0w Python lib https://github.com/solinnovay/Python_ST7789 So far I've set all the screen pins to the bcm ...
3
votes
2answers
4k views

Where are the uarts on the raspberry pi 4?

The raspberry pi 4 has at least two uarts (as shown here), I know where I can connect to one of them. Pins 8, 10 and 12 have a uart as an option. Source: This site describes accessing uart1, where ...
2
votes
1answer
232 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?
0
votes
0answers
113 views

pad4pi (rpi_gpio) Library “registerKeyPressHandler” not working as expected

I'm currently writing a python program, that initializes the fingerprint sensor at first then showing the number of used templates on the fingerprint sensor after pressing "1" on the matrix membrane ...
2
votes
1answer
132 views

How to install a library on the Raspberry pi 3 without internet?

I've to install the RPI.GPIO library on my raspberry pi 3, on the other hand, I don´t have acess to the internet in this. I'd already download the library in another computer and put this in my USB ...
0
votes
1answer
63 views

Why the same GPIO pin is not working anymore?

I was working with a very simple code: import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(24,GPIO.OUT) GPIO.output(24,GPIO.HIGH) But after running one time when I am running the code nect time ...
2
votes
3answers
342 views

Is there any built in LED connected with GPIO pin?

In Arduino a built in LED is attached with number 13 Digital pin. Is there any LED like Arduino in Raspberry Pi,which I can use to test my code?
0
votes
2answers
132 views

Communicate with GPIO HIGH/LOW between 2 PIs

I have 2 raspberry PIs 1x PI3 and 1x PIZero with camera attached. I want to set up a system to have a output GPIO pin on the PI3 and a input pin on the pizero connect so that when I set the PI3 pin ...
0
votes
1answer
109 views

RPi.GPIO “flush” interrupts

Intro It seems to me that when one adds and event detection, then removes it and the adds it again, something strange happen: 1) an event is removed to the "detection list"; 2) the event happens; 3) ...
1
vote
2answers
3k views

Is the gpio readall command compatible with RPi 4?

It's already a while since I got my Pi 4, but never used the gpio readall command until yesterday. I have run into an interesting error. pi@raspberrypi:~ $ gpio readall Oops - unable to determine ...
1
vote
1answer
178 views

GPIO pin (BCM 12) acts differently on PI3 and PI4

The following code is running on PI3 and is working perfectly fine. I try to provide a short description of what the code does. In this code I first set the BCM 12 as the pin of interest for my sensor ...
0
votes
1answer
242 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
27 views

RPi 3B power supply and external USB Hub issue

I am building a project with a custom USB hub attached to one of the RPi USB ports. On the custom hub I attach 7 USB devices powered by their own batteries. The custom USB Hub is equipped with an ...
0
votes
1answer
47 views

Commercial PIR intergration with Raspberry pi zero

Here is the problem I face. I have a commercial PIR and wondering if it can be seamlessly connected with my pi zero w and how. PIR specs: https://www.thecrowgroup.com/cr/uploads/2019/03/Datasheet-...

1
2 3 4 5
12