Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
362 views

No w1_slave on DS18B20 on Raspberry Pi 3 B+

In any of these cases the red status LED on the sensor lights up. The Sensor DS18B20 is connected to the Raspberry Pi 3 B+ to the 5v on the GPIO pins. Using the 3.3v pin makes the light of the sensor ...
0
votes
2answers
506 views

Python pigpio 'no permission to update GPIO'

I am trying to run the following code on my Raspberry: import pigpio import fileinput pi = pigpio.pi() ### Define constants pwm_range = 255 pwm_clock_div = 8 left_motor_dir_pin = 35 ...
0
votes
1answer
400 views

Differences in GPIO between Raspberry Pi 3 B and 3 B+

Is there any difference in the GPIO layout between Raspberry Pi 3 B and 3 B+? If yes, please provide the differences.
2
votes
2answers
921 views

How fast can GPIO pins toggle?

I'm currently using Python's RPi.GPIO module to toggle some pins, and I want to know how quickly it can do this. I need the pins to be toggled on the schedule of a ~50 mhz FPGA clock, which I'm ...
0
votes
0answers
105 views

RFM69 Radio Transceiver: Arduino is not registering acknowledgement for transmission sent by Raspberry Pi

I am building a system in which an Arduino Uno with an RFM69 radio chip transmits data to a Raspberry Pi running a script in Python. I am using the RFM69 library for both scripts: Arduino: https:/...
0
votes
3answers
51 views

Using special pins as gpio

I would like to use I2C and SPI pins as a gpio on my raspberry pi zero w. To be more clear, BCM 3-5-7-11-13-14 pins on the link [1]. I want to disable I2C1, GPCLK0, SPI0, UART, PWM0. Is it possible ...
1
vote
1answer
460 views

This module can only be run on a Raspberry Pi!

I'm running daemon python file in virtualenv and has a Error: File "rpi_daemon.py", line 5, in <module> import RPIO File "/home/pi/python_virtualenv/local/lib/python2.7/site-packages/...
0
votes
0answers
42 views

Wiring 3 MEMS Mics to a Raspberry Pi Zero

I was following this tutorial to wire 2 MEMS mics to my Raspberry Pi Zero W for stereo recording: Adafruit I2S MEMS Microphone Breakout - Raspberry Pi Wiring & Test After I got this working, I ...
1
vote
1answer
60 views

Connecting an output pin to an input pin

Currently I am using 2 pins, one as output and one as input. The output pin is operating a solenoid circuit. My question is, is it safe to connect the output pin to a input pin even because I want to ...
0
votes
1answer
62 views

Raspberry PI GPIO Extender [closed]

I am trying to control 42 relays with a Raspberry Pi 3 B+. Due hardware limitations, there I cannot do that with the current amount of GPIO pins. I've found some GPIO Expansion Boards online, but I ...
1
vote
0answers
37 views

PHP not executing commands

I have an apache web server installed in my Raspberry Pi. I created an index.php file on the /var/www/html folder. Whenever I access my Pi's IP address on a web browser to control the lights, none of ...
0
votes
0answers
82 views

Is it possible to “convert” from GPIO to usb?

I have an the RFID-RC522 Reader (link) which is connected to my raspberry pi 3 over GPIO. My idea is to build a case for the reader and make the reader portable. This means that I need the plug&...
0
votes
0answers
286 views

Emulate Philips Hue bridge and bulbs with LED strands plugged into GPIO

I just got 2 circuits of RGB LED strands connected and working with my rpi today that I would like to control similar to Philips Hue lights, because of the integration with other IoT devices. The ...
0
votes
0answers
155 views

Connect multiple SPI e-paper devices to a single Pi

So I'm thinking of getting these 2.9" displays: https://www.waveshare.com/wiki/2.9inch_e-Paper_Module#Working_with_Raspberry_Pi they come with an SPI interface that can be connected to the Pi. Is it ...
1
vote
0answers
31 views

Is it possible to use 3.3v pin as usual GPIO for general purposes? [closed]

Need 6 pins one after another, but can't imagine where I can get them. Any ideas?
1
vote
1answer
50 views

GPIO 1 not waking up the board when shorted to ground

I'm trying to use a single button to put the pi in a halt state and then wake it up. I cannot use GPIO3 since I'm using i2c devices as well. However according to this original post https://www....
0
votes
0answers
116 views

Do I need a Bluetooth Dongle on a RaspberryPI 3 B+ to control GPIO pins from iPhone or android devices?

I'm trying to use Bluetooth to control the GPIO pins on my Raspberry Pi 3 B+. I know that my pi has Bluetooth capabilities built into it, but all of the tutorials that I've found online have required ...
0
votes
1answer
153 views

Raspberry Pi AD/DA converter

I am currently working on sensors and I'd like to read the sensor data into my Raspberry Pi. However, I have some difficulties with the Waveshare High-Precision-Board which I'm using. I just don't ...
1
vote
1answer
235 views

Raspberry Pi 3 B+ is not turning on

I've bought Raspberry Pi 3 B+ yesterday and it was working fine for... an hour. After that I accidentally touched the GPIO pins with the heatsink (it wasn't glued so... I accidentally moved it to the ...
0
votes
0answers
193 views

Raspberry Pi Digital Dashboard - Change brightness of display at night

I have created a digital dashboard using a RPi 3B and an official 7" screen. I have found that the screen is OK during the day, but too bright at night. Is there a way to change the brightness of ...
0
votes
1answer
102 views

Raspberry Pi GPIO & Analog Sensors

I am fairly new to Raspberry and Coding/electro-engineering in general but wanna get it done anyways. I've some questions regarding reading data from analog sensors. Background: I got an AD/DA-high-...
0
votes
1answer
174 views

What causes this (strange?) CPU usage on Raspberry Pi 3?

I am running two python scripts from two different terminals like so: python3 one.py and python3 two.py one.py Waits for an input on GPIO 27, and then starts counting in seconds how long the ...
1
vote
1answer
202 views

3B+ won't boot after measuring at GPIOs - red LED on constantly

Today, I've experienced kernel panics every time I'd execute a certain python script. I was a little bit surprised, since I've executed more heavy scripts before, but doing my research, I found out, ...
0
votes
0answers
42 views

Execute “render_template” and keep while loop checking if button was pressed?

I manage to read the button, but my render_template is never executed as the while look is checking the button. How can I solve that problem? @app.route("/") def main(): # For each pin, read the ...
1
vote
0answers
99 views

Raspberry Pi3 should I use multi-threading, interrupts or callbacks?

Project Description I am interfacing industrial PLC's with the Raspberry Pi 3 in order to read the efficiency of the given line, and display live results. In essence I need to do the following things:...
1
vote
1answer
577 views

turn screen on and off with motion sensor

I'm working on a project which will use a PIR motion sensor to turn on a connected HDMI monitor when there's someone in the room, and turn it off when they leave. I'm new to Linux, but not to Python. ...
1
vote
1answer
61 views

RaspberryPi 2 GPIO stopped working

I have RaspberryPI with Arch Linux and everything was going well, until this morning when I tried to do my usual work on it, it sounds like nothing happening at all, I have checked with pintest (I use ...
1
vote
2answers
47 views

How to find out whether GPIO is HIGH (without RPi.GPIO module)

I was wondering if there is a way to find out that a GPIO is under voltage, say - the GPIO is set to HIGH. I need to be able to check this in a linux terminal, using a command or a script that simply ...
1
vote
0answers
37 views

pigpio monitor GPIO not detecting change correctly

I am having trouble detecting a level change on pin 16 (or any other pin). My script is as follows: import RPi.GPIO as GPIO from time import sleep GPIO.setmode(GPIO.BOARD) GPIO.setup(16, GPIO.IN, ...
2
votes
1answer
46 views

fork() Process Issue on Channel Switching via Rotary Encoder

I have KY040 rotary switcher(encoder) as shown below picture. It is the scenario that there are 5 radio stations(simple html url) in urls.txt which are read into stations list in radyoCS.py, at every ...
0
votes
0answers
35 views

RasberryPi Zero W LED does not turn ON

I am new to Rasberry Pi and trying to turn on an LED . I am using PIN BCM 18 as output and using a Python code to run it. Tried both methods using GPIO and gpiozero. But do not see any output. I have ...
0
votes
1answer
88 views

Besides WebIOPi, what can I use to control the GPIO's(http.server library,Flask PHP)?

I used WebIOPi to test (and debugging) the RPi ports, it is easy and hepful. But now I want to create a webpage (as I can use html/css e create a nice modern interface). I don't know how to use ...
0
votes
3answers
45 views

Raspberry Pi 3 breadboard momentary switch not being recognized (using breakout T Cobbler)

Here is an image of what I've been trying to achieve, which is that when the momentary switch is being pressed, it'll print out "Button Pressed" in Python using a little script. The problem is that ...
1
vote
1answer
82 views

Cooling fan causes shutdown

I'm using Raspberry Pi 3 with 5V/2.5A input. I'm going to do heavy work with Rasp (so need to cool CPU). Today I bought 5 V mini fan for my Raspberry and plugged to GPIO pins 4 and 6. While ...
0
votes
0answers
47 views

How to generate a hardware PWM wave for driving an LED through RPIO?

I've looked through the documentation of RPIO, and used GPIO18 to get my PWM up and running. This is my code: from RPIO import PWM servo = PWM.Servo() servo.set_servo(18, 4000) As explained in the ...
0
votes
0answers
91 views

How to control SPI1 gpio port on Android-Things?

Hello Recently, I use Android-Things on Raspberry pi. and I want reader tag on RC522 so, I decided to refer to source in on Git-hub https://github.com/Galarzaa90/android-things-rc522 first I try ...
1
vote
1answer
383 views

What is the mode supposed to be for CE0 and CE1 when SPI is enabled?

I have enabled SPI on my Raspberry Pi 3, and want to know why the mode for physical pins 24 and 26 are set to Mode 'OUT' and not 'ALT0'. According to the documentation here and here the mode of all ...
0
votes
1answer
165 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
2answers
74 views

Raspberry Pi Cluster Pinout [closed]

I need 2 raspberry pi for my project (i'll use all pins on both pi's) and i want to control them with an interface on my laptop (used python tkinter) but i couldn't figured how to use both pi's. Maybe ...
0
votes
1answer
186 views

How to write a single bit on a I2C/smbus register

I have a MCP23017 GPIO expansion chip connected to a Pi via the I2C bus. I want to be able to treat the pins of the chip like the GPIO pins of the PI – turning them on and off individually. ...
0
votes
0answers
123 views

Connecting RAW NAND through GPIO

I'm trying to define a device tree for connecting an external raw NAND using GPIO on RPI3. I found that there are available drivers, and I found an example in the sources' "Documentation" directory ...
0
votes
1answer
99 views

Raspberry Pi Zero W - freezes after switching a relay connected to an AC motor [closed]

I'm working on a home IOT using Rpi to run script that controls opening/ closing window's shade ( switching its electric motor up or down ). 1) Code is very simple and working fine - switching gpio "...
0
votes
2answers
95 views

Why won’t my Raspberry PI 3 work?

I recently got a Raspberry Pi 3 and I’m trying to make a desktop computer with it. but when I got it setup by plugging in the hdmi cable the mouse and the keyboard putting the micro SD card and adding ...
0
votes
0answers
571 views

change baud rate of serial port raspberry pi 3 android

I installed lineage os 14 on raspberry pi 3 I connected a gps module with UART port, however, the baud rate of GPS is 9600 but baud rate of /dev/ttyS0 is 115200 I want to change the baud rate of ttyS0 ...
0
votes
0answers
32 views

PIC programmer circuit fried my Pi, what did I do wrong and how to avoid it if I try again?

I've been trying to build a PIC programmer using the circuit given here, and using this boost converter module to provide the required 12.75v programming voltage. I had built the entire circuit (on ...
0
votes
1answer
75 views

How to get gpio status on an output pin in ruby

I'm using the Pi to control some decorative lights. I turn the lights on and off via cron scripts and would like to get status on the lights as well. When I run the code below, it reports 'on' if ...
0
votes
0answers
30 views

Solve Version Mismatch error in Bindings.js - Raspberrpy GPIO

I've been searching for several hours the source of the problem, but can't seem to find it.. I'd like to use PMW with the "rpio" npm library. Here is what i get back /home/pi/Desktop/gpioTest/...
0
votes
1answer
85 views

WiringPi shiftOut with HCF4094 shift register

I have problems getting the raspi/wiringPi to work with a HCF4094 shift register. I am using the following code part: #include <wiringPi.h> #include <wiringShift.h> #include <iostream&...
0
votes
1answer
38 views

Output current of 1 Pin (New Model)

Quick question. I have the latest Raspberry Pi (Model 3B+) and I just want to know if the output current of the 3.3 V supply has changed as I'm using a T-cobbler at the minute.
0
votes
1answer
127 views

How to wire up a LED Matrix with a Raspberry PI

I'm not sure how to wire up the LED Matrix corrctly. I followed the steps in this guide: https://github.com/hzeller/rpi-rgb-led-matrix/blob/master/wiring.md In this tutorial the matrix has 3 GND pins. ...