Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [pi-gpio]

For general questions about the GPIO pins, do not use this tag; use [gpio]. This tag is for the npm (node.js package manager) module for controlling the GPIO pins on the Pi using JavaScript. It is unrelated to the pigpio C/Python library.

Filter by
Sorted by
Tagged with
7
votes
5answers
52k views

How to connect a graphic card to Raspberry pi?

I want a way to connect a graphic card like nvidia or amd to raspberry pi do you think has a way to do that?
6
votes
2answers
318 views

Creating jumper leads from ethernet cables - connect multiple components

I've bought some crimpers and a dupont connection kit and I'm planning on reusing some old cat5 ethernet cables I have. Is it reasonable to connect two devices to the RPi via the 8 wires in the cat5 ...
5
votes
2answers
8k views

GPIO - RuntimeWarning: This channel already in use, continuing anyway

I was trying to run a motor using the Pi. It was working fine before when I was executing using a Python script. Later I installed WiringPi and tried to execute the GPIO using shell script and it ...
3
votes
1answer
6k views

Switching a Circuit on/off with a MOSFET

I have have a simple circuit that I want to drive with a raspberry pi GPIO pin and I want to use a MOSFET to control the circuit. My circuit will be using about 3-5v and 2-3a. I'm planning on using ...
3
votes
0answers
480 views

pi-gpio does not turn on/off the pin

I installed the HAP-NodeJS and I am using the Light_accessory.js to control a light. I Also installed pi-gpio and when the server is running I see that the state changes from 0-1 and vise versa. The ...
2
votes
1answer
538 views

pigpio PWM and ALSA

My Qt ( C++ ) application successfully dims the screen using the pigpio library on my Raspberry Pi compute module. It works great and is very stable using the code below. The problem, is that my ...
2
votes
1answer
2k views

GPIO doesn't work, error: “Error when trying to open pin 11”

I connected a LED to pin 11 as per this guide. And this works in the terminal to turn it on and off: gpio mode 0 out gpio write 0 1 gpio write 0 0 But when I try to use pi-gpio, with this code as ...
1
vote
2answers
517 views

Is there any way to control Raspberry Pi GPIO pins without Webiopi?

I want to control my Raspberry Pi GPIO pins over internet, but as I searched for answers I found Webiopi. I don't like Webiopi, so I am searching for any other way to control the pins with Python. ...
1
vote
2answers
2k views

Use GPIO to trigger button press in software

I have a ceiling fan remote that I want to control using the Raspberry Pi. Instead of sending RF signals or buying a Wi-Fi wall switch to do any of this, I'd like to use an existing RF remote and ...
1
vote
2answers
5k views

Will 3.3v gpio work for a fan without hurting the pi?

Will it hurt the pi if I run a fan on the 3.3v gpio? I have a hdmi lcd screen on mine and I don't want to use the usb ports for a fan. I have a raspberry pi 3 by the way
1
vote
1answer
589 views

Using the ds18b20, why are you limited on pins you can use? GPIO4 only one that seems to work [closed]

This is in reference to this thread where they are all using GPIO4. I've got A0 of an arduino going into an arduino nano (using firmata) and then into GPIO4 since it appears to be the only pin that'...
1
vote
2answers
1k views

Can I use a transistor as a relay with the Pi?

I want to build an electric circuit which has to have a power of nine volts. Can I use a circuit like this, without breaking the Pi? Or is there a better solution?
1
vote
3answers
556 views

Control GPIO from outside home network without port forward

At first I do not want to do port forwarding to access my PI, what I want is that the PI would access a website where it would send the GPIO status and also will read the "new" values that must be set,...
1
vote
0answers
1k views

Cannot get pigpio PWM to work with an AC dimmer module

I am using an AC dimmer module to dim a 240V light. I would like to use node.js so I am using the pigpio module. The script is not working as expected as the light bulb goes straight to 100% when I ...
0
votes
1answer
833 views

Get export state of GPIO pin (pi-gpio)

I'd like to get the current export state (output / input) of a GPIO pin on a RaspberryPi using JavaScript. Due to the fact that I've a low-active relay, which is activated in the second I export out ...
0
votes
1answer
408 views

Strange return from pigpio i2c_read_device

I am using an air quality sensor with an I2C interface (datasheet: https://docs-emea.rs-online.com/webdocs/14cd/0900766b814cdbb8.pdf). When running the below code asking for less than 8 bytes I get ...
0
votes
1answer
81 views

How can i listen to input in very precise manner of microseconds. Like piscope. Using pigpio socket interface, pigs or liberary

I want to get time and count of input pulse in microseconds using pigpio. How can i Listen to gpio pin in spreate thread.
-2
votes
1answer
341 views

Input Voltage Threshold of Raspberry pi

I am a beginner in physical computing and accidentally gave my Pi 5volts and my Rasbperry Pi shut down (I'm really worried it's becoming more damaged overtime if I keep on doing this), because I was ...