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.

learn more… | top users | synonyms

1
vote
2answers
17 views

“Inappropriate ioctl for device” error since upgrading Rasbian & firmware

I was happily controlling Shiftbrite LEDs using SPI and Python based on this code Today I upgraded my Pi using sudo apt-get update && sudo apt-get dist-upgrade sudo rpi-update Now my ...
0
votes
1answer
15 views

Pi2 won't start when connected to breadboard via ribbon cable and gpio-to-breadboard interface

I have a Raspberry Pi 2 that works great until I try connecting a breadboard to it via a 40-pin ribbon cable and GPIO-to-breadboard interface board. Whenever the board is connected to the pi, the pi ...
-1
votes
0answers
20 views

Need a python program for DC motor control [duplicate]

I have connected the motors(4 in numbers) with the GPIO pins and I am able to run them for a certain amount of time using python, but I need to program them in such a way that all the motors will ...
0
votes
1answer
16 views

How can I connect an EasyADC board mikroe340?

I've got a 4-channel 12-bit ADC "Mikroe340" from Mikroelektronika. I'm wondering how to wire it with GPIO. !(http://static4.tme.eu/products_pics/3/d/7/3d785623be45a644c66a1632ed688914/73330.jpg)
0
votes
1answer
33 views

RPi use in inverter

I am building a pure sine wave dc/ac inverter and looking at the possibility of using the Rpi to control the h-bridge. I need a sinusoidal encoded pwm signal at around 20kHz. So the pulses would ...
1
vote
0answers
16 views

Multiple (dumb) wireless buttons to one RPi

I'm building a project that will have 3-4 dumb buttons (something like Easy Buttons) all needing to interact with the RPi. In this setup, wireless is really the only option, but most of the options ...
2
votes
1answer
77 views

Could a Raspberry PI 2 with a RTOS read about 18 MBytes/s of data by GPIO?

Do you think a Raspberry Pi 2 with a RTOS be able to perform a VGA input with ADC used on GPIO ? Well, I didn't found many documentation saying if GPIOs of the Raspberry Pi 2 are faster than the ...
0
votes
1answer
23 views

gpio get value of pin

I'm trying to get the value of a single pin from an rc receiver (receiver info at bottom). What's the correct way to read the value coming in? Here's my existing code: import RPi.GPIO as GPIO ...
3
votes
1answer
80 views

Receive FM on Raspberry Pi

I want to feed the FM radio signals to raspberry pi. Having a basic understanding of electronics, I figured out that a FM receiver and an ADC is required. Now I need help on how to proceed with the ...
0
votes
0answers
22 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 ...
2
votes
1answer
35 views

Simple Custom 1-Wire GPIO Communication Protocol between Master PI and Slave PI

I have 2 Raspberry Pis in my system. One can be 'docked' to the other one and some time later it can become 'undocked'. While docked, the 2 Pis will have a connection between 2 GPIO pins ( 1 pin on ...
-1
votes
2answers
47 views

GPIO is not working, 5V working, 3.3 V working, Raspberry Pi B+

I am the RPi B+ user. Feeling confused about the GPIO. GPIO isn't working. I tried checking it with multimeter by connecting the pin 21 to the gnd, not work. And then i tried the 5 v and 3.3 v, it ...
1
vote
0answers
30 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 ...
0
votes
1answer
53 views

How to play video files on Raspberry Pi using push buttons?

I have a Raspberry Pi Model B+ and I would like to play video files that are stored on a USB flash drive. Basically, I have three different push buttons connected to the GPIO pins of the Raspberry Pi ...
0
votes
0answers
35 views

Controlling Raspberry Pi GPIO ports using node.js

I want to use node.js to parse data from a java script application back to the node.js server, I have accomplished this in a very rudimentary form and now I want to have the data turn on or off the ...
2
votes
1answer
52 views

How to change gpio directory for node.js pi-gpio?

I was wondering how to change the gpio directory for the node.js pi-gpio library. Whenever I try to run the script to change the pin it returns this error: "Error when trying to open pin 40 ...
0
votes
0answers
10 views

Node.js controlling GPIO pins [duplicate]

gpio node.js utility following these instructions: https://www.npmjs.com/package/pi-gpio Everything installed fine with no errors until I attempted to use the code. Whenever I try to open a pin or ...
1
vote
1answer
40 views

433MHz receiver, flickering LED/signal, how to wire up correctly?

I've just bought a 433Mhz digital transmitter/receiver set and tried to wire them up using the pi. Unfortunately my electronic skills are very basic and now my receiver gives me a "pulsing" signal ...
2
votes
1answer
26 views

Using a class function as callback with gpio.add_event_detect

I want to set a callback function to run when an event occurs in a GPIO. Im designing a class and I want to have the callback method inside it too. Here's the code: import RPi.GPIO as gpio class ...
3
votes
1answer
97 views

Power a 5v relay from GPIO pins

I have a bank of relays (5) that Im looking to run from my pi. Im using 5v TE Connectivity relays, powered by Sparkfun's high power relay kits, which use a NPN transistor to trigger the relay. So far ...
0
votes
1answer
52 views

Getting a 1.44" TFT ILI9163C screen to work with SPI

I am working on getting my very very very cheap chines display working. As far as I can tell, its a TFT 1.44" 128x128 SPI display (printed on the board) - and the internet seems to direct me towards ...
2
votes
1answer
73 views

Write floats to gpio

I want to control an LED Strip via the gpio PIns of my Raspberry pi 2. I found some ways for example using Python or WiringPi. But I need to use "non absolute values" like "put Pin 0 to 0.2 and Pin 2 ...
0
votes
0answers
17 views

Using gpio-admin errors: no such file or directory [duplicate]

I'm trying to make a NodeJS app control gpio on my new Pi 2, I'm using the pi-gpio node module (https://www.npmjs.com/package/pi-gpio) and followed the instructions to the letter, not only logging out ...
0
votes
0answers
3 views

Solenoid Valve - Transistor or Relay? [migrated]

bit of an amateur looking for some advice. I looked at the other question concerning my problem but i didn't find what i was looking for. I need to switch ON and OFF a solenoid valve using my RPI. I ...
1
vote
0answers
23 views

Detecting if speaker is active

Pre-story: there's an analogue speaker connected to some circuit (wireless doorbell really). I want to figure when speaker becomes active (i.e. produces some sound). Basic measurements show there's ...
3
votes
0answers
63 views

Raspberry Pi failing to read sensors in -20 degree F

I am currently developing a sensor box and plan on running it outside. Temperatures can get as low as -40 degrees F and once my box reaches an internal temperature of 32.18 degrees F it fails to read ...
1
vote
1answer
42 views

problem with LED matrix setup with raspberry pi model B+

I have a raspberry pi model B+ , and an 8x8 LED matrix(single colored) , so I connected 8 GPIO pins to the 8 row pins of the matrix and another 8 GPIO pins to the 8 colomn pins. Note that I am pretty ...
0
votes
2answers
236 views

DS18B20 temperature sensor not registered - debugging?

Like other posters I have connected the temperature sensor (from ModMyPi Hacker Kit) a variety of ways and can not get my Pi2 to recognise it. I have unsuccessfully followed posts to diagnose on: ...
2
votes
1answer
69 views

Simulate GPIO pins

I would like to do some simulation of the Raspberry's GPIO pins, e.g. for automated testing and developing the scripts on another host that is not the RPi. Are there any existing ...
1
vote
1answer
27 views

extend the current for PWM LED Control

i am using the raspberrypi to have 2 led's fade up and off. My script works and its ready to go. But i need to get my LED's brighter. Is there a way to extend the GPIO Current of the rasperry pi ? ...
0
votes
0answers
70 views

Why are some GPIO pins not available?

According to this guide, only the following pins are available for my use: 2, 3, 4, 7, 8, 9, 10, 11, 14, 15, 17, 18, 22, 23, 24, 25, 27, with 28, 29, 30, 31 So that's 17 pins and then 4 on the ...
2
votes
2answers
187 views

/sys/devices/virtual/gpio dissapears after installing RPi.GPIO on Archlinux ARM

...tinkered a bit with GPIO and Piface Digital. It was all ok until I had installed RPi.GPIO via pip. After that the directory /sys/devices/virtual/gpio disappeared and never showed up again. I had it ...
1
vote
1answer
58 views

Question about Breadboard positioning

That's my current structure: The short metal of the LED (-) is connected to GND, and the longer (+) is in the port 26. This black "thing" (I don't know the name) is connected to my Pi B+ by a gray ...
4
votes
1answer
161 views

Can I write and read the pins of the GPIO just by using the shell?

I do not have programming skills, but I have some knowledge using the command line of the shell. Is it possible to get access to the GPIO just from the shell ?
1
vote
1answer
47 views

How to control piTFT backlight in C code?

Controlling the piTFT backlight requires using some basic shell commands, but they don't explain how to do this in C code, and I'm not sure exactly what these commands do (beyond the obvious sudo sh ...
0
votes
1answer
38 views

GPIO does not work on reboot

I am using cron to start a program on reboot for my Raspberry Pi (running Raspbian). This program rings a bell hourly based on the current time. When the program is run manually using: sudo ...
1
vote
1answer
113 views

How to use a gpio as an interrupt?

I am looking for how to use a gpio as an interrupt using device tree dts file. previously I did that by using the following code in my dts file interrupts = <3 30>; ...
0
votes
1answer
63 views

pigpio import into Python and dc motor pwm control

I am trying to control the enable pin on my L293D motor controller with pwm signal from the pigpio library. I have got to the point where when I execute this code: import Tkinter as tk import pigpio ...
0
votes
0answers
28 views

GPIO wait_for and signal.alarm

I have a python program that runs on my pi fine using GPIO.wait_for_edge(channel, GPIO.RISING) until i call signal.signal(signal.SIGALRM, handler) signal.alarm(1) after the alarm fires i get the ...
1
vote
1answer
174 views

Powering 5V Fan GPIO 1 & 3

I am trying to power a small 5V .21 A fan via GPIO pins 1 & 3. I am using pins 1 & 3 due to the nature of the fans connecter. I keep receiving the error: fan.py:7: RuntimeWarning: A ...
1
vote
1answer
82 views

PiGPIO Library Example for Bit-Banging a UART

The PiGPIO library http://abyz.co.uk/rpi/pigpio/index.html mentions that one of it's features is "software serial links using any user gpio". I take this to mean that you can use it to generate a ...
0
votes
0answers
61 views

controlling rgb led strip via spi and node js

I recently purchased a pi and a string of individually addressable rgb led lights from shenhzen kapata (actually amazon, but they're the ones who sell it) and I'm trying to control it with my ...
1
vote
0answers
41 views

How to avoid high cpu load while using spi with the bcm2835 c library? [closed]

I'm trying to use the bcm2835 c library to get data from an ADC (I'm running raspbian of a raspi B+). So far I've been using the default configuration with success: if (!bcm2835_init()) { ...
0
votes
0answers
38 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
1answer
49 views

gpio write doesn't work

I just starting with Raspberry PI and I have first problem with understanding what's happen with GPIO. I have installed wiringPI and after call readall GPIO. 7 is set to 1 and I can't change it to 0 ...
0
votes
1answer
42 views

GPIO pin already exist GPIO 1 error

I am working on raspberry pi to blink the LED using java. Its working fine for the first time and it giving this error if I try to run for next time. GpioController gpioController = ...
0
votes
1answer
187 views

ImportError: No module named GPIO

I have install RPi.GPIO 5.3a from here: https://pypi.python.org/pypi/RPi.GPIO i ran the next code: sudo python setup.py install there are no fails on the installing. I will run the next script: ...
2
votes
0answers
58 views

GPIO won't work with Pure data [closed]

I'm running a script at log-in on my Raspberry Pi B+ (I call it in the .bashrc). The script runs Jack-Audio and then launch a Puredata patch that deals with audio and GPIOs. The audio part works well ...
0
votes
1answer
45 views

Raspberry Pi GPIO pins stuck high after using L239D chip

I am attempting to run a remote control car via the raspberry pi. I setup a L239D chip circuit following this guide. ...
3
votes
2answers
135 views

Raspberry Python Libraries

I am currently working with a Raspberry Pi (Model B+) and have some experience with Arduino (and it's derivates). Now, there are three Libs for GPIO access with Python for the Pi: WiringPi ...