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

0
votes
1answer
18 views

wiringPi interrupt not working

this program is supposed to blink led when I press button, but the led start blinking with the start of program and never stop. button wired to gpio 17 and ground (0 in wiringPi map) led wired to ...
0
votes
2answers
34 views

Need help on my REST API

I would like to seek help on my REST API. I have finished constructed my basic REST API for my Raspberry PI and able to work now, thanks to you guys. Now, I want to display date and time function like ...
0
votes
2answers
52 views

PI4J: Multi-threading when listening to Pin Interrupt events

Currently I'm working on a application for my RPi which will be monitoring a set of GPIOs in real-time where the exact time when the GPIO turns HIGH is crucial for my application. The actual date is ...
0
votes
1answer
15 views

MCP3204 ADC with low sampling rate << 100kSps

I'm trying to read light value from an LED bilking very fast. So I choose TSL12S as a light sensor, and MCP3204 as an ADC. In datasheet, MCP3204 have sampling rate up to 100 kSps when Vdd = 5 V is ...
0
votes
0answers
25 views

How to build a simple LED RESTful service in Raspberry PI?

I would like to seek advise or help on how to build a simple LED RESTful service in Raspberry PI. I need to be able to get my LED to light up or off whenever I type localhost:3000/GET/1/1 or ...
0
votes
0answers
23 views

Can´t get WebSocket “Tornado” to work!

I'am new to this community, so there it goes. Don't know what's wrong with the code, it just won't let me connect, and when i try, on the server side appears this message: ...
0
votes
1answer
26 views

powering a RPI with its circuit from one wallsocket

I want to power a RaspberryPi with 54 LEDs (24 white, 24 warm white, 6 RGB - probably all at 20mA or something like that) from one wall socket. I'm planning to use the Pi to control the LEDs via ...
1
vote
0answers
36 views

Ethernet not working when powered over GPIO

I'm powering my RPi (rev 2, model B) through GPIO pins - same connection like here - using it ethernet is not working, though the ethernet works fine when powered through the microUSB port. The ...
0
votes
0answers
26 views

cheapest presence sensor for a dor

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. Whats the cheapest and more robust way to detect door opening, with less damage ...
1
vote
1answer
47 views

4€ remote socket. The best idea ever?

I just found out this little guy: http://www.dx.com/p/ir-remote-controlled-ac-outlet-for-appliances-220v-12902#.U8eeRfmSx8E Is a infra red (IR) controlled socket who learn your IR signals for 4€. ...
0
votes
0answers
21 views

GPIO goes high on first initial run of script - please help get my ECTO 1 on the road!

I am having a few problems with my script, on a fresh boot of my pi, the GPIO Port goes High and switches my relay when I run this script, however, it doesn't do it after I initially run the script, ...
0
votes
0answers
24 views

suddenly all gpio PIN are not working

I try to blink a led using c code (via gpio4), today it' no working, I have tried all gpio pins. then I tried to put led between (5 volt pin and ground) led doest turn on, I reversed the led ( same ...
0
votes
0answers
9 views

pi4j provisionDigitalOutputPin without setting state low

How can I? I want to run a program every few minutes with cron. I read a file of times that I expect pins on or off and then check the state of each pin and set them accordingly. It works fine ...
0
votes
0answers
25 views

rasberry pi two devices GPIO

I want to use both a the PiTFT monitor (http://www.adafruit.com/products/1601) & Woldsfson Audio (http://www.element14.com/community/community/raspberry-pi/raspberry-pi-accessories/wolfson_pi) ...
0
votes
0answers
47 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 ...
1
vote
1answer
54 views

RaspberryPi to Arduino(leonardo) avoiding latency

I'm using a Python script via (TKinter)on the raspberryPi to capture mouse movement and events. My goal is to send this data, in real time, to another connected Arduino device(Leonardo). My first ...
1
vote
1answer
646 views

Has anyone bought one of the new model B+

Details of the new Raspberry Pi B+ appear at http://docs-europe.electrocomponents.com/webdocs/12de/0900766b812decd9.pdf Has anyone received one yet? I/F schematics ...
0
votes
1answer
27 views

Can't PWM LED on pin 18

Using this code, I can't use PWM on the pi. It's modified off of a Linux user article. import time import RPi.GPIO as GPIO led = 18 GPIO.setmode(GPIO.BCM) GPIO.setup(led, GPIO.OUT) ...
0
votes
1answer
25 views

DHT22 code not working

I'm trying to read temperature form DHT22, I'm following steps of datasheet page 4 using gpio4. . the circuit is correctly wired(I can read with existing codes). I have the following problems : ...
0
votes
0answers
42 views

Store records to SQLite database from Raspberry PI's PHP

I would like to seek help on storing data to SQLite database using PHP. I have designed a web control interface and wanted to store data of what time is been switch on or off whenever the user click ...
-1
votes
1answer
27 views

Soundboard switch mp3 list

I'm trying to setup a switch on a breakout board which will allow me to on switch play a short mp3, then loop a second mp3 until i switch it off, when i do so i want it to play a third mp3 (this is ...
0
votes
1answer
46 views

Powering a floppy drive with the 5V GPIO pin

I'm trying to use Raspberry Pi to power a floppy drive with the 5V GPIO pin. I know that the floppy drive requires a voltage of 5V and a current of 1A and Raspberry Pi gives the output as following: ...
0
votes
1answer
35 views

Raspberry Pi GPIO randomly triggered

I have recently finished working on a project that would use my raspberry pi to operate my doors deadbolt. There is an RFID reader connected though USB, a servo on port 18, a reed switch on 24 and a ...
0
votes
0answers
33 views

Using PiPiper to control Energenie's Pi-mote

I've just acquired myself a Pi-mote from Energenie. I'm trying to replicate the code from their website using Ruby and the pi_piper gem, but I've run in to problems. For some reason, my turn_1_on ...
1
vote
1answer
43 views

I2Cs for temperature senors and multiple PWM outs

EDIT: Rewrite, this is why you don't write questions after not sleeping for two days (wait what day is it?) I have a whole bunch of 12V 4 pin (pwr, grnd, tach, pwm) fans I'd like to manually control, ...
1
vote
1answer
65 views

Minimal setup to output 30V through GPIO

I have a bell that works with a coil and when I put 30V (or more) on the coil the bell rings once. So now I want to be able to control that bell using my Raspi. I have a USB Charger for powering my ...
0
votes
2answers
30 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?
2
votes
2answers
163 views

Problems with Pifm legality

There is a lot of discussion online about whether using Pifm is okay because it is low powered, or whether it is very bad because the square waves cause a lot of interference outside the FM band. ...
0
votes
2answers
71 views

RPi GPIO as a high-speed square wave generator

I'm trying to make RPi generate high-speed square wave through its GPIO pin. My code controlling GPIO output is based on this article The essential part of my code is the following: speed = ...
0
votes
1answer
47 views

GPIO pin - possible floating voltage when used with a transistor

I am trying to use a transistor to switch a button on a remote control, by bypassing the remote control button for the collector and emitter of the transistor. I am running a program on the pi to ...
0
votes
0answers
45 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
2answers
55 views

Rpi as usb stick

I'm looking for a way to turn my Pi into a usb stick. The data on the PiStick should actually be a network share (nfs) This way I would have a 1TB Usb stick in the house. Is there any way to ...
0
votes
1answer
31 views

Using incrontab to read GPIO's

I tried the following: In rc.local, I have: echo 24 > /sys/class/gpio/export echo 25 > /sys/class/gpio/export echo in > /sys/class/gpio/gpio24/direction echo in > ...
0
votes
1answer
27 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=( ...
1
vote
1answer
38 views

Do I need female to male jumper wire because I have a jumper cable

So am going to make this tutorial since am complete newbie in circuits and electronics with my Raspberry Pi, but it said I need female to male jumper wires. However, all I have are male jumper wires ...
1
vote
1answer
90 views

Raspberry PI Audio Input

I am looking to use the GPIO on a Raspberry Pi to get data from an ADC for audio signal processing. For the purposes of this forum, my project is to produce a spectrum analyzer which will display the ...
0
votes
1answer
22 views

show data online

I have a program that monitors the GPIO values. I have a webserver installed with some PHP and javascript (jquery) stuff and there I can plot on-demand results. Is there a way to show a data stream ...
0
votes
0answers
30 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
2answers
101 views

Red LED only staying on momentarily during bootup?

I have a red LED that I just want to light up using the GPIO pins on the Raspberry Pi. I got it to light up using the 5v pin. I tried it on a GPIO pin with a simple python script and it failed to ...
0
votes
1answer
46 views

GPIOs are put at 0.6 V during boot

I have made a little project using WebIOPi, and it works like a charm. However, I have noticed that during the boot of the Raspberry Pi, all I/O pins are put at 0.6 V. This is enough to trigger ...
2
votes
1answer
59 views

Interrupting a Program with a Button

Currently tying to stop the middle of a command if the user presses a certain button. I tried this bit of code below and it doesn't seem to work. I know that you can use control-C to have a ...
0
votes
1answer
29 views

Simple LED code says that object has no attribute output?

I installed RPi.GPIO .5.1 and my uber basic led code says that the object has no attribute 'output'. I am hooking up the 12 pin to the Breadboard and I have ground hooked up too. Here is my python ...
0
votes
1answer
174 views

Can't Access TTY: Job Control Turned Off

I have a new Raspberry Pi with Raspian Wheezy installed and has several cables connected to it via the GPIO pins. However, I noticed if I have anything connected to them during boot up, the device ...
0
votes
0answers
54 views

Stepper motor troubles

I've been trying to setup my stepper motor with my RPI according to this guide: http://www.raspberrypi-spy.co.uk/2012/07/stepper-motor-control-in-python/ However, nothing seems to be happening, have ...
1
vote
1answer
91 views

Is it safe to use the GPIO P6?

I have seen a number of tutorials on using GPIO P6 to work as a power switch. Is this safe? Does this approach do a "safe shutdown" - sudo shutdown -h now? From a tutorial: For this hack, we ...
0
votes
2answers
52 views

How do you wire 2 stepper motors to a Raspberry pi with a ULN2803?

Is there any way to wire 2 steppers to a Raspberry Pi with a ULN2803 Darlington chip? (http://www.adafruit.com/products/970) Can you wire multiple ULN2803's with 2 steppers attached? Is there any way ...
0
votes
1answer
108 views

GPIO switch relay 12V AC

Here is my problem I've built my own home automation by using some relays, driven by 12V AC (read Alternating Current) to switch them. Now i want to use my raspberry's GPIO pins to switch these ...
2
votes
1answer
68 views

TFT screen setup troubles

I've been trying to my tft screen work with the Pi using a tutorial here. The python script doesn't seem to work, I get this error every time I try to run it: Traceback (most recent call last): ...
0
votes
0answers
84 views

Wiring up a ILI9341 TFT Screen + Touch

I've bought a ILI9341 TFT LCD Screen + Touch to my Raspberry pi. The screen is the MI0283QT-9A "TFT PROTO", from Mikroeletronika. Here is the link to the producer's page. It has an ILI9341 chipset, ...
2
votes
0answers
95 views

powering pi with a 5v regulated power supply

I am considering the following 5v regulated ps module. I have a coinacceptor that connects to a board. I am going to cut the coin acceptors 12v cable and put the -ve and +ve behind the regulated ...