Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
0answers
26 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. ...
1
vote
1answer
27 views

How Can I Determine Why My Python Script Is Terminating?

I'm running Raspbian Jessie 4.9.35-v7+ on a Pi 3 Model B. I cobbled together a basic python script to monitor a GPIO pin and send a network signal to a remote application and made two copies of the ...
1
vote
1answer
64 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
3answers
79 views

How to stop LEDs blinking when button is pressed

I've got 4 LEDs, a buzzer and a button. There's an add_event_detect to switch the LEDs and buzzer on and off. The callback methods works find when the outputs are just on continuously until another ...
1
vote
2answers
94 views

Reading only 0 from ADC using RPi SPI

Everytime I try to read analog channel 0 from ADC, it only prints 0. I am confused why. I shorted MISO and MOSI on my RPi to check SPI send/receive and it was working. But if I test it after properly ...
2
votes
1answer
21 views

While reading RC522 RFID reader keypad won't work

I am using pimylifeup library to read RFId card. But after id, text = reader.read(), I don't get reading from 4×4 keypad. I tried with both BOARD and BCM numbering to read keypad. I have to exit the ...
1
vote
2answers
34 views

Connecting RPi to a motion sensor

I'm new to working with RPi GPIOs, and I never studied electronics so bear with me on this newbie question. I have an RPi 2 Model B, and I'm tasked with detecting a motion detector alarm going off. ...
-1
votes
1answer
33 views

Sg 5010 servo 360 degree modification not working [closed]

As per the video tutorials out there, I opened the motor, took out the potentiometer and measured its resistance at max. Its a b5k pot so it measured 5kohm I put 2.5k ohm from each pin (s and -) and ...
1
vote
1answer
41 views

I would like to switch on the Raspberry GPIO using an NPN transistor (2n2222)

Hello guys I am currently working on a project. and I would like to turn on a GPIO pin when my LED on the circuit below turns on. I'm lost to where I should tie my input GPIO pin. please help. Thanks!
-2
votes
2answers
64 views

Python: how can a delay the repeat of my print command?

My objective is to program a print out a reading, but I want to delay the reprint so that its not spamming me with the reading constantly. try: cpuFile=open("/sys/class/thermal/thermal_zone0/temp","...
1
vote
0answers
41 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
0answers
26 views

Sixfab LTE IOT HAT throwing continuous AT Command

I was working on getting my new Raspberry Pi HAT that I have received and tried the simple example just to see if it is working fine. I have not been able to send a text message to my mobile phone. I ...
1
vote
1answer
49 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
36 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 ...
0
votes
1answer
17 views

Error installing rpi.gpio on minibian

I am new to raspberry pi and following a series of online tutorials. I installed minibian according to the tutorial. everything was working fine until I had to install rpi.gpio. I am getting the ...
2
votes
2answers
98 views

More Digital Inputs

I am working on a project where I need 50 Digital Input/Outputs. Each one of the 25 of the Digital Inputs will be connected to a small piece of metal, triggered by Capacitive Touch with a finger and ...
1
vote
1answer
88 views

I am using a RFID reader module MFRC522 with my raspberry pi but it is not working with python 3

I am using RFID reader module (MFRC522) with my raspberry pi and when I run the script with python 2 it works fine and reads the RFID tag but when I run it with python3 I get an error - No Module ...
5
votes
1answer
53 views

Is there a GPIO current limit function available, and where is the documentation?

I have read that limits may be programmed for the output current of GPIO pins. However, after reading several online versions of Broadcom's data sheet for the SoC, I've found nothing to corroborate ...
1
vote
0answers
34 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 ...
0
votes
0answers
22 views

Motor-Potientiometer read and write, additional power source

I want to get and set values for a motor potentioneter ALPS RK16812MG from a raspberry pi. I found a similar approach here however, the answers in that forum suggest a different wiring with an ...
1
vote
0answers
42 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
votes
2answers
107 views

Control motors and servos simultaneously (Python)

I have a Raspberry Pi 2B+ and some knowledge of Python. I need to control a DC motor, two servos and a LED simultaneously. The requirements are: Must control two servos, a LED and at least 1 DC ...
1
vote
2answers
33 views

Channeling a single circuit into 6 possible circuits based on gpio pin signal

I basically want a single input relay, with 6 outputs, that switches to any of the 6 outputs based on the gpio signal, if that makes sense. So the gpio signal would send a signal like 1-6 in binary ...
0
votes
0answers
28 views

trying to rotate 28BYJ48 and 2 NEMA17 stepper motors simultaneously but the rpi reboots each time

I am trying to control a 28BYJ48 stepper(Driver ULN2003AN) and 2 stepper motors NEMA17(A4998). I wrote the code using python using PIGPIO but the rpi turns off every time I try to run the code. I ...
2
votes
2answers
106 views

Safe power supply through GPIO pins

I'm designing a HAT and need to supply power to PI zero W and PI 3B+ through the GPIO headers[2&4]. The supply would regulated at 5V 4A (Would be sharing the same power supply with a Thermal ...
0
votes
1answer
65 views

enable software i2c on raspberry pi gpio

I am trying to interface more than one sensor with Raspberry Pi Zero W, which communicate using i2c interface. So far I am able to connect sensor to dedicated i2c and read the data. Want to know ...
0
votes
0answers
58 views

GPIO number vs Pin number. Which to use?

I am writing a code for an ultrasonic distance sensor. The code worked fine when i used the gpio numbering system for the wires connecting to the gpios and sensor. As soon as i connected the sensor to ...
0
votes
1answer
52 views

How can I use the RPI3 to generate a sawtooth with frequency around 20kHz?

I am trying to generate a sawtooth waveform from the GPIO, the frequency is high, 20 Khz. is pigpio library my best option?
1
vote
1answer
247 views

Runtime Warning: This channel is already in use

I am writing a code for Ultrasonic distance sensor. I have wired all the things perfectly and written the code for it but somehow it gives a runtime error of the channel already being in use. Below is ...
0
votes
0answers
68 views

Multiple raspberry pi's 3 synchronized image navigation

We have 7 raspberry pi's 3, each connected to the internet and an display. On each screen / raspberry pi is geeqie (image viewer_ running with an image slideshow. The goal is to have all raspberry pi'...
0
votes
0answers
33 views

raspberry pi and ltc 2873 cufd (RS 232 and RS 485)

I have a raspberry pi compute module 3 on an I/O board in which gpio 12 is contolling the mode in ltc 2873. If it is ground it will be working in the RS 232 mode. so if I have to write something into ...
0
votes
1answer
40 views

Help needed with GPIO and a remote controlled gate relay switch

I am very confused and hoping someone can point me in the right direction. What I would like to achieve is converting an external relay switch (from a normal everyday gate receiver) into a signal ...
-1
votes
3answers
73 views

How can i Get 5 Volt output with GPIO

I am using Raspberry Pi 3 B+ and I want to run a 5 volt DC motor with RPi.GPIO, I have written a code: import RPi.GPIO as GPIO from pip._vendor.distlib.compat import raw_input u = raw_input('how ...
0
votes
0answers
51 views

Multiple GPIO.add_event_detect callbacks results in incorrect expected output

I am currently working with a differential drive robot which has two wheel encoders connected to GPIO Pins 5 and 23. I managed to obtain velocity information based on the pulse time information ...
0
votes
0answers
15 views

Frequencies available for wavechaining using PIGPIO library

I am working with the PIGPIO library to run stepper motors. I am using wavechains to the STEP pin of the driver. I need help regarding the possible pulse frequencies available for wavechaining. I ...
0
votes
1answer
39 views

Wiring on RPI3 when connecting two peripherals - microcontrollers simultaneously

I am currently having an ADC(MCP3008) connected to a rpi3, using the following wiring map, in order to read data from analog sensors. MCP3008 -> RPI3 VDD -> 3.3V VREF -> 3.3V ...
1
vote
0answers
68 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 ...
0
votes
4answers
461 views

How can I make my LED flashing while executing the rest of the code?

How can I make my LED flashing while executing the rest of the code? I want to make some LEDs flash while my program executes the rest of the code.
1
vote
0answers
475 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
2answers
155 views

Servo motors not working as expected with Raspberry pi 3

I am developing a robot with raspberry pi model b along with three servo motors. I have two functions which are defined for obtain robot behaviours. In the first function my servos are working well. ...
0
votes
3answers
63 views

Relay board failing when connected to RPi3 5V pins

I'm using my pi to power several relays. A total of ~20 relays (a 8-relay board and three 4-relay boards) I'm also running home-assistant Yesterday i noticed that when i try to power them all up, ...
1
vote
1answer
107 views

same GPIO input signal on multiple raspberri's from one source

Im having 7 raspberri pi's 3 connected to 7 screens, running an python 2.7 app to download different images from google drive, every raspberry has different images. Geeqie is displaying those images ...
0
votes
1answer
41 views

Make Raspberry Pi to work as AP and Station to receive wireless temperature sensor values

Hi after reading the manual of Xbee device, I am able to use XBee device with raspberry pi. But how to make raspberry pi to work as an access point as well as the station at the same time? using ...
2
votes
3answers
496 views

gpiozero Button.when_pressed

I'm learning python and gpio using the examples here: https://gpiozero.readthedocs.io/en/stable/recipes.html I wanted to extend the code to more than one button and pass a parameter to a function (...
1
vote
1answer
134 views

Controlling Raspberry pi3 Wirelessly with HTML (Lighttpd)

I've been working on a Obstacle avoidance robot using Ultrasonic and IR sensors. The scope of my project is to execute my program over the air. Control the robot's movement using mouse or touch ...
0
votes
2answers
26 views

Program not able to open file at start up but when running from command line, runs as expected

using a library from https://github.com/BLavery/LIBtft144 this line of code doesn't seem to run when I run the program from a systemd. I also tried calling it from a crontab call of my .py program. ...
0
votes
0answers
147 views

Python script wait for button press before starting/stopping a separate python script

I've written a python script (shown below) which starts and stops another separate python script (datalogger) once a button is pressed. The datalogger script records logic levels (0 or 1) and stores ...
0
votes
1answer
95 views

How can I attach a BTS7960 43A motor controller circuit and control it from a keyboard wirelessly through the Raspberry pi [closed]

I need to attach a BTS7960 43A motor control circuit to the Raspberry Pi. Could anyone please tell me the connections and provide me with a link to a python code to drive motors forward and reverse ...
0
votes
0answers
37 views

Python script (datalogger) produces different data when run from a separate script (button) to when it is run as itself [duplicate]

I've created a datalogger script that continuously records every rise and fall in a square wave signal (connected to pin 26 on a Pi 3B+) to a CSV file. The data recorded in the CSV is either a 0 or 1, ...
0
votes
1answer
115 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 ...