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.

Filter by
Sorted by
Tagged with
1
vote
0answers
175 views

How to connect RPi 2B with SM900?

I have a Raspberry Pi 2B and a SM900 module and I want to make a UART connect with jumpers using raspberry GPIO and the shield pins. My problem is how could I make it? How to power up the SM900? I ...
1
vote
2answers
6k views

send gpio commands from rpi python script to another rpi

it is possible to control the Gpio of a raspberry pi connected by WiFi by another raspberry pi by a python script? I need to Connect\disconect some electric loads of my house switchboard, controled by ...
1
vote
1answer
785 views

How to make the DHT11 sensor work with direct memory access(dev/mem method)?

So, I'm trying to make the DHT11 sensor work without any library on a Raspberry Pi 2 using C. I'm using this tutorial to manipulate the GPIO pins registers so i can set them as input,output, HIGH and ...
1
vote
1answer
781 views

How to drive nitinol (flexinol, muscle wire) through RPi [closed]

Is it possible to actuate muscle wire through Raspberry Pi ? This product expects ~200mA to revert to its original shape. If so, how would the circuit look like ? What resistors should I hookup ? ...
1
vote
1answer
1k views

Just one GPIO pin stopped working - fixable?

I have tested all my GPIO pins in the past, and I know they all worked as outputs. Today I was using pins 11,13 and 15 (Board numbering), and they were all working fine, but suddenly pin 15 stopped ...
1
vote
2answers
2k views

GPIO communication between 2 Raspberry Pis?

I want to build a device with both a small screen and 4 digit display. I have been having trouble getting the 4 digit display to work with my model B+, but it works with the my model A, you can find ...
1
vote
1answer
380 views

Pi 3 reboots when GPIO 13 is given 3V

simulate this circuit – Schematic created using CircuitLab I am taking the 3V from Pi and giving it to COM of a relay. The NO goes to GPIO 13 of the same Pi. I have a 120V line that triggers ...
1
vote
2answers
3k views

RPI - Which GPIO pins are 0V at statup?

So I'm doing a project today with the Raspberry Pi 2 Model B and I realized that some (not all) of the GPIO pins output 3.3V at startup (I mean the data pins, not the power output pins). I cannot have ...
1
vote
0answers
864 views

Set permissions and group for /dev/gpiomem permanently [duplicate]

I need to allow my user access to the GPIO pins and found following solution. Access GPIO pins without root. No access to /dev/mem. Try running as root! This works perfectly. All I need to do is ...
1
vote
2answers
3k views

MFRC522 Not working over SPI Interface

I am running (on a Pi3) an MFRRC522 reader - much like this one: It has been working fine, but after I changed SD card, to increase capacity - whilst also doing a new Raspian install I haven't been ...
1
vote
1answer
530 views

Bit banging an MCP3008 with pigpio bb_spi returns all 1023s

I started to try to read an MCP3008 ADC using SPI bit banging with pigpio. I wrote the unattractive little script below, starting from the example in the pigpio documentation and here is a screenshot ...
1
vote
3answers
3k views

Controlling multiple Pis from one Pi

I am totally new to Pi and networking in general and have no clue where to look for guides. I need to build a system in which one master Pi controls several slave Pis. And those slave Pis are sending ...
0
votes
1answer
238 views

Reading Output signal from external circuit using Rpi GPIO Pin

I am trying to read a signal coming from an external circuit thru the use of raspberry pi's gpio. the signal I am trying to read is a 3.3V signal coming from a voltage divider circuit. this circuit ...
0
votes
1answer
484 views

How to open multiple RC522 reader device on android things?

I use Raspberry pi 3 model B on Android Things. for RC522 communication, I use https://github.com/Galarzaa90/android-things-rc522 this source success work, only 1 RC522 reader device but I want 2 ...
0
votes
1answer
699 views

Connecting DHT11 sensor

I want to use the DHT11 sensor with my Raspberry PI 2 Model B. I'm using pin#01 for the VCC, pin#39 for GND, but I don't know which pin should I use for DATA? Should I enable some GPIO ports to use ...
0
votes
0answers
267 views

How to connect sensor to Raspi via poor man’s a/d converter?

TL/DR: I’m using this and there are things I don’t understand about this circuit. Ultimately I’d like to read data from this sensor, but all I get is gibberish. Please, help. I have set up “poor man’...
0
votes
2answers
630 views

Getting NMEA string from GPS module to your Raspberry PI B+ [duplicate]

I would like to ask if it possible to get NMEA code/string from a GPS module that connected to one of the GPIO of a Raspberry?
0
votes
1answer
1k views

What GPIO pins are required to Power RPi? [duplicate]

We are using Raspberry Pi Model B: We used USB connector from PC - confirmed output - 5V, with 2 leads: Connected +5V to Pin 2 Connected GND to Pin 6 on connector - Inserted Ethernet cable ...
0
votes
2answers
433 views

PIR Module False Positivesq

All I am working with a PIR Module and a camera for a project to provide text messaging when motion is detected as well as taking a picture. I am seeing a large number of false positives from the PIR. ...
0
votes
1answer
172 views

Momentary Switch Auto Activating Pull Up Resisitor

My setup is like so: A Raspberry Pi B+ acting as an airplay audio receiver using shairport. The Pi connects to a 100V line Amp which feeds the audio out to several installed ceiling speakers around ...
0
votes
2answers
534 views

Raspberry pi 12v relay

I have bought this relay: https://rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.ebay.co.uk%2Fulk%2Fitm%2F262722739443 In the '1 channel 12v relay' variety I am going to be using it to power ...
0
votes
0answers
36 views

SDA/SCL values of accelerator VALUES get affected when I use other pins

Essentially the SDA/SCL reads the I2C values of the accelerometer perfectly fine when no other pin on the pi is active. I have connected 4 drone propellers and whenever I give thrust to them by ...
0
votes
1answer
246 views

Raspberry get stuck after some days of working

I've read a lot of post dealing with raspberry boot problems. My case is slightly different. I've bought a raspberry pi some months ago, just for trying it and learn a little bit of python, I've ...
0
votes
2answers
4k views

Is 3V3 of Pi enough to power 5V relay

First of all I am asking this question out of curiosity, I have no knowledge of electrical devices other than understanding of few terms that I learned in school. I am planning to work on home ...
0
votes
1answer
107 views

What pins to close a circuit [closed]

I'm using a Raspberry Pi 3B. What is the easiest way to make and break a single connection under program control - just like touching two wires together?
0
votes
0answers
50 views

Is it possible to plug in and out sensors, LED-s etc. on the breadboard while the Raspberry is running?

What I would like to do, is to let the Raspberry Pi run and while it is running, connect and disconnect eg. sensors whenever I please to/from the breadboard WITHOUT turning off/disconnecting the Pi ...
0
votes
1answer
493 views

Pi works, GPIO part will not cooperate

I bought the Canakit, which comes with all the necessities: breadboard the T-Shaped GPIO to Breadboard Interface Board Wires LEDs and other useful things. As soon as I opened my kit, I immediately ...
0
votes
0answers
810 views

Simple Buttons with GPIO, not working

I' following this tutorial to have two buttons working with my Pi. The code I have is the same: import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(23, GPIO.IN, pull_up_down = GPIO.PUD_DOWN) ...
0
votes
2answers
3k views

ZFM-60 fingerprint reader via GPIO

I'm trying to connect a ZFM-60 fingerprint scanner (https://aliexpress.com/item/Free-Shipping-USB-Fingerprint-Sensor-Support-Android-Windows-System-Optical-Fingerprint-Reader-Sensor/32475559052.html?...
0
votes
2answers
1k views

can I connect 5v to GPIO pin on startup?

I have a bunch of stuff set up on my pi (RPI 3 for the record), but one of the things I want to run is an RGB LED which is common anode. I have successfully gotten it working by connecting the common ...
0
votes
0answers
306 views

minimal delay on waking monitor via GPIO/HDMI-CEC

I'm planning on creating a "Magic Mirror". I have already got the UI running to my likings and my Pi-zero is on its way. My concern is that having the mirror powered on 24/7, is not really eco-...
0
votes
1answer
748 views

Try & Except fail to catch OSError

I'm trying to check if remote machine (RaspberryPi) runs pigpiod- a daemon needed down the road to control its GPIO, using Python. if remote/ machine does not run pigpiod an error is displayed : >...
0
votes
1answer
107 views

Digital signal calibration

#!/usr/bin/python import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) while True: val = 17 GPIO.setup(val,GPIO.IN) val1 = val * 1200000/255 print val1 GPIO.cleanup() A serial monitor (...
0
votes
2answers
12k 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 ...
0
votes
3answers
407 views

Powering an element that draws more current/voltage than GPIO can supply?

I'm a little over my head here and I'm hoping someone might be able to help. I'm trying to control this Heating Pad using Raspberry Pi GPIO pins, turning it on and off via GPIO. It takes 5V DC and ...
0
votes
1answer
1k views

Problems triggering via GPIO

I am building a network of Raspberry Pis, and want a lot of Raspberrys to take a picture after receiving a Trigger Signal. I want to send this Trigger Signal via a GPIO Pin. It sounds simple, and I ...
0
votes
1answer
1k views

Safe to solder directly onto Pi GPIO pins?

I just purchased an Adafruit 2.2" PiTFT screen with the intent of fitting it inside an official Raspberry Pi case. If fits pretty well just resting directly onto the GPIO pins (without the supplied ...
0
votes
1answer
5k views

Trying to use PiGRRL 2.0 Custom Gamepad PCB but there's no documentation on how to program the buttons

I have this gamepad PCB from Adafruit: https://www.adafruit.com/products/3015 In their guide it's supposed to work with the file they give you but that image only works on raspberry pi 2 and I'm ...
0
votes
1answer
134 views

enable software i2c on raspberry pi gpio

I am trying to interface more than one sensor with Raspberry Pi Zero W, which communicate using i2c interface. So far I am able to connect sensor to dedicated i2c and read the data. Want to know ...
0
votes
1answer
435 views

Raspberry pi 3B+ won't boot, solid red light

My Pi won't boot, I was coding my Pi when my friend came and wanted to see a movie from the Pi, I shut it down normally and close the power supply, then changed the SD card that had kodi on and tried ...
0
votes
4answers
345 views

How to resolve “RuntimeError: Unable to export GPIO. Try to run as root!”?

I have interfaced a push button switch and LEDs to GPIO. Whenever I try to execute the script from command line, the code python /home/myPi/myProject/run.py gives me the error RuntimeError: ...
0
votes
1answer
1k views

How to address gpio pins

I'm kind of new to raspberry pi, and I saw a tutorial about making a LED blink. The LED was connected to pin 17, but the tutorial said pin 11. I connected the LED to pin 17, and in the terminal I ...
0
votes
1answer
19k views

Reading pin state whether it's input or output using Python's RPi.GPIO

Is it possible to read the pin state (1 or 0) whether it's set as output or input without setting this with RPi.GPIO.setup (pin, GPIO.IN/GPIO.OUT)? I mean, I can do this via this command: gpio read ...
-1
votes
2answers
98 views

I don't know where to start [closed]

I am completely new to Raspberry Pi and have started from basically no knowledge. My end goal is to make a synth or drum machine. My problem is that I attempt to start learning something like how to ...
-1
votes
2answers
2k views

GPIO pin LOW not LOW enough (aka how to ZERO the tension on a low pin?)

This question was asked before here, but there was no answer 1 year ago. I'm facing the same issue: I'm switching the same 5V relay (SONGLE SRD-05VDC-SL-C) using a GPIO on HIGH and this works, but ...

1 3 4 5 6 7