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
1
vote
0answers
281 views

LED button doesn't work

I have tried connecting a LED with a button like this (from "Adventures in RPi"), but with the far end of the button plugged at G (instead of F). And I ran it with the following Python program (by ...
1
vote
1answer
471 views

Can not use GPIO pins when Official Raspberry Pi screen is connected

I have a Raspberry Pi2 B+ model, with noobs distro installed. I had some programs using wiringPi library and an ultrasound component working (tested them using a separate monitor via HDMI). However, ...
1
vote
0answers
64 views

wifi game controller

Anyone have an idea how to use a wifi game controller to switch the GUIO on and off please. I Have a project that uses motors to move a buggy. Would be FAB to do this with a WIFI controller or ...
1
vote
0answers
226 views

Blinking LED - start and stop

This is my first post here so HELLO and sorry if I'm posting in the wrong place. Do you know a simple bit of Python that will set a LED blinking indefinitely until it's told to stop? Control will be ...
1
vote
0answers
443 views

RPi 2 isnt booting, Green and Red light ON

I have Rpi 2 model B v1.1 for a week. I tried some cirquits with GPIO pins. One day i made a simple button cirquit. It worked well. But few minutes ago Rpi crashed, i powered it off. When i power it ...
1
vote
0answers
780 views

Is the resistor needed to connect 3 pin 5v buzzer (RP2b)?

I am new to Raspberry Pi. I recently wanted to connect a active buzzer (5V 30mA) like this: BUZZ to my Raspberry. I am not sure should I use a resistor on the way to +5v pin and DATA GPIO pin. (like ...
1
vote
1answer
2k views

Problem with ESC, brushless motor and Raspberry Pi

I have connected an ESC (an electronic speed control) with a battery and a brushless motor. The Raspberry is connected to the ESC to control it. I know - when I turn on the program that is on the ...
1
vote
0answers
400 views

Setup gpio 23 as shutdown & startup

Followed this tutorial & have included my device tree config below. I've configured my pull up resistor for my button to function properly once my app is running, but I'm curious; is there a way ...
1
vote
0answers
241 views

PiFM on another GPIO

I want to make my own Pi Radio using PiFM on my Raspberry Pi 2, but i have a display already mounted on pin 4. Can i use some other GPIO pin for mounting antenna ? And if i can, which is the best GPIO ...
1
vote
0answers
334 views

How to make the DHT11 sensor work with the sysfs gpio manipulation method?

So i am trying to connect a DHT11 sensor to my Raspberry Pi 2. My wiring is correct, since i got it working with the wiringPi library. Since i don't want to use someone else's library I've created ...
1
vote
0answers
113 views

Unable to get arcade controls passed as keystrokes to PiPlay

I'm pretty new to the Raspberry Pi and I'm trying to get arcade controls I've made working with PiPlay using the Adafruit software. I've tested the controls with a little Python 3 program I wrote and ...
1
vote
0answers
64 views

GPIO Wiring Check - Am I doing it right?

After almost frying my Pi with my last question, I thought I'd better ask if what I have seemingly working is ok and won't cause me any problems. I have a modern wireless doorbell that I am powering ...
1
vote
0answers
811 views

Why did my stepper motor drivers fry my Raspberry Pi 2

Just fried a raspberry pi 2 using 4 of Big Easy Driver's from Sparkfun. Would love to know why it happened and how I can fix it. Here is a link to the stepper motor drivers I'm using. This page links ...
1
vote
0answers
164 views

Error While Deployment; User Code Not Handled

I am a newbie to RPi, I deployed my first app using VS15 in RPi2 WindowsIoT Core. at deployment the error shows(The error place is shown in the comments): An exception of type 'System.Exception' ...
1
vote
0answers
717 views

Controlling brushless motor with ESC and Raspbery 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 ...
1
vote
0answers
421 views

Control the inclinometer with RS232 or UART

I have bought an inclinometer today to try some things. Inclinometer has two communication port; RS232 and UART. Which one should I select? Actually I tried both but none of them worked. I have ...
1
vote
0answers
64 views

Controlling many stepper motors (not necessarily simulataneously)?

I would like to have an array of N stepper motors, and "step" a subset of this array once per second. Being completely simultaneous is not a requirement as long as any subset (from 1 to N, averaging ...
1
vote
0answers
152 views

How do you use GPIO output with RPi and Google Coder?

I am trying to set up the "Blinky Lights" project with Google Coder v0.9. I have used the code from the example project, unaltered, as well as setting up my breadboard exactly as the instructions ...
1
vote
0answers
1k views

Connecting multiple devices with UART

So, I have the following components: Gertbot SparqEE Shield My aim is to connect these to a Raspberry Pi Model B+, so that they can work together. There are no issues when I connect these ...
1
vote
0answers
216 views

My Pi2 doesn't cognize One-Wire

I'm using Raspberry Pi 2 with Gentoo. I tried to use Digital Thermometer(DS18B20) with 1-wire so I prepared: login as: qwpo1030 Using keyboard-interactive authentication. Password: qwpo1030@rpi2-...
1
vote
0answers
378 views

Light an LED in parallel with trigger switch

I have an old vintage camera that I gutted and put a raspberry pi into, similar to this project. I want to light an LED housed in the old flash housing when I hold down the button, as well as running ...
1
vote
1answer
397 views

Access the display from a python app running as a service

Problem: The code below can't access the display when running as a service. I have my raspi hooked up to a touch screen monitor in the kitchen and I've attached a Passive Infrared sensor to the GPIO ...
1
vote
0answers
84 views

Controlling Stepper Motor Responding Strangely

I'm attempting to simply move a small stepper motor over GPIO using a Sparkfun Easy Driver. This Stepper motor is the one I'm attempting to use. I'm using similar code and configuration to that shown ...
1
vote
0answers
250 views

Alarm System - Detect 2.5V or 5V

I'm a newbee in raspberry and would like to add a raspberry on my home system alarm. I have 4 zones, and checked the voltage on the four cables: 2.5V when nothing is detected and 5V when motion is ...
1
vote
0answers
1k views

kernel Disabling IRQ #49

I am using the RPi_GPIO library in a python shell to read a raw wireless signal using the wait_for_edge() function in a loop like so: while True: GPIO.wait_for_edge(26, GPIO.RISING) print 'R' ...
1
vote
0answers
163 views

Troubleshooting MCP23017 based display

I am having trouble getting characters to display on my Adafruit 16x2 blue/white monochrome LCD + keypad. I am wondering how best to isolate the problem as either hardware or software. It shows up in ...
1
vote
0answers
495 views

Wiring TFT Display to Raspberry Pi 2

I just need some help wiring this TFT LCD for the Raspberry Pi. I want to use it as a console/x display. I've Googled and read through everything I could find on SE, but I can't apply what I find to ...
1
vote
0answers
2k views

Multiple servo control RPi

I have written the following script to set positions for a single servo. import RPi.GPIO as GPIO import time #set up pin 11 as an output GPIO.setmode (GPIO.BOARD) GPIO.setup (11, GPIO.OUT) ...
1
vote
0answers
431 views

controlling 12 V RGB LED strip with raspberry pi

We are trying to control a RGB led strip with a 12 V power supply. The servoblaster does not work. Can you please suggest some other software we can use?
1
vote
0answers
468 views

LIRC with Raspberry PI , problems

I am trying to get my SONY CRS60A IR remote to work with LIRC and raspberry pi 2. Here is the setup : That is what my setup looks like. When I run mode2 -d /dev/lirc0 , I am able to read the ...
1
vote
0answers
1k views

SunFounder Raspberry Pi CPU/RAM Display Mini LCD 84*48 PCD8544 Shield For Model B+/B

this display is driving me nuts! i almost tried all available samples/libraries. the only one i got working was this one https://github.com/ronanguilloux/Raspberry-Pi-Utils all the other ones ...
1
vote
1answer
86 views

How can I connect an EasyADC board mikroe340?

I've got a 4-channel 12-bit ADC "Mikroe340" from Mikroelektronika (datasheet). I'm wondering how to wire it with GPIO.
1
vote
0answers
136 views

Why does inserting a USB device trigger activity on the pins

I have this strange phenomenon and unable to wrap my head around it. I have raspberry pi model B (26 pin header). On pin 18 I have a IR Beam Sensor which basically detects a broken beam event. I do ...
1
vote
0answers
1k views

Getting a Runtime warning and a Traceback warning

First of all let me introduce the problem. I am busy working on a HC SR04 + servo combination to measure the distance in certain angles. But lately some weird errors are coming up. The script( which i ...
1
vote
0answers
1k views

SPI sclk no output

I'm trying to control an ardafruit trinket pro using SPI. I have checked the feedback of the SPI on the pi, and get the correct output. (using sudo ./spidev_test -D /dev/spidev0.0) However, when I ...
1
vote
0answers
1k views

rPi model B + MCP23017 + relay board. GPA0 pin low output not close enough to 0v to trigger relay

I've setup a MCP23017 16-bit I/O expander with a rPi model B via i2c, and I am able to control components like LEDs on the channels GPA0-GPA7 using code like this; # set GPA pins to output i2cset -y ...
1
vote
0answers
387 views

PySerial not responding after 10 seconds of inactivity

I've got the JY-MCU Bluetooth module connected to the hardware serial port on my Raspberry Pi. It seems to be working except for one thing: when there is no communication for about 10 seconds or more, ...
1
vote
0answers
117 views

GPIO problems, when run infinitely goes to the right

I'm trying to get a controller to move right, preferably one space, using GPIO. I'm not quite sure what I'm doing wrong but whenever I run the script it moves to the right but it never stops. I don't ...
1
vote
0answers
483 views

PIGPIO: Can child process use the parent initilized pigpio library?

I have a parent process (which is a basic tcp server). This process calls gpioInitialise() before forking a child process which polls gpio pins for input. After forking the child, the parent process ...
1
vote
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 ...
1
vote
0answers
505 views

Connecting to relay via GPIO not working

This may be more suited towards the Elec engineering SE, but thought I'd ask here as I'm working with the Pi. I recently picked up this relay board, and soldered it all together using their guide, ...
1
vote
0answers
3k views

Raspberry Pi RetroPie GPIO Shutdown

I'm trying to make an arcade cabinet with my Raspberry Pi and I want to make a physical shutdown button for it. I can do this with the GPIO, I even wrote a python script to do it: import RPi.GPIO as ...
1
vote
0answers
92 views

Can Raspbmc generate events for other event servers?

I would like to use the raspberry pi to switch off my Power amplifier once I am done playing a movie. I also want to use it to start the Power Amplifier at a specific time as an alarm. If I write a ...
1
vote
2answers
128 views

Multiple RPi and multiple external 5V power sources. Connecting all GNDs = ok?

First off, I'm a noob when it comes to hardware/electronics. Barely started and not planning on getting too deep in it. I have a bit complex setup that boils down to multiple RPis (around 13, with ...
1
vote
1answer
2k views

Cloning RFID tags with Raspberry Pi 3 and RC522?

I've looked around a lot now and can barely find any information on how to clone RFID tags with the Raspberry Pi, I've seen plenty of content on how to do it using an Arduino but I would really rather ...
1
vote
1answer
775 views

How to power a Pi from batteries via an UBEC

I am trying to power my Pi (3B) from 6 AA batteries, via an UBEC (rated 5V/3A). By itself, the UBEC is outputting some 4.94V. But plugging the UBEC output into "GPIO" pins 4 and 6, m yPi does not ...
1
vote
1answer
527 views

Playing jukebox style MP3 s by GPIO , how does the code/directories work?

Having followed the adafruit "overview playing music with buttons raspberry pi" I thought I knew it all but then I wanted to play random files and then to scroll through the files and play them by ...
1
vote
1answer
349 views

How can i make a GPIO F5 Button

I have a GPIO button triggering an os.system("sudo reboot") command. How can I change the reboot command to send F5 to the active window (web kiosk).
1
vote
1answer
118 views

Cant get GPIO input working

I have my Pi set up using a Powered USB Hub. I have followed all the directions to create a mini arcade following the Adafruit tutorial. But none of the controls on the right side of the board work. (...
0
votes
0answers
23 views

HC-SR04 Ultrasonic Rangefinder readings are way off

So im trying to make my Robot move by itself and then make a turn until the path is clear using the HC-SR04 Ultrasonic Rangefinder, but my problem is that my readings are off with a large margin, ...