Stack Exchange Network

Stack Exchange network consists of 175 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.

5
votes
0answers
107 views

Raspberry as I2C Slave, how to slow down transfer rate?

I have had minor success using the PIGPIO library and interfacing the Pi as an I2C Slave (Using GPIO Pins 18 and 19 as SDA and SCL) with a Campbell CR1000X Datalogger I am encountering a problem ...
3
votes
0answers
93 views

Is it possible to virtually trigger a GPIO Input pin when nothing is actually connected to it?

I am trying to use incoming MIDI data on my Raspberry Pi 3's USB port to virtually trigger an input GPIO pin. The reason for this is as follows: I'm using the MIDI out port on a Behringer X-32 audio ...
3
votes
0answers
642 views

Can I control GPIO Pins when using Android on the Pi 3?

I want to install Android on my Raspberry Pi for implementing a GUI app, which is easy to create using Android Studio. But now I am confused about how to control the GPIO pins on the Pi 3 to turn on ...
3
votes
0answers
760 views

Not getting a response from a connected PIR sensor

I have a PIR sensor which I'm using connected to a Raspberry Pi 3 Model B as part of a Magic Mirror project. I'm running this module for the sensor. I've had the Motion Sensor working before, but now ...
3
votes
0answers
1k views

Which GPIO pins are used for I2S audio I/O

I am trying to set up the ADAU1781 as an audio codec for the Pi 3 B, communicating with the Pi via the GPIO pins. Which pins would I use for I2S audio input and output? I have been doing a lot of ...
3
votes
0answers
529 views

DS18B20 temperature sensor not found in folder

I've bought the camjam edukit 2 for my pi which includes the DS18B20 temperature sensor. However, after going over the instructions 20 times, rebuilding it a same amount and searching online, I still ...
3
votes
0answers
3k views

GPIO23 (BCM) is busy when using /sys/class/gpio but I am able to use wiringPi pin 4 (GPIO23)

I'm having a bit of trouble accessing GPIO23 using /sys/class/gpio/. To clarify a few terms (according to the table on this page): Header pin 16 is BCM GPIO 23, which is wiringPi pin 4. Header pin 11 ...
2
votes
0answers
20 views

SPI NOR Flash: Unstable reads

So I hooked up an Winbond 25Q256JVEQ to my Raspi3 via SPI (spi0.0) and want to read its content. I use the jedec-nor-spi dtoverlay so its available as MTD. However when I want to read the chips ...
2
votes
0answers
32 views

Issues with Sequent Microsystems 8 relay board

I'm using the Raspberry Pi 3 Model B V1.2, and the Sequent Microsystems 8 Relay Board 2.0. The manual tells you to install this software from github. I installed this and was able to control the ...
2
votes
0answers
65 views

GPIO reading high (because its an input) at boot

I am making a thermostat and one of the issues I have with the pi is that on restart it sets all its pins to input which will provide power to devices, in this case a relay being used to switch on and ...
2
votes
0answers
605 views

How to properly trigger multiple Raspberry Pi camera modules via GPIO?

I am working with three Raspberry Pi 3 B boards, which in turns have RPi camera modules V2 connected to each. I followed this very detailed post about triggering another Pi using GPIO pins and it ...
2
votes
0answers
125 views

Simulating electrical inputs to an Arduino and Raspberry Pi

I have an Arduino-Raspberry Pi system, with many sensors attached, that I want to try to virtually test (without either physical device) on Travis CI. Are there any extant tools capable of simulating ...
2
votes
0answers
242 views

GPIO Edge detect setup on 3 pins, when one changes all callbacks are called

I have a PI setup with 3 sensors (reed switches) and 2 "outputs" to a relay. They are on pins (8, 10, 12) I have pin 3 setup to drive the first relay and pin 5 setup to drive the second relay. I ...
2
votes
0answers
155 views

Driving a HC-SR04 requires a 10 microsecond pulse, Java does 14. Any success stories?

I'm working on Android Things on an rpi3 dev kit, with the IMHO excellent Picon Zero hat. I'm trying to trigger and read the reply from a HC-SR04, which requires a ~10 μS trigger pulse, then ...
2
votes
0answers
146 views

Best Way To Power Raspberry Pi Zero and External 4.5 - 36v Circuit

I am creating a drone where I have a Raspberry Pi Zero, and a Motozero. I need to supply the Motozero with power from 4.5 to 36 volts as well as the Raspberry Pi Zero. What is the best way to do ...
2
votes
0answers
628 views

Accessing pwm module without root permissions

I am trying to use the hardware PWM module on my pi 3 by writing to the /sys/class/pwm/pwmchip0 directory (which I think is just a symbolic link to sys/devices/platform/soc/3f20c000.pwm/pwm/pwmchip0). ...
2
votes
0answers
209 views

multiple DS18S20 temp sensors without using 1wire

Can anyone tell me if it is possible to connect the multiple DS18S20 sensors to different GPIO ports and pull the temperature on different ports, as opposed to a single wire option where I can only ...
2
votes
0answers
556 views

Unable to change GPIO voltage

I have a Raspberry Pi 3 Model B, running Raspbian. I am using the GPIO pins for a project using PWM to controller a piezoelectric speaker. Everything seemed to be working fine, until earlier today ...
2
votes
0answers
384 views

GPIO problem. RPIO terminal issue

If I run gpio readall, everything works fine and I see all GPIOs. Terminal: rpio -i 7 Result: root@raspberrypi:/home/pi# rpio -i 7 Traceback (most recent call last): File "/usr/local/bin/rpio", ...
2
votes
0answers
1k views

Controlling 3 axis brushless gimbal motors

I am new to using the Raspberry Pi 3 and trying to control brushless gimbal motors with encoders to "look around" Using I2C, I have gotten them to read its orientation from BaseCam's Simple BGC GUI. (...
2
votes
0answers
2k views

pilight send raw code [433MHz]

I have set up a 433Mhz receiver and sender at my raspberry pi using pilight in order to remote control a power socket (Flamingo FA500S). Unfortunately, this one is self-learning and therefore not ...
2
votes
0answers
336 views

Can't Set/reset GPIO pins using nodejs, why?

I'm using Raspberry Pi model B Type 2 with ARM6 and Type 3 with ARM7. I have tested this code several times and after a week, when I tried, it is not working. Below is my node js program: var ...
2
votes
0answers
486 views

LED strip PWM on GPIO18 + mono audio output

On the RPi 3 I would like to control a WS2811 LED strip with PWM (GPIO18) by keeping the audio working. It looks like for the RPi Zero (I'm unsure for RPI 3 though) left and right channels of the ...
2
votes
0answers
900 views

RPi Zero WiFi and USB OTG

I'm quite new to this kind of things, but I've jumped out with an idea of a device to give the ability to mount network shares as they where normal pendrives (like for TVs and other old devices). I ...
2
votes
0answers
515 views

How to Set Up Driver Support for I2S Audio Codec

I am building a I2S audio codec using an ADAU1781 chip, which will communicate with the Pi via the GPIO pins. In my research I have found that there is an ASoC driver built into the Raspberry Pi ...
2
votes
0answers
433 views

How to connect a servo feedback potentiometer?

I've taken apart an old RC car and have been trying to get my Raspberry Pi to run the car. At this point, I'm able to control the rear drive motor. The motor is connected to a L298N H-Bridge module. ...
2
votes
0answers
398 views

Raspberry Pi Robotics: How to follow line?

I'm making a raspberry pi robot in Python and it moves, but it does not follow the line and I am using an infrared line sensor. I think that I have done everything properly. Here are some results by ...
2
votes
0answers
129 views

High frequency data reading from Raspberry

Is it possible to organize the reading of data from GPIO with high and precise frequency (up to 200 kHz) in win10 IoT?
2
votes
0answers
340 views

Watch for GPIO button while running a timer

I've built to build a timer that shows the content in a 16x2 LCD. So far so good. Now, what I want to achieve is that when I push a button, pause the timer. I'm using ruby, with the library rpi_gpio ...
2
votes
0answers
137 views

Raspberry Pi GPRS Connection: Unable to browse after ppp connection is established

I have a persistent problem browsing after connecting my GPRS/GSM Module to Raspberry Pi. I bought the GSM/GPRS Module on amazon here. I have followed the instructions as given on this site https://...
2
votes
0answers
256 views

Getting current servo angle with GPIO

Without using Occidentalis (which might not even work that way), is there any way to get the current angle of a servo? I know it has a potentiometer, I just have no idea how to go about getting that ...
2
votes
0answers
422 views

interrupts gpio debounce java

My current code does not debounce the input signals from a hardware switch and as a result I get multiple input signals from a single push of the switch. Maybe I'm thinking wrong but I thought that ...
2
votes
0answers
800 views

How can I make the ITEAD PN532 work on the R-Pi via UART?

I have used the Adafruit PN532 before on the R-Pi (A and B+) via UART and it works just fine but I haven’t been able to make it work for the ITEAD. The ITEAD supports I2C, SPI and UART. On this link, ...
2
votes
0answers
767 views

Pluging an Adafruit touchscreen on a HifiBerry DAC+

I'm trying to connect a Adafruit PiTFT 2.8" TFT 320x240+ touchscreen and a HifiBerry DAC+ on a Raspberry Pi 2 B. Is it possible? Do I need to solder the touchscreen card on the DAC+?
2
votes
0answers
626 views

Specify interrupt in devicetree overlay

I have created a devicetree overlay to add an MRF24J40 transceiver to Raspberry Pi. The interface of the transceiver is SPI and an interrupt request. After some trouble the device finally appears in ...
2
votes
0answers
701 views

Keep state of GPIO pin

I've been following a guide for implementing GPIO pin control via a web interface running on my PI. The guide uses quick2wire-gpio-admin for controlling the GPIO pins and for serving the web page (my ...
2
votes
0answers
343 views

Led - Manual control of WS2801 chip

I'm wondering if there's a way to manually control a multicolour LED strip powered by a WS2801 chip, i.e. being able to type a bash command from raspbian or any kind of software control, something of ...
2
votes
0answers
2k views

Assembly - set gpio as input

I have 2 leds and one button. both green and yellow led off when booting from card. When the button is pressed, i want to turn green led off and yellow led on. However, I have to write assembly. I ...
2
votes
0answers
3k views

Daisy Chaining MCP23017 & Addressing

I'm looking to daisy chain multiple MCP23017 chips (upward of 10) to essentially give me more IO to play with from my Pi. I've started to work on the circuit diagram, but I'm really lost with all ...
2
votes
0answers
682 views

Raspberry pi and Arduino mini 05 connection

First of, I consider myself a real newbie when it comes to electronics and have my base knowledge in high level programing. So please have that in consideration in your answers. I have a raspberry pi ...
2
votes
0answers
4k views

HTML Button onclick function()

I would like to seek help on my Web Control Interface - LED On and OFF button REST API. I just started node.js two weeks ago and manage to created a basic REST API. It manage to display mySQL database ...
2
votes
0answers
118 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, ...
2
votes
0answers
1k views

Unable to control 5V LED strips

Using this addressable LED strip: WS2801 Led Full Color character string matrix screen point source 12mm 5V WS2801 IC Chip, Addressable Color, need for controller. Identify IC every led light, Red- ...
1
vote
0answers
29 views

Getting button click type

I've been looking for a while to how to get the kind of click of a button on GPIO. Is it a single click? Double? Triple or more? Is it a long click? a very long click? a combination of them? I haven'...
1
vote
0answers
29 views

RFSniffer and Transmitter program for 434 mhz receiver and transmitter

In the past, I have successfully build a solution to control my etekcity smart plugs working on 433 mhz using the RFSniffer and transmitter ( RFOutlet ) etc. programs. Currently i am trying to ...
1
vote
0answers
26 views

Issue with controlling GPIO via Flask web app

I am currently building a project in which I am using a Flask web app to control various different components with the pi's GPIO. The issue i am currently having is stopping the execution of code that ...
1
vote
0answers
39 views

RF 433Mhz reciever not finding remotes

I'm having some trouble with my 433Mhz receiver on my pi. I first tried to read the signal my Nexa PET-910 and 433Mhz doorbell sent on the pi, but I could not get any usable data, just noise, or no ...
1
vote
0answers
20 views

Can we use LCD GPIO screens with other non-GPIO devices?

I have a LCD screen with only GPIO connector. But I'd like to use this screen also on other devices, such as DSLR camera. Is it possible to connect a GPIO device, via GPIO port to other devices that ...
1
vote
0answers
58 views

Interrupts with MCP23017 using the mcp23017 dtoverlay

I'm at my wits end with this one. Okay, so we've got an MCP23017 with its INTA wired to the Pi gpio12 (bcm) in /boot/config.txt dtoverlay=mcp23017,addr=0x20,gpiopin=12 so far so good. I'm looking ...
1
vote
0answers
64 views

GPIO in /sys/class/leds/

I am doing a project with Raspberry Pi and OpenWrt. I need to attach indicator LEDs. Basically, I need to modify the DTS for bcm2710 and add additional GPIOs in the led section such that it gets ...