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
0
votes
0answers
87 views

Raspberry Pi B+ Stuck at 2 volts output

I recently set up a remote controlled car with the raspberry pi using the L293D motor controller chip and I was using pins 32 and 33 (Board Numbering) everything was working perfectly until pin 33 ...
0
votes
2answers
43 views

Can there be an active input to the pi's GPIO before i/o set-up?

I'm wondering if a 3.3v input to the Pi's GPIO before it is set up will damage that pin.
0
votes
0answers
165 views

Serial line hangs after first call

I have written a short program to monitor a serial line using the uart on GPIO-Pin 8/10. It works fine the first time I start the program, but hangs without any output the 2nd time I call it. To be ...
0
votes
0answers
689 views

Simple Buttons with GPIO, not working

I' following this tutorial to have two buttons working with my Pi. The code I have is the same: import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(23, GPIO.IN, pull_up_down = GPIO.PUD_DOWN) ...
0
votes
2answers
1k views

Control sensor: SainSmart TGS-2600

I've purchased a SainSmart TGS2600 Air Contaminants Sensor, but got no data sheet or the like. Does anybody know how to connect this breakout to the Pi?
0
votes
2answers
2k views

Powering a 24V 1A device

I've got a little project going where I want to hook up a load of sensors to my RPi (PH, Temp, Humidity, light etc. etc., a camera, and also power a 24v 1a DC device. I'm wondering if this is ...
0
votes
1answer
205 views

Need advise for Web Control REST LED Switch

I would like to seek for advise and help on REST API - Web Control Interface LED Switch. I been searching over the net and seems kinda lost, so I hope you guys could help me out with it as soon as ...
0
votes
1answer
315 views

Breadboarding: pins connection

I have bought a raspberry pi some time ago, and I have been written some code, but now I need to take use of the breadboarding material. I don't really understand how and where should I connect a ...
0
votes
1answer
451 views

Cheapest presence sensor for a door

I have a big wardrobe in a dark room, I put leds inside and I want to light them up when the door (sliding door) opens. What's the cheapest and more robust way to detect door opening, with less damage ...
0
votes
0answers
2k views

Insert data to phpMyAdmin mySQL database from Shell Script

I would like to seek help on inserting data whenever the switch is on or off to my phpMyAdmin mySQL database from my Shell Script. I'm using Raspberry PI as my hardware and I have follow this LINK to ...
0
votes
2answers
590 views

Raspberry PI connect with Analog Devices ADIS16227

I want to measure the fan vibration signal by Raspberry PI + ADIS 16227 (+/-70g). However, I can't search any reference in Google. Does anybody know how to do the the wiring of the two items?
0
votes
0answers
544 views

How do I debug avrdude?

As it comes with experimental software more than often, my experiment with avrdude just fails with no explanation: pi@raspberrypi ~/wiring-pi $ sudo avrdude -c gpio -p atmega328p avrdude: AVR device ...
0
votes
1answer
242 views

From python script to Kernel Module

So I have a python script that emulates an ESC_KEY on pin 17. #!/usr/bin/env python #Imports for Pins,input import RPi.GPIO as GPIO import uinput from time import sleep #Setup key_events=( uinput....
0
votes
0answers
854 views

Flashrom and the RaspberryPi

I'm in the process of needing to flash an EEPROM and since I've found that flashrom works with the Pi I want to do it on it. I have flashrom installed, and have the EEPROM pins connected to the right ...
0
votes
0answers
252 views

IO Expander runs very hot

I have a weird problem and I hope someone here can help me. I wrote a little script using WebIOPi to control the IO expander which is called IO Pi 32 Channel Port Expander (schematic and overview), a ...
0
votes
0answers
368 views

Raspbian crashing after servo.stop_servo()

I have a servo connected to my RPi and I try PWM.Servo's capabilities. The program below does what it should - but after execution it crashes system (it doesn't respond to any input, no animations, ...
0
votes
1answer
627 views

Running python CGI file as root to control GPIO

I have a python program to control GPIO of raspberry pi. Webserver installed is apache2. But when accessing GPIO from the program I get an error to run the program as root since /dev/mem is not ...
0
votes
2answers
411 views

Pygame screen resolution

I creating a data logger program in Python for a customer. I use pygame for displaying status and temperature. We plan to using a car display on the composite video output. The display will have ...
0
votes
1answer
3k views

using serial interface /dev/ttyAMA0 crashes Raspberry Pi

I've disabled console on the GPIO serial interface, lowered the speed to 9600 and had some communications observed with minicom and a simple cat /dev/ttyAMA0 talking to an arduino all ok. Now for ...
0
votes
1answer
136 views

Reading Output signal from external circuit using Rpi GPIO Pin

I am trying to read a signal coming from an external circuit thru the use of raspberry pi's gpio. the signal I am trying to read is a 3.3V signal coming from a voltage divider circuit. this circuit ...
0
votes
2answers
55 views

How to make a stand by button?

I am using an Raspberry Pi 3b and a 7 inch hdmi waveshare touchscreen that connects to rpi with a hdmi cable and a micro usb cable. I want to program a push button from GPIO pins to make the screen ...
0
votes
1answer
219 views

How to connect sensor to not damage raspberry

Hi guys i have 2 questions: I have got this digital mercury tilt sensor, which is taking on input 5V. The seller included this diagram on the module's listing: It's really hard to find out what ...
0
votes
1answer
77 views

I am trying to turn on a led using a switch in Raspberry pi. Now when I am trying to run it in python command shell it says: command not found

import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(17,GPIO.IN) input = GPIO.input(17) while True: if (GPIO.input(17)): print("Button Pressed") import time prev_input = 0 ...
0
votes
1answer
145 views

Weird behavior of Raspberry Pi GPIO ports

I am trying to manipulate the GPIO pins using python. I have used many examples from the web. However, I noticed weird behavior of GPIO ports. 1) If I make a port high, it becomes high momentarily ...
0
votes
2answers
408 views

How Much Current for GPIO Power Supply?

I'm working on an audio project where the Raspberry Pi will be powered off the GPIO. I was trying this using an LM7805 voltage regulator to get 5v from the 9v power supply that is standard in a lot of ...
0
votes
1answer
337 views

I did a short circuit between the 5v pins [duplicate]

I thought I could power a fan by connecting each of its rudimentary wires to pins 2 and 4 (5v pins) on the raspberry. Immediately, the screen the pi was connected to went blank, even though the pi was ...
0
votes
1answer
313 views

Why is my GPIO not switching my attached relay?

I have a relay attached to a Raspberry Pi B+ GPIO via two wires, one wire is attached to physical pin 6, a ground pin, the other is attached to physical pin 15 (GPIO. 3, BCM 22, wPi 3). I have a 2 ...
-1
votes
2answers
2k views

GPIO pin LOW not LOW enough (aka how to ZERO the tension on a low pin?)

This question was asked before here, but there was no answer 1 year ago. I'm facing the same issue: I'm switching the same 5V relay (SONGLE SRD-05VDC-SL-C) using a GPIO on HIGH and this works, but ...
-1
votes
2answers
93 views

I don't know where to start [closed]

I am completely new to Raspberry Pi and have started from basically no knowledge. My end goal is to make a synth or drum machine. My problem is that I attempt to start learning something like how to ...
-1
votes
2answers
1k views

False trigger issue using GPIO input

I am using a Raspberry Pi 3 and in my particular case, I am using it to sense when either a button is pressed, or power is dropped, both using the same GPIO input. Both functions work, however, there ...
-1
votes
1answer
133 views

RPI GPIO Ports default on?

My LEDS connected to ports CE1 and CE0 are automatically on at startup. Is this normal? I have included a code that turns them all off when I run the script.
-1
votes
1answer
209 views

Force Sensing Resistor with Raspberry Pi

I have a school project where I have to make a car park with a fully functional parking lot checking system. The FSRs job is to detect any weight and send a signal to the raspberry pi that the ...
-1
votes
2answers
282 views

What is output and input For Raspbery Pi GPIO

Yesterday I tried to make my first physical computing application with python on the Raspberry Pi 3. This app was suppose to simply light an LED. I couldn't get the thing to light. The problem I'm ...
-1
votes
6answers
1k views

How to copy micro SD card from a sealed raspberry pi 2?

I have received a raspberry pi 2 as the followings. But its micros SD card is sealed strongly to the board. And let's see the left side of it. I am thinking if we can read the SD card from other ...
-1
votes
1answer
269 views

Can you connect (bridge) two GPIO pins over software?

I am trying to bridge two GPIO pins on my RPI so that they will be physically connected. What I mean by this is that if I put current into one it will come out of the other pin depending on wether ...
-1
votes
1answer
125 views

LEDS Connected to GPIO [duplicate]

How many LEDS can be connected and ON at once to the RPI GPIO without burning out the system?
-1
votes
1answer
622 views

how to control robot arm with servos by potentiometer

i bought a robot arm consist of 6 servos, is there a possibility to control the servos with potentiometer as the potentiometer moves the servo moves, i wont be using any HAT. thanks
-1
votes
2answers
40 views

Raspberry Pi IO issue (Python)

I am testing my Raspberry Pi IO pin because I realize some of my IO pin is not functioning. So I wrote this python program to test all the IO pin import RPi.GPIO as GPIO import time GPIO.setmode(...
-1
votes
1answer
111 views

Adafruit PAM8302A -> Raspberry Pi 3

I want to connect Adafruit PAM8302A amplifier to the Raspberry Pi 3 Model B+. What I need? How to do this?
-1
votes
1answer
346 views

GPIO solution to power Pi [closed]

Looking for a GPIO solution to power a Pi 3 B+. Basically, trying to bypass the Pi micro USB connector. Also, any suggestions on hardware to build a compact, inverted, USB male right-angle ribbon ...
-1
votes
1answer
203 views

convert py file for RPIO to RPi.GPIO [closed]

According to Joan's instruction. First, git clone https://github.com/metachris/RPIO.git cd RPIO sudo python setup.py install sudo python3 setup.py install and sudo python3 jjy.py I made a jjy ...
-1
votes
1answer
1k views

How to kill python program + cleanup GPIO when button pressed

I'm planning to make a car robot with RPi. I have a python script named 'abc.py', and I'd like to kill the python program and cleanup GPIOs used in abc.py when a button connected to GPIO is pressed. ...
-1
votes
1answer
817 views

Reading an analog signal into the raspberry pi 2

Here's the project I am working on: I would like to read in the voltage change on a sensor that I have. It has a positive and negative wire coming from it. I then have the raspberry pi 2. The positive ...
-1
votes
2answers
216 views

5.3V power source w/ 24kohm resistor

Let me start with mention that I don't know shit about electronics. I bought UBEC to power my RPI but it had output voltage of 5.3V so I decided to use 24kohm resistor to lower it down. Now voltage on ...
-1
votes
0answers
17 views

Not sure if my Dragino is configured correctly to my RPi 3B

I'm trying to configure my Dragino Lora/GPS Hat, but I'm not sure if it's configured correctly based on the RPi 3 B pinout. As is, it's receiving packets but I'm not sure from where. Here's the gpio ...
-1
votes
1answer
34 views

unwanted wake from halt

I want to use the "wake from halt" with my raspberry pi to keep it down must of the time and waking up using external stimuli when need. But I am not sure why, sometime it wakes up from halt although ...
-1
votes
1answer
110 views

Pigpio Wiegand timeout

I have an RFID keypad linked to my Raspberry Pi. It sends out a Wiegand 26 signal when someone presses a key or presents a card/fob. The code is based on http://abyz.me.uk/rpi/pigpio/examples.html I ...
-1
votes
1answer
203 views

Start / stop a script with buttons

i want to start and stop this script with a buttons 1 button to start and one to stop using gpio pins 35 and 37 #!/usr/bin/env python from random import randint import SimpleMFRC522 import time ...
-1
votes
1answer
497 views

Connect button to GPIO without breadboard?

Is there a way to connect a button to a Raspberry Pi 3B+ without a breadboard? If so, how? Could you give a diagram and explain? I am only a beginner so please make it easy to understand. Also I would ...
-1
votes
1answer
246 views

How to restart the GPIO after shutdown() called

After I call the following Java code: gpio.shutdown() The GPIO turns off. How can I restart it? I need to restart it because of this problem. In the problem the light does not turn off with led.low(...