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.

500 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
166 views

Connecting angular encoder to an INTERRUPT to count cycles

I'm building a Robotic Car, the 4 DC Motors are working perfectly. I need to know the speed of its moving using an Encoder. Encoder that I use: has two edges (transmitter & receiver) and a ...
1
vote
0answers
488 views

DHT22 not working on Raspberry Pi2

I have DHT22 sensor hooked up to my Raspberry Pi2 running default Raspbian image. I have similar setup on Raspberry Pi B and it is working. I am using Adafruit library for DH22. However when I try ...
1
vote
0answers
319 views

Raspberry + Breadboard externally powered: issue on logic

I have this kind of trouble. I'm working on a project that implements several load (some relays, or motors, etc). Or, more simple, I would light 6 LEDs in series, all togethers, with only a GPIO (let'...
1
vote
3answers
315 views

How to display gpsd.utc using paint or similar method

I am receiving reliable gps data from my Adafruit gps sensor. I would like to to show the gpsd.utc data across the screen so that it appears like a regular clock. I have the following code which shows ...
1
vote
0answers
130 views

Need help using Bus Pirate SPI with Rspberry pi

I am using a Pi 3 I recently acquired for a project at work. I am pretty new to most of this electronics, so a large pool of ignorance may follow. Also, if you are not familiar with the tool i used on ...
1
vote
0answers
1k views

Execute I2C functions from web page on Pi running LAMP

I know these type of "what's the best way" questions are frowned upon on StackExchange, but I will try to fit it within the guidelines. I have tried several methods and can't figure out which is the ...
1
vote
0answers
108 views

Thermometer no longer working

I am running the below lines to try to load my two therms. sudo modprobe w1-gpio sudo modprobe w1-therm ls /sys/bus/w1/devices All I am getting is 00- instead of 28- I have checked wiring, works ...
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
236 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
447 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
798 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
403 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
256 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
360 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
115 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
67 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
841 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
434 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
65 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
154 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
380 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
427 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
85 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
255 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
501 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
448 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
469 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
87 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
141 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
408 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
494 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
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
253 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
2answers
76 views

Incorrect TTYS0 input from sensor

I am trying to read data from a LV-MaxSonar-EZ0's TX pin connected to the RX pin on a Raspberry Pi Zero W. The problem I'm running into is that the data I'm getting does not fit what the sensor's ...
1
vote
1answer
824 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 ...