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.

117 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
349 views

How fast can GPIO pins toggle on the Pi 4?

Benchmarking of the Pi 4 using the Python GPIO Zero library shows a significant increase in the frequency of toggling a GPIO pin on and off compared to previous models. This result is attributed to ...
3
votes
1answer
51 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?
3
votes
0answers
743 views

How to properly trigger multiple Raspberry Pi camera modules via GPIO?

I am working with three Raspberry Pi 3 B boards, which in turns have RPi camera modules V2 connected to each. I followed this very detailed post about triggering another Pi using GPIO pins and it ...
3
votes
0answers
550 views

RPi.GPIO autocompletion

Is there any way to have auto-completion when working with the RPi.GPIO in Python? I don't see it having any Python sources that could be used for it. I'm using IntelliJ IDEA, which uses PyCharm's ...
3
votes
0answers
203 views

How Can I Properly Ground My RPI To Avoid Static Interference?

I have researched every where for this problem and cannot find a direct answer. I am currently working on a project which involves a large 20ft conveyor belt transferring product into a Plexiglas box ...
3
votes
2answers
233 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
1answer
2k views

3.3 V and 5 V pins shorted — is the Pi dead?

I am new to Pi development now while working suddenly the cable wires of pin1 (3.3 V) and pin2 (5 V) got in contact for a short time then the Pi shutdown. When I turn it back on, only the LED red is ...
2
votes
0answers
23 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 ...
2
votes
0answers
42 views

How to run 3 Input scripts from 1 script

I've got an alarm system with 3 inputs and 3 outputs. But so far each input is controlling the outputs from it's own script. I did this because I wanted to get one thing at a time working on its own. ...
2
votes
0answers
386 views

device tree and led blink

I am trying to create one led driver via device tree in Rpi 3 I had created the dtsi file /dts-v1/; /plugin/; / { compatible = "brcm,bcm2837"; fragment@0 { target = <&...
2
votes
1answer
5k views

How to set a GPIO pin to default HIGH before setting it to output?

I have a raspberry pi connected to a Sainsmart 4-channel relay, where each relay is activated by a LOW signal. When I set a GPIO pin to output, it defaults to LOW, which of course activates the ...
2
votes
1answer
1k views

pull up resistors from rpi-gpio.js

I want to use the internall pull down resistor. In python the setup method accepts a parameter for that, like: GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) according the rpi-gpio.js ...
2
votes
0answers
366 views

Can't Set/reset GPIO pins using nodejs, why?

I'm using Raspberry Pi model B Type 2 with ARM6 and Type 3 with ARM7. I have tested this code several times and after a week, when I tried, it is not working. Below is my node js program: var ...
2
votes
0answers
119 views

GPIO goes high on first initial run of script - please help get my ECTO 1 on the road!

I am having a few problems with my script, on a fresh boot of my pi, the GPIO Port goes High and switches my relay when I run this script, however, it doesn't do it after I initially run the script, ...
1
vote
0answers
144 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....
1
vote
0answers
116 views

raspberry pi3 + fingerprint

I'm looking for a way to connect fingerprint scanner with raspberry pi3 using python. I'd like to use only gpio or hat (not usb) interface. I'm searching for a while without figured out, so I've ...
1
vote
1answer
832 views

Why is PIR motion Sensor always on?

I'm trying to make an alarm system but the motion sensor is always on as soon as the script is run. I've posted a question about a different problem i was having with this project so it'll confusing ...
1
vote
0answers
78 views

Display drivers for RaspberryPi3B+

I am trying to get a 3.5 inch RPi Display working on my raspberry pi. I have written my sd card with raspbian and the pi works well (red LCD glows all the time , and greed LCD flickers (fades on and ...
1
vote
1answer
132 views

Two stepper motors with python

I want to make a motorized rc paddle boat type machine for fun. I plan to use two stepper motors to spin two wheels on either side of the boat. I am controlling it with python. I have a master script ...
1
vote
0answers
92 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
vote
0answers
85 views

MPR121 capacitive touch is sensible enough?

I have a Rapsberry Pi 3 A+ with an Adafruit Capacitive Touch HAT for Raspberry Pi (MPR121) and the idea is to plug it to the wet soil of a plant and it detects when I touch the plant (or a leaf) and ...
1
vote
0answers
177 views

Interrupts with MCP23017 using the mcp23017 dtoverlay

I'm at my wits end with this one. Okay, so we've got an MCP23017 with its INTA wired to the Pi gpio12 (bcm) in /boot/config.txt dtoverlay=mcp23017,addr=0x20,gpiopin=12 so far so good. I'm looking ...
1
vote
0answers
168 views

Raspberry pi 3 - GPIO output stays at 1.8V

I've set-up a GPIO port to output. With an external multi-meter, I've noticed that the potential stays at 1.8V in respect to the ground. I've checked in respect with the same ground, and the 3V3 and ...
1
vote
0answers
1k views

Simple intercom with rPi

I saw someone had a question a couple of years ago about connecting his intercom (which used a phone line) to a rPi and none of the answers were realistic. I also would like to do some simple project ...
1
vote
1answer
256 views

Raspberry Pi 3 GPIO pins always active

Wiring setup for Rpi: I have an rpi 3, and I've recently started experimenting with the GPIO side of things. I'm new to electronics in general, although I do computer programming regularly. I have a ...
1
vote
1answer
36 views

GPIO.input(24) is coming back True when it shouldn't be (false button presses)

I have a button in a working circuit. Within sys/class/gpio/gpio24, value changes properly (it becomes 1 when pressed down, 0 otherwise). When I use GPIO.setup(24, GPIO.IN) within python, GPIO.input(...
1
vote
0answers
973 views

RPi.GPIO - Properly Wiring and Setting Up Pins for Button Inputs

Edit: Breadboard, schematic, and code updated. I accidentally fried my Pi by shorting it out through the GPIO pins, so I figured it would be a good idea to ask for some help before trying my current ...
1
vote
0answers
27 views

How to create installer files in Raspberry pi

I have created a program in Raspberry pi and I am running it using the command python myprogram.py . Is it possible to create the installer file of this program? that means after installing this ...
1
vote
0answers
99 views

pigpio monitor GPIO not detecting change correctly

I am having trouble detecting a level change on pin 16 (or any other pin). My script is as follows: import RPi.GPIO as GPIO from time import sleep GPIO.setmode(GPIO.BOARD) GPIO.setup(16, GPIO.IN, ...
1
vote
0answers
122 views

Pin on off engine javascript nodejs

I have a little engine linked at pin 1 and 3. How can I turn it on and off throught nodejs? Is there also a way to control how many volts are sent (to make the engine faster or slower)?
1
vote
0answers
617 views

How can i emulate a ps/2 keyboard with raspberry pi3

So I am working on an medical machine which runs on microcontroller(So,No OS).It gets the input from ps/2 keyboard. I would like to automate it. I would like some basic idea and some help on how to do ...
1
vote
0answers
177 views

Raspberry pi shutdown when running python code

i have a python code which is running and has no errors, it is connected with arduino uno using nanpy firmware and lcd which has the library of adafruit/Adafruit_Python_CharLCD and it uses gpio BCM, ...
1
vote
0answers
189 views

conflict GPIO pin (between setting a pull-up resistor and a hat not claiming to use that pin)

I have a raspberry PI 3 (Raspbian) with HifiBerryDac+, running Mixxx. I wanted to run a pythonscript (2.7) which would allow users to automatically restart Mixxx by pressing a button (in case they ...
1
vote
1answer
473 views

Raspberry Pi 3 with Feetech FS90R servo

Currently I have a very basic setup where I have a FS90R continuous servo running on a my Raspberry Pi 3 using Windows IoT and a C# based application. I'm trying to get the servo to pin using the ...
1
vote
0answers
652 views

GPIO Button Input not triggered in Python

I have recently bought a Raspberry Pi 3B, for a project where I require a program to recognize a pressed button and do something after that. It seems a common and pretty easy task for a Pi, however I ...
1
vote
0answers
145 views

Multiple push buttons act as one

I know that the question from the title isn't quite new but any question before answer really to the problem I'm having. I have manage to make different push buttons to work on the RPi (it's a RPi3 ...
1
vote
0answers
305 views

GPIO.wait_for_edge misbehaving in a loop

I have square signal attached to the pin 23 and am running the following code to detect how long does the pulse width last: import RPi.GPIO as GPIO import time SENSOR_PIN = 23 GPIO.setmode(GPIO.BCM)...
1
vote
0answers
337 views

Why did my Raspberry pi blow up?

Thanks in advance for reading guys. Last night I set up a circuit to see if I could heat up a resistor to about 60(ish) degrees C but do it with the resistor part of the circuit on paper. This ...
1
vote
0answers
86 views

Is it possible to change boot state for gpio in windows iot core

is it possible to change the initial boot state of the gpio pins using windows 10 iot core? Per the documentation, by default 2-8 are pullup, and 9-27 are pulldown. I'd like to change it so more are ...
1
vote
0answers
121 views

What will happen if I Power-ON RPI simultaneously from GPIO Header Power pins and Micro USB?

What will happen if I Power-ON RPI simultaneously from GPIO Power pins and Micro USB? For RPI1,RPI2 & RPI3
1
vote
0answers
159 views

Building MRAA for Java on Pi 2 B (raspbian)

i'm trying to use the MRAA lib to program the pins with java, but when I built the files, I can't find where the path was set, idealy it would be set on /usr/lib, but there's no mraa. Without it I can'...
1
vote
0answers
78 views

GPIO unexpected behaviour after 10 hours of running python script

I have a python script running as a service on Raspbian Jessie that watches for a button being pressed and lights an LED when it is done. Initially everything works as designed, however I have found ...
1
vote
0answers
516 views

starting and ending a script with a buttonpress

I'm trying to integrate a button into a simple alarm project of mine but am having trouble activating/deactivating the alarm with a button press. Using Raspberry Pi 2 - Raspbian Jessie My wiring is ...
1
vote
1answer
2k views

Problem with ESC, brushless motor and Raspberry Pi

I have connected an ESC (an electronic speed control) with a battery and a brushless motor. The Raspberry is connected to the ESC to control it. I know - when I turn on the program that is on the ...
1
vote
0answers
1k views

Image Processing With Windows IoT Core

I am a Newbie to Raspberry Pi Windows IoT core, I wanted to create a system to detect total number of Chairs/Tables present in a room for business, I researched a lot, I had a few sites stating that I ...
1
vote
0answers
284 views

Run brushless motor with esc

I have looked all over the internet on how to run a brushless motor with an esc through RPi.GPIO and have no results. I have tried simply wiring the esc as it is supposed to be and programming it ...
1
vote
0answers
1k views

kernel Disabling IRQ #49

I am using the RPi_GPIO library in a python shell to read a raw wireless signal using the wait_for_edge() function in a loop like so: while True: GPIO.wait_for_edge(26, GPIO.RISING) print 'R' ...
1
vote
0answers
2k views

Raspberry Pi 2, Windows 10 IoT Core, 433Mhz Transciever

Anyone had any success receiving RF signals with any circuit board transceiver (like NRF24L01, RF1100SE, CC1101, etc) on a rPi2 with Windows 10 IoT Core? I had this working fine on rPi/python, but ...
1
vote
0answers
681 views

how to read from a GPIO pin when it changes?

I create an app that must detect when the lights(LEDs) changes their status (on->off or off->on) monitor this to a site.I create this app in client side with node.js and use rpi.GPIO package from here....
1
vote
0answers
302 views

Adafruit 16x2 RGB LCD scrolling down?

So I'm working on a little project to show a fortune on this 16x2 LCD. I've been successful so far, but when it came to longer fortunes, it would just cut off. How would I go about scrolling downwards ...