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
16 views

Uart TxD & RxD voltage

What's voltage of RPi pins 14 & 15 (RxD & TxD)? I want to use an octocouplers, so I'm very interested in voltage parameter.
0
votes
0answers
13 views

ADAFRUIT 16 Channel hat stacker

I recently bought want to equip the adafruit 16 channel hat to the RPi. But I want to maintain the use of the GPIO's. I have some motors which work from the GPIO (i know they can be programmed on ...
2
votes
1answer
35 views

Do I need a current limiting resistor in series with a magnetic door sensor?

I'm building an alarm system and I'm using a magnetic door sensor, conected to ground and a pin of the gpio set up with an internal pull-up resistor. As far as I know, this means that the pin will be ...
0
votes
1answer
17 views

Unwanted multiple presses when using GPIO button press detection

I use this to detect momentary button (connected to GPIO) press : import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) def my_callback(channel): ...
0
votes
1answer
54 views

I2C not working as expected

I'm running a Pi B+ rev 1.2 and recently acquired 2 I2C modules: DS-RGBW.S LED lighting Microstack accelerometer: When connecting the LED module, address 70 appears to be occupied as planned. I ...
1
vote
2answers
74 views
+100

How to connect 7-segment 4-digits display with Pi?

I would like to connect such a 7-segment 4-digits display (with common anode) to the Raspberry Pi: What's the simplest way to do it with Python for example? Do I need the RPi.GPIO package? Is there ...
1
vote
1answer
36 views

GPIO pins turning on unpredictably

I have four GPIO pins and a GND pin wired into the circuit board of a monster truck, and a couple pins seem to be going and staying high without any prompting. I've been using RPi.GPIO, and I've ...
4
votes
1answer
69 views

Is there a difference from one GND pin to another?

There are 4 ground pins on the GPIO are they all the same? Are the extra pins just there for convenience? I have an expansion breadboard does it matter which gnd slot I plug into? thanks
1
vote
1answer
55 views

How to wire up a DHT11 temperature sensor

I'm a Raspberry Pi (and hardware) noob and am trying to hook up a DHT11 temperature and humidity sensor. I've found two separate guides, and I'm seeking advice as to which I should follow. This UU ...
0
votes
1answer
29 views

New Raspberry Pi SPI Interface Question

I was looking at the new Raspberry Pi. I wanted to know if the SPI Interface will be able to sample at a higher sampling rate. Does anyone have any information on this? According to this page, the ...
0
votes
1answer
32 views

How to correctly connect the pwm dimming of LED driver to my pi? [closed]

I use LDD-1000H(http://www.meanwell.com/search/LDD-H/LDD-H-spec.pdf) as the LED driver. I just connected the pin 18 to the dimming pin. But after I changed the PWM value, the brightness has no change. ...
0
votes
0answers
39 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 ...
1
vote
1answer
26 views

Neato Lidar to Raspberry Pi?

How would one connect the neato lidar to the raspberry pi? I know that there are a lot of choices, such as GPIO or USB (with this?), but which one is the best with the least latency? I would love for ...
1
vote
0answers
25 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
2answers
58 views

Why doesn't GPIO commands work?

I have upgraded to the new rPi B+ 2 now from the old B model. Keep in mind that everything worked fine with my older boards. Now with my newer boards it does not. I have my script in the rc.local ...
7
votes
2answers
605 views

Should GPIO pins 13 and 14 be soldered together?

I just bought a new Model A+ board, and noticed that the GPIO pins 13 and 14 (board pins 21 and 23) are soldered together on the backside. This was not the case with my previous A+ board: see the two ...
2
votes
2answers
250 views

How does the Raspberry Pi differentiate between multiple expansion boards?

I am just getting started with using the GPIO on the Raspberry Pi for various projects. There are many breakout boards for the RPi and many of those have pins in order to stack boards on top of each ...
0
votes
1answer
29 views

brushless motor speed control

I have successfully been able to turn the motors through the code pasted (found online). I am trying to adapt the code for a speed control, but it seems that the speed only goes to 100%, I have tried ...
0
votes
0answers
19 views

Using sensors and dc motors with MCP23017

Can I use a Raspberry Pi Model B along with MCP23017 to take inputs from 5 digital sensors and give output to 6 'normal' 12v DC motors? The Pi is already working as a webserver with a USB camera. I ...
0
votes
0answers
25 views

Is it possible to make Javascript interact with the GPIO pins?

I want to make a game with Javascript with LED and pushbutton interaction. My problem is: I don't know how to make Javascript "talk" with the GPIO pins. Any help would be highly appreciated.
0
votes
0answers
38 views

Reading GPIO status only works outside of PHP if statement?

I can read a GPIO pin's status as such: <?php exec ( "gpio read 7", $status ); print_r ( $status ); ?> this works fine. But I want to read the status from within a php if statement, ...
2
votes
1answer
93 views

How can I wire this SD card reader to RaspberryPi?

I need to add a second SD card reader to my Raspberry Pi (the RPi will be embedded in a box, so I need a user-SD-card reader). Here is what I would like to use: How to wire this to the ...
5
votes
1answer
89 views

Is the 26-pin Pi cobbler compatible with the 40-pin Raspberry Pi?

I'm a Raspberry Pi noob, and accidentally purchased a 26-pin Pi Cobbler - then realised I have the newer 40-pin Raspberry Pi Model B. The 26-pin cobbler won't physically fit on the GPIO board due to ...
0
votes
0answers
33 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?
0
votes
0answers
28 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 ...
0
votes
0answers
67 views

Led connected to pin is always on

I've been following basic tutorials on how to programmatically turn on leds from my Raspberry Pi 2. I'm using a breadboard, and I connect 3 leds, using a male-female jumper from the pins of the ...
1
vote
1answer
29 views

Can I span cable before microUSB input of Raspberry Pi without damaging it? [closed]

I have a Raspberry Pi B+ and I need to provide an external PCB with 5V|(~1A) which is controlled by RasPi. Since I assume that I cannot use GPIO pins to provide PCB with ~1A (as the current I need is ...
1
vote
1answer
19 views

write protect modular plug

In the older version of Raspberry pi, the mollex connector for the SD card has a switch at the base of the connector. If you read about it, this is called a write protect switch, that attempts to ...
0
votes
1answer
37 views

Running a JAR file in Pi results in following error “can't find the main class”

I want to make a GUI application in java which can control the gpio pins. I used pi4j lib for control the pins. I wrote a pin toggle code inside the button click event as shown below. while running ...
0
votes
1answer
133 views

LIRC / Raspberry PI 2 , No input

I want to use LIRC with my new RPI 2. To do that, I followed this tutorial. Basically it is telling me to do the following: Add this to your /etc/modules file: lirc_dev lirc_rpi gpio_in_pin=25 ...
0
votes
0answers
74 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 ...
3
votes
1answer
51 views

Piezo wiring for Raspberry Pi

I have a piezo element that I got from a song card, it looks like the one at: https://www.sparkfun.com/products/10293, and I was wondering whether it was safe to connect to my raspberry pi without a ...
0
votes
1answer
39 views

How to control an L298 dual H-Bridge motor controller with GPIO

Short version of question: I bought one of these: http://imall.iteadstudio.com/im120606013.html and am trying to figure out how to get it going with the Raspi. I have some assumptions about how it ...
0
votes
1answer
55 views

ESC Control with PS3 Controller using Python [closed]

I have connected my PS3 controller to the raspberry pi using a bluetooth dongle. I am not sure about how to structure the code to control the ESC with the left joystick (axis 1). Could anyone advise ...
1
vote
2answers
54 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 ...
1
vote
2answers
59 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
27 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
20 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
49 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
20 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
111 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
48 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
134 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
33 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
60 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
85 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
34 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
110 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
58 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
137 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 ...