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
0
votes
0answers
27 views

GPIO PWM. ESCs still run different after calibration

I’m putting a quadcopter together. I’m using a python script to calibrate the ESCs... they beep like a blinking led when I give them power. Then I run the calibrate script and they give me the proper ...
0
votes
0answers
23 views

HC-SR04 Ultrasonic Rangefinder readings are way off

So im trying to make my Robot move by itself and then make a turn until the path is clear using the HC-SR04 Ultrasonic Rangefinder, but my problem is that my readings are off with a large margin, ...
1
vote
1answer
35 views

Simulate raspberry pi GPIO

Is there a software to simulate Raspberry Pi hardware design such as proteus? I would like : To use a raspberry pi as a virtual component, Do all the wiring, simulate, Simulate, test code, Check for ...
0
votes
0answers
18 views

Clamp on DC Ammeter with Raspberry Pi to Monitor 12v Batteries

We are looking to use raspberry pis to monitor banks of 12v batteries in a real world environment. We currently are able to use a USB voltmeter from : http://www.digital-measure.com/html/...
1
vote
1answer
44 views

Does a battery pack exists which does not need the microUsb power connection? [closed]

I'm building a small robotic car, which obviously needs battery power for it and the RPi. I've no problem with the battery pack for the car since it fits neatly into the chassis, but the RPi microUsb ...
-2
votes
0answers
25 views

5us 200Hz signal creation

someone know what is raspberry pi PWM temporal resolution? i want to create a 5us 200Hz pulse sync signal in raspberry pi, is it possible? thanks
-1
votes
0answers
18 views

Not sure if my Dragino is configured correctly to my RPi 3B

I'm trying to configure my Dragino Lora/GPS Hat, but I'm not sure if it's configured correctly based on the RPi 3 B pinout. As is, it's receiving packets but I'm not sure from where. Here's the gpio ...
0
votes
1answer
32 views

How to connect Relay module to Raspberry Pi

I have a relay module exactly like the one on the next page : https://microcontrollershop.com/product_info.php?products_id=5919 I wanted to consult you about the correct way to use it. I connected ...
0
votes
0answers
21 views

EMMC alternative for Raspberry Pi with identical 40-pins layout and definition [closed]

I am trying to drive RGB LED Panels using https://github.com/hzeller/rpi-rgb-led-matrix. I made it work with a Raspberry Pi Zero, but the board is very, very slow and on top of that the microSD is ...
0
votes
1answer
33 views

How to remap pins?

I would like to learn how to remap the GPIOs on the Raspberry Pi Zero. How to make Physical Pin 11 to act like something else ?
0
votes
1answer
34 views

GPIO pin numbers for gpiozero class

So im trying to learn robotics with raspberrypi and I am following two different guides where I chose the wiring from one guide and the code from the other guide. My left motor is working but the ...
1
vote
1answer
21 views

Using Both +5V GPIO Pins for More Current?

According to this website: https://pinout.xyz/pinout/pin2_5v_power# The +5V GPIO pins can push up to 1.5A of current, and are attached directly to the Pi's power supply. My question is, if I use ...
0
votes
1answer
20 views

Power external op-amp using GPIO 5v and GND pin

Maybe a very simple question, is it safe to connect an external op-amps Vs+ and Vs- to the GPIO pins for 5V and GND respectively? I have read shorting these pins may cause fuses to break in the Pi. ...
0
votes
0answers
26 views

GPIO Pins not changing in mono c#

I am trying to read a pin on my Pi 3 model B+. It runs on raspbian, the application is programed in C# and I use mono to run it. I'm using the RaspberryPiDotNet library, which I compiled in windows ...
0
votes
0answers
19 views

pi4j opposite state in java, normal in python

I have a Raspberry Pi 3B+ and switches (jqc3f-05vdc-c). When I run simple program on python like this: [...] GPIO.setup(18, GPIO.OUT) GPIO.output(18, 0) [...] my sweatch is off, on when i set GPIO....
0
votes
1answer
19 views

GPIO input output pins behaviour

As I am new to the Raspberry Pi my question may look simple to people My code is : import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(7, GPIO.OUT) print (GPIO.input(7)) while(True): ...
2
votes
1answer
31 views

Whole control the green led on RPI 3B+

I would like to learn gpio control on raspberry pi, and now I have a RPI 3B+ I found that the greed led is GPIO29 I think it will work to set the green led on or off by gpio, but at the same time, ...
1
vote
2answers
210 views

Is the 3.5mm audio jack tied to a GPIO pin?

I have a Raspberry Pi 2 B+ and I would like to confirm that the 3.5mm jack isn't tied to a GPIO pin. I could not find any information on this and thought this may be the case but I wanted to double ...
0
votes
0answers
23 views

PiGPIO inconsistent when using servo

so I will do the following command once and it will work and then the same sequence of commands never works again. Any help is appreciated, thanks! The commands are to first arm some ESCs then ...
0
votes
1answer
54 views

Is it possible to programmatically change GPIO pins voltage?

I recently bought RPi 4 equipped with fan which I connected to GPIO pins 4 and 6. It's not so quiet so I want to write simple app which will be checking temperature each 5 or 10 seconds and adjust ...
1
vote
2answers
36 views

How can I require root privileges for invoking 'gpio' from WiringPi?

I removed my user from the gpio group, logged out and back in. I can still run e.g. gpio write 25 1. I see from this answer how the memory mapping and permissions changed between Jessie and Stretch, ...
0
votes
1answer
23 views

Is my ClusterHat faulty or my RPi GPIO fried?

I've been using a ClusterHat (1RPi + 4 PiZeroes) and all has been well until recently. The PiZeros boot off the RPi's SD card using the ClusterHAT-2018-10-09-lite-1-usbboot boot image, and when I ...
0
votes
0answers
19 views

Why does GPIO state for pin 7 and 8 reverts on pin 10 and 12

I have a Raspberry PI 3 model B. I have 3 LEDs connected to the GPIO. They are on pin 7, 8, and 10. I use the rpi_gpio Ruby gem to control the LEDs. When I set 10 to high it lights up the LED ...
0
votes
0answers
33 views

Is there a way to loop through GPIO pins and a database in python

I have built a set of musical stairs using raspberry pi, motion sensors and python, and a web app to change the instrument using PHP. The python connects to a mysql database storing the instrument ...
1
vote
2answers
29 views

do RPi3 3.3/5V pins output constant voltage even if the RPi power supply is changing voltage?

I want to power my RPi with a lithium ion battery. The RPi will be powering some devices which require constant voltage to power them. If I use a battery as supply for the RPi (which changes as it ...
1
vote
0answers
17 views

Python, pygame.mixer, wait for track to end

A little stuck on the last part of this code. I want a random track to play until the end when a switch is switched. I would like the track to play no matter how many times the switch is switched ...
0
votes
0answers
23 views

Interrupt triggers without button pressed what can i do?

I have two buttons: a red and a green one and i want to measure how often each one gets pressed and i want to write into a csv file. The problem is even without me pressing the buttons the pi gets ...
-2
votes
0answers
25 views

Remotely controlling a raspberry pi gpio [duplicate]

I have developed a simple web application on Django framework which I plan to host on PythonAnywhere. My idea is to display the web application on the Pi browser and once the user interfaces it, I ...
-2
votes
2answers
59 views

Runtime warning: This channel is already in use, continuing anyway [duplicate]

I'm trying to fix this code for a robot with multiple sensors. The values of TRIG and ECHO are input through another part of the code. Set this at the beginning of the code def init(): GPIO....
0
votes
0answers
74 views

raspberry pi 4 New uart configuration

New raspberry pi 4 has uart on gpio 12 and 13 under ALT4. how could a character device /dev/ttyS5 be created out of it? Thanks
0
votes
0answers
28 views

Remotely controlling the GPIO of Raspberry Pi from a Django application

I am new to RPi and Django so please excuse me if my question is silly. I have developed a simple shopping application on Django which I plan to host on PythonAnywhere or any other hosting provider. ...
1
vote
1answer
65 views

Learning the 433Mhz signal of a remote car starter

I recently discovered that my remote car starter (Excalibur brand, with FCC ID L2M111) uses 433.92 Mhz RF to transmit the signal to start my car, so I thought I could learn the code and start my car ...
1
vote
0answers
21 views

Can i play a wav file with sample rate 250Khz in my pi 3b+?

I had a wav file which sample rate is 250Khz, how can i play it in my raspberry pi 3b+, and is there any method to output it as PWM form with GPIO. Thanks.
0
votes
1answer
60 views

GPIO pins set to output on boot after apt-get update+upgrade

I recently got a CrowPi kit w/ Pi 3B+ to mess around with and eventually pull the Pi out and use in another project. I did a sudo apt-get update and sudo apt-get upgrade today seeing as a good number ...
0
votes
1answer
64 views

What pins to close a circuit [closed]

Looking to close a circuit momentarily, One second or less. No power required at all. Read multiple answers here, but they all seem to wander from the requirements. Basically I need to short 2 pins to ...
0
votes
1answer
24 views

Pigpio on callback get value

I currently have some code that I found that constantly outputs a value from a digital caliper. However, I want to modify this so that it is inside a function that can return that is returned from ...
1
vote
1answer
46 views

Can you directly connect two Rasberry Pis via GPIO?

My usecase is as such - I've got 2 RasPi Zeros, one of which is acting as an input for a USB device. I'd then want to forward some data via GPIO to the second one, which acts as a USB device connected ...
2
votes
2answers
1k views

Using 5v device on 3.3v

I got a flowmeter that is operating at 5v (basically an enclosed hall effect sensor and magnet). It needs a pullup resistor of between 1.6k - 2.2k between sig and vcc. ( https://www.conrad.com/p/bio-...
1
vote
3answers
35 views

Can I safely add a switch between a fan connected to power/ground?

I've just got a small 5V fan for my Pi, but it is very loud, and I'd like to be able to switch it on/off. Currently, the fan is just wired to 5V power and ground. I know that I can use the GPIO pins ...
2
votes
0answers
45 views

How to play a 16-bit WAV in raspberry pi 3 b+ with PWM?

I have a 16-bit WAV file, the header of the file as below: WAV header Information: RIFF : RIFF Chunk Size : 5719002 Format : WAVE Sub-Chunk 1 Information: Sub-Chunk 1 ID : ...
2
votes
2answers
456 views

GPIO and Python - GPIO.output() not working

I want to program a simple thermostat, but for some reason the commands GPIO.output(21, 1) or GPIO.output(21, 0) do not change anything. In a similar vein, GPIO.setup(20, GPIO.OUT, initial=0) does ...
3
votes
1answer
249 views

What's the difference between soft PWM and PWM

What's the difference between soft pwm and pwm(maybe hardware pwm) in raspberry 3 b+. From the pinout (https://pinout.xyz), it seam that there are only 2 pwm pin, pin 32 for pwm0 and 33 for pwm1. But ...
0
votes
1answer
92 views

Is default pwm frequency 19.2Mhz in raspberry 3+?

But when i set clock to 1920 and range 200, I got the frequency 5KHz rather than 50HZ from oscilloscope, does anyone explain that, what's the problem. Thanks my code as below: #include<stdio.h>...
1
vote
0answers
40 views

FM Radio with HifiBerry Amp2

Is there a way of running a Raspberry Pi 3 with a mounted HifiBerry Amp2 together with an FM Radio Module e.g. TEA5767 FM Radio Breakout Board? Currently I set up my RPI to run Mopidy and Spotify ...
2
votes
1answer
37 views

How to implement the push button example using rpio?

Background I am trying to learn how to use the rpio library (https://github.com/jperkin/node-rpio) in my nodejs application. What do I want to do So far I have been able to test the blink led ...
2
votes
1answer
30 views

Can I connect RaspberryPi GPIO to Nintendo DS Buttons?

I was wondering if I can connect a Raspberry Pi to the buttons of a Nintendo DS. I have seen something similar on Youtube for the Switch controller. My goal is to control the buttons using a Raspberry ...
1
vote
1answer
39 views

GPIO generate 38KHz carrier frequency , understand duty cycle

I try to understand how to generate IR carrier frequency with the raspberry and how PWM and NEC work visually. I learn PWM but I cannot find any explication of duty cycle. Ok it's a percentage of HIGH ...
0
votes
0answers
16 views

Gpio state manipulation if subroccess is finished?

I have my raspberry pi 3 running a python script that manipulates some strings and according to that they sometimes pipped to minimodem. How can i be sure that the pipped subprocess is finished so I ...
0
votes
0answers
30 views

Read VW Cluster Adapter Over GPIO

So, i'm trying to develop a new cluster using my Pi. I've built the entire thing using a WiFi OBD-II Adapter & Python. Then I hit a stumpling block, OBD cannot read things like Indicators/Cruise ...
1
vote
2answers
35 views

C Raspberry Pi Zero w, read out button matrix

I have trouble reading out an button matrix with my raspberry pi zero w. I am using pigpio for reading out the gpios, but I don't think this is a software issue. This is my source code: #include &...