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.

483 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
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
56 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
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
0answers
18 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
113 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
206 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
508 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
247 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(...
-1
votes
2answers
101 views

C Interrput every rsing edge 100kHz

i've a 100kHz signal and i want to detect every rising edge. I'm using ISR but edge isn't detected and when detected it's 46µs after the edeg. How to do? [EDIT] Here's the code with pigpio library: ...
-1
votes
1answer
151 views

How to Send Data From Pulse Sensor Wirelessly to GPIO Pins?

I am following this tutorial: https://tutorials-raspberrypi.com/raspberry-pi-heartbeat-pulse-measuring/. But I would like to implement the sensor in a watch. Is there an accessory that can fit in my ...
-1
votes
1answer
178 views

IR sensor program will not run

When I run it nothing happens either in command prompt or the shell. I think I am missing some code line but I got it from a online project and cant ferret out the problem This code is supposed to ...
-1
votes
2answers
59 views

GPIO button clicks to Windows

Is it possible to send button clicks from buttons attached to a raspberry pi gpio to a pc (windows 10). I plan to use a button panel with elite dangerous . Either a wired or wireless connection is ...
-1
votes
1answer
247 views

raspberrypi - on boot not running my infinite python script?

I have a Python script, which needs to run 24/7 to use GPIO high/low. So on boot i wanted it to run as below. But it never works to run python script on other hand it does create /tmp/test file? How ...
-1
votes
1answer
154 views

Raspberry pi 3 GPIO stopped working

I am creating a Paino with 28 notes. I had everything working fine. Then I added a small update for the code and it stopped working. Even the after the changes a basic button press script is not ...
-1
votes
4answers
815 views

What's the smartest way to send data from my pi to my PC?

Here's the deal: I've connected a small RFID reader module (RDM6300) to my Raspberry Pi 1 Model B. That means I've taken up one 5V pin, one ground pin and one RX pin. A python script reads my RFID tag ...
-1
votes
1answer
614 views

Physical on off switch to digital

I have a raspberry pi 2 model b and I am trying to build a digital on of switch, which means that I would like to get rid of this physical one ( Currently it controls a police type flashing light) ...
-1
votes
1answer
342 views

webiopi simple 3 wheeled robot, not functioning

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; ...
-1
votes
2answers
344 views

RPi pin being tripped by static electricity?

I'm writing a program that will run a timer until the user plugs a wire into two ports and presses a big red button. At home, my program works pretty well, but when many people are in the same room, ...
-1
votes
1answer
789 views

Is it possible to control 6v dc motors with pi?

Is it possible to control four DC motors with Raspberry Pi at the same time? If so, where can I find info on how can this be done (from the physical aspect)?
-1
votes
2answers
60 views

Power on a Pi from external GPIO

As proof of concept, I am trying to accomplish one of two things: 1) Wire the pi such that it will automatically boot up upon shutdown or 2) Turn the power to the Pi on from a separate Pi. This ...
-1
votes
1answer
221 views

Nano Thermal Printer

I recently bought a nano thermal printer from adafruit to complete a project but I am having troubles with the printer. I though I had wired it up right on my Raspberry Pi A+ but wasn't able to get it ...
-1
votes
2answers
327 views

RPIO Module installation

I've been trying to install the RPIO module onto my pi. so far, no luck because my pi is without internet at the moment (I only have internet on my laptop through mobile tethering). Does anybody know ...
-1
votes
3answers
2k views

Boosting FM range transmission from Raspberry Pi

I want to boost FM transmission range when using Raspberry Pi as transmitter. I found this circle: Source: https://www.safaribooksonline.com/library/view/ipod-and-itunes/0596007787/ch01s07.html Will ...
-2
votes
0answers
25 views

5us 200Hz signal creation

someone know what is raspberry pi PWM temporal resolution? i want to create a 5us 200Hz pulse sync signal in raspberry pi, is it possible? thanks
-2
votes
1answer
39 views

Run a fan 5scs long GPIO

def fan_on(): GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) FAN_PIN = 23 GPIO.setup(FAN_PIN,GPIO.OUT) GPIO.output(FAN_PIN,True) This is my code to run a fan on my rpi via GPIO ...
-2
votes
1answer
131 views

Understanding the GPIO pins

I've not yet got into the GPIO pins. Can someone help me understand how they work? Are some of them special in some way? Do certain pins produce certain polarities or is that software defined? What ...
-6
votes
1answer
436 views

Turn ON LED and OFF using GPIO pins on RPI

I am a new PI owner and was thinking is it possible to wire a button and LED to the GPIO pins so that when the button is pressed, the LED turns on. Can you please guide me on what hardware I need if ...