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

Programming language to use in rpi 3 [closed]

I am trying to build a home intruder system where i will be using thermal image sensor to get the image of the creatures living around. Now which programming language should I use....Python, nodejs. ...
0
votes
0answers
1k views

Failing to turn on a LED with GPIO Pins (Raspberry Pi 3 B V1.2)

I'm trying to play around with my RaspberryPi a bit and I'm failing miserably... ANY help ist highly appreciated! I'm on a brand new installation of Raspbian, after "apt-get update && apt-get ...
3
votes
3answers
2k views

what is the maximum number of GPIO pins i can expand with rpi 3 and how?

I need more than 250 individual pins for my project.(can't use multiplexing). so how can i get them? is there any good efficient and low cost modules for that. can MCP27017 do this?
0
votes
1answer
159 views

raspberry pi is powerful enough for read 200 sensors?

I need your experience about the power of raspberry pi 3. I need to know Raspberry Pi is powerful enough for my problem or not. I need to read stream data from Almost 200 sensors like (humidity, ...
1
vote
1answer
6k views

Internal Pull Down Resistor on an Output Pin?

I'm following this tutorial to use the RPi B+ as a parallel EEPROM programmer. In the Python code in the tutorial, it sets all of the output pins with pull down resistors GPIO.setup (10, GPIO.OUT, ...
-1
votes
2answers
2k views

Use if then with GPIO.output(12,False)

I'm working on an automation program with a remote. The remote needs the button to be turned off then on. I have a web service but it can only send the on signal and not the off signal. I want to make ...
1
vote
2answers
920 views

Doorbell GPIO to ground, randomly triggers

I'm working on making a Doorbell powered by a raspberry pi, I connected the existing wires from the button to the raspberry pi at GPIO pin 18 and the Ground Pin. I'm using the following while true ...
0
votes
0answers
245 views

ESC PWM Duty Cycle between 20 - 70

I've wired my ESC and my Motor and I'm able to spin it at different speeds, but it only works between 20 - 70 DutyCycle. How can I make it start spinning at 1 and max throttle at 100? I'm using ...
0
votes
1answer
9k views

Add delay between two GPIO.output

I've got a simple GPIO setup with my raspberry PI to output three signals when a button is pushed. However, I need to add a 33 millisecond delay between the second and third outputs, and one second ...
1
vote
2answers
1k views

PWM Controlled 12V Fan with dc-dc converter

I got my RPI3 cooled by a 5v dc fan and it only activates when it reaches 55°C so everything is fine i control it with PWM. Now i want to cool it with a bigger 12V DC fan the problem is i need 12V, ...
-1
votes
2answers
1k views

rPI Zero W 5 V output

I am trying to connect a three pin ultrasonic sensor to my rPi Zero W. I followed the tutorial to get the 4-pin ultrasonic sensor to work with my rPI Zero and was able to successfully connect. I am ...
-1
votes
1answer
363 views

problem in importing RPI.GPIO as GPIO

Hi guys i suriously tired to solve this problem i have a raspberry pi 3 model B i'm running the raspberry using putty and raspbian using vnc viewr i open the terminal window to creat a simple project "...
1
vote
1answer
134 views

Switching multiple motors on after some delay

import time import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(16, GPIO.OUT) #forward GPIO.setup(26, GPIO.OUT) #forward GPIO.setup(5, GPIO.OUT) #backward GPIO.setup(6, ...
0
votes
1answer
105 views

Configuring more than 2 pins of GPIO

import time import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(16, GPIO.OUT) GPIO.setup(26, GPIO.OUT) GPIO.setup(5, GPIO.OUT) GPIO.setup(6, GPIO.OUT) print ("Car ...
1
vote
2answers
294 views

Connecting one Raspberry pi pin to many IR sensors

I'm currently using pin 3 on my Raspberry pi to run one of my IR sensors. But I need to use 4 IR sensors for the purpose. Is it possible to connect all the 4 IR sensors to the same pin using a bread ...
4
votes
2answers
3k views

Raspberry Pi camera doesn't work only displays red light

When I run my code, I get this error: No data received from sensor. Check all connections, including the Sunny one on the camera board The red light on the camera module glows, but doesn't ...
1
vote
1answer
4k views

Digital data reading using GPIO

I want to do an experiment using Rpi and Arduino. Basically Arduino will send a digital data to Rpi's GPIO. This question says how to do it using USB. I want to read it and display in the console. ...
0
votes
0answers
244 views

Playing audio mess with GPIO.add_event_detect in Python

I have these lines of code running in Python on my Pi 3: os.system('mpg123 -q /usr/local/marbik/public/evilcave.mp3 &') GPIO.add_event_detect(17, GPIO.FALLING, callback=GPIO17Callback, bouncetime=...
1
vote
1answer
768 views

Enabling both UART ports in GPIO

I have a project at this moment, and I had to disable the Bluetooth of my Raspberry Pi 3 to use the AMA0 port, I mean the main UART port. At this moment I need use both ports: AMA0 and ttyS0. Are ...
3
votes
2answers
4k views

How to execute a python script on raspberry connected to Internet via a script that is executing on some other system connected to Internet?

With Reference to pi-3 I have read the Webserver approach and have tried it. That just shows me the python code back on the browser, if I run "http://(Ip address of my Pi)/programme.py". Where the ...
0
votes
0answers
111 views

GPIO pin being set to input upon exiting program

I have this code: import RPi.GPIO as GPIO import time try: GPIO.setmode(GPIO.BOARD) GPIO.setup(3, GPIO.OUT) GPIO.setup(12, GPIO.OUT) GPIO.output(...
0
votes
1answer
1k views

Pulse counting with RPi.GPIO

I see similar questions but nothing really the same, hope this isnt duplicated. Im trying to count LED pulses from a domestic energy meter, I had a basic While: loop running but when the count gets ...
0
votes
0answers
289 views

RPi.GPIO is never reachable after upgrade to Python3

yesterday I run an install of Python3 on my Raspberry Pi 3. The preinstalled Python version was 2.7.1 If I run a scrip now, i reveive the following error message: import RPi.GPIO Traceback (most ...
2
votes
1answer
495 views

How to add I²C buses to raspberry

I'm actually designing a electric guitar multi-effect. To achieve this, I plan to use a raspberry pi (probably a Zero W) as a controller. My problem is that I cannot connect all effects (home-made ...
0
votes
1answer
131 views

ADC on raspberry pi

I am working which with sensors on raspberry pi.I am able to connect the all digital sensors with raspbeery pi.How to start with analog sensors.Should i require a Analog to Digital converter IC?
4
votes
2answers
4k views

GPIO pins not changing value

I have a raspberry pi zero and I am trying to change the gpio pin values. I tried using RPi.GPIO with python and the gpio command from wiringpi but I am unable to change the value for any of the pins. ...
1
vote
2answers
4k views

Windows IoT Enterprise on Raspberry PI 3B

I want run applications x86 on Raspberry Pi 3. Is possible install Windows IoT Enterprise on RaspberryPi 3 ?
0
votes
4answers
297 views

How to resolve “RuntimeError: Unable to export GPIO. Try to run as root!”?

I have interfaced a push button switch and LEDs to GPIO. Whenever I try to execute the script from command line, the code python /home/myPi/myProject/run.py gives me the error RuntimeError: ...
0
votes
1answer
548 views

gpiozero: Ignore false positives/negatives

I've seen several threads where users experience some noise fluctuation in the GPIO input readings, for instance, without any physical change to a Button's state, the events when_released/when_pressed ...
-1
votes
2answers
174 views

How can I connect 5 Raspberry Ppi's? [closed]

Can I connect 5 raspberry pi's with one another? If yes how? Can I use gpio's to connect or are there any other ways? I have a task where I need to connect raspberry pi and make them communicate ...
0
votes
1answer
603 views

Raspberry Pi - Press for on / Press for off switch

I've begun tinkering with using electronics and am also new to using Python. I was wondering if someone could help me please? What I'm trying to achieve is to use an on/off switch to run a motor - ...
1
vote
0answers
647 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 ...
0
votes
1answer
224 views

analog sensor read using Cylonjs

I am trying to read an analog sensor value using cylonjs framework. I used this code for reading values. var Cylon = require('cylon'); Cylon.robot({ connections: { ras: { adaptor: 'raspi'} }...
1
vote
1answer
825 views

raspberry pi zero gpio not working

Im doing a simple blink test on my raspberry pi zero but I am having trouble getting my gpio pins to work. I have already installed wiringpi and RPi.GPIO. My setup is simple, I connect pin #1(3.3v) to ...
-1
votes
2answers
156 views

Traditional Light Switch Triggered by RPi?

Does anyone know of a light switch which can be controlled using the RPi and also manually. Assuming that the RPi sends a signal thru a relay which connects to the light switch. The switch will turn ...
0
votes
0answers
162 views

Unable to set GPIO.HIGH. GPIO.LOW

I am trying to control a relay with Pi3B. Whenever I run GPIO.setup(port, GPIO.OUT) my relay starts working, then any other command I try, eg. GPIO.output(port, GPIO.HIGH) or GPIO.output(port, GPIO....
0
votes
1answer
56 views

How to run cylonjs in Raspberry-pi

I am trying to run cylon framework. I installed it using these instructions. Now I am trying to execute this sample LED blinking program. var Cylon = require("cylon"); Cylon.robot({ connections: {...
2
votes
1answer
1k views

Raspberry LED python blinking does not work

I am new for raspberry, I have raspberry-3 board and I tried following Python code on it. Which I took from here. import RPi.GPIO as GPIO import time def blink(pin): GPIO.output(pin,GPIO....
0
votes
1answer
382 views

Have I fried my input functions?

A accidentally connected the 5V power supply to ground (pin 34) on my Raspberry Pi 3. It immediately rebooted and seems to work fine, however, I now can't seem to get any input. Even simple things ...
0
votes
2answers
171 views

Some pins trigger callbacks without a reason

I have some pins in GPIO.IN mode reading buttons/alarm circuits. Since recently 2 of them started to trigger without a reason. I believe this all started after I changed power supply. However, ...
1
vote
1answer
148 views

Python Code: Once QIV Is Launched, Code Pauses

I have a question regarding my Python code. It seems that once I start QIV using os.system, the code stops. This is proved by my code below. Once the code is ran and I press the button on GPIO 17, ...
0
votes
2answers
975 views

can I connect 5v to GPIO pin on startup?

I have a bunch of stuff set up on my pi (RPI 3 for the record), but one of the things I want to run is an RGB LED which is common anode. I have successfully gotten it working by connecting the common ...
2
votes
1answer
4k views

Difference between GPIO.HIGH and True (or 1)

I've been tinkering around with a Raspberry Pi 2. I was working on a bike light project where I had to 'Pulse' all LEDs at the same time. I managed to get it done and working but, I struggled over the ...
1
vote
0answers
144 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 ...
0
votes
0answers
28 views

HDMI output is off once I connected my pi to an oscillscope

I connected the +5v and gnd of my raspberry pi to an oscilloscope. Once I did that, my screen gave me a blank screen as if it is not getting any output from HDMI of raspberry pi. I turned off/on the ...
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 ...
1
vote
2answers
894 views

I2C Send Start Stop Commands using Python

I'm using a PCA9585 board with an I2C interface to control LED lights. I can control each LED separately or control them all at the same time. What I would like to accomplish is to program multiple ...
-2
votes
1answer
613 views

GPIO pins available for switches

Among all the 40 GPIO pins, how many of them are available to connect a switch for on-off information? I counted more than 24 GPIO_* connections here, but are they all available via Python? import ...
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
3answers
2k views

Control Servo Using Raspberry Pi 3 But Not Moving

For the student project funbots(https://github.com/melvinma/funbots), we had some problems controlling a servo using PWM. We have limited tools to diagnose the issue and please kindly help. Setup: ...