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.

502 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
298 views

Connecting more elements to Raspberry pi servo hat

I have bought this rpi servo hat to control some servos. But I'm wondering if I still can add elements like leds or like a movement sensor to the GPIO. At all examples I can see that the GPIO is ...
0
votes
0answers
1k views

Best way to access GPIO through a nodejs script - without root

I'm building a web dashboard for a temperature sensor. The page is served by node.js, and the sensor connected to GPIO is accessed by a Python script, which is run by node.js. Relevant code: var ...
0
votes
0answers
578 views

Raspberry Pi B+ relay state reading via GPIO pin

I have working system with Raspberry Pi B+ and 7 relays (via ULN2003A to provide 12V to relay coil) connected to it via GPIO pins. That is all ok (working perfectly), but now I would like to read ...
0
votes
0answers
749 views

Controlling brushless motor with ESC and Raspberry Pi b+

I'm trying to build a quadcopter and I have one ESC, one brushless motor and one Raspberry Pi B+. I find many tutorials on internet to see how to connect these components but it doesn't work. I'm ...
0
votes
1answer
357 views

Output Pins not showing in Sensors

The ScratchGPIO package from Simplesi.net is a great addition to the Basic Scratch for Raspberry Pi Model 2 B++. When I downloaded the 5-15-2015 latest Raspbian image and V7 of Scratch GPIO, my ...
0
votes
0answers
617 views

WiringPi and CGI in Python

I want to be able to toggle a GPIO pin from from a web browser. I've found this forum topic (http://tiny.cc/d1eixx) and even the though code seems fine, it doesn't toggle the pin: #!/usr/bin/python ...
0
votes
0answers
102 views

Using old alarm keypads as displays

I have a few old IDS alarm keypads lying around(both 8 and 16 zone) and was wondering if I could somehow hook them up to my pi.(LED only, no LCD) Power can be supplied via the alarm panel, so I just ...
0
votes
0answers
673 views

Raspberry Pi Frequency Calculator

I'm trying to make a simple program that calculates the frequency at a pin on the board. I'm using Python for the programming. I wrote two different programs and they gave the same (wrong!) results. I ...
0
votes
0answers
483 views

ImportError: No module named HT16K33

When I am importing a library (specifically Adafruit_LED_Backpack using Python3) I get the error ImportError: No module named HT16K33 How do I install that library? EDIT: when using Python 2.7, the ...
0
votes
0answers
89 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
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
2k views

How do I run Piscope

I installed pigpio and ran with sudo pigpiod -p 8877 I have exported PIGPIO_PORT=8877 Following the discussion on How to install stripped version of GTK (without *dbg files)? I downloaded and ...
0
votes
0answers
797 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
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
0answers
569 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
0answers
872 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
262 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
370 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
92 views

Piezo Buzzer Driven By Rpi GPIO Problem

I'm trying to light up an LED and play a buzzer noise at the same time. Here is my code so far: Import RPi.GPIO as GPIO Import time GPIO.setmode(GPIO.BCM) GPIO.setup(7, GPIO.OUT) while True: ...
0
votes
1answer
224 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
76 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
240 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
88 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
246 views

Controlling ATX power with HAP-NodeJS

I want to control my PC power via the ATX headers on the mainboard. To trigger power and reset events the two corresponding pins on the mainboard have to be short circuited i believe. Can i achieve ...
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
452 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
331 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
1answer
43 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
177 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
325 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
830 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
306 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
213 views

Trimming down Stackable Header

As mentioned in my previous post, I'm intending to solder some HATs directly to the Pi. However, I find the pins on the default header too short, so I need to replace them with longer ones. I have ...
-1
votes
2answers
126 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
181 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
212 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
70 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
291 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
160 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
910 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
678 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
357 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
375 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
846 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
235 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
354 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
3k 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
40 views

Generating arbitrary bandlimited waveform on GPIO 4 (GPCLK0) on Pi Zero W

I am trying to use the Pi Zero W to generate multiple FM signals concurrently, and I think that it is possible, but I would like for anyone to point out any problems in my method: The famous FM ...
-2
votes
1answer
42 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 ...