Questions tagged [gpio]

GPIO is an acronym for general purpose input/output. The term is typically applied to a pin on a microcontroller (or other device) that may be changed between an input and output under software control. It can be used for an application defined purpose, as opposed to being constrained to a single designated function.

Filter by
Sorted by
Tagged with
0 votes
0 answers
199 views

Running a thermal camera (AMG8833) with an orange/raspberry pi but i2cdetect cannot detect any of the 2 cameras

I have bought 2 AMG8833 thermal cameras from different sellers. I tested both first with an orange pi zero and later with a raspberry pi zero. On the orange pi, I used the following GPIO pins and ...
Confused Learner's user avatar
1 vote
2 answers
1k views

Is ESP32's GPIO25 Pin adc1 or adc2?

I am trying to design a PCB with ESP32 and a Lora module I want to use serial1 for Lora RX/TX communications. I saw a board which is using GPI35 to Lora RX and GPIO25 to Lora TX. But in same time ...
mehmet's user avatar
  • 1,119
0 votes
2 answers
2k views

Why is a resistor needed for the transistor base in this circuit?

I want to use a fan for my raspberry pi and want to switch it on and off. I have found a tutorial online which I want to summarize below: Components: the 5V fan (DC motor in the image) 680Ω resistor ...
SharePointNewbie's user avatar
0 votes
1 answer
304 views

Why wouldn't an SPI SCK pin be a GPIO OUT pin too?

I have an ATtiny261 MCU. The pin diagram shows 2 digital out pins, PA1 and PB1. I've found a need for a 3rd output pin. From my (very) basic understanding of SPI, the clock is triggered on a rising or ...
dvogel's user avatar
  • 121
9 votes
6 answers
4k views

Can I drive a low-voltage MOSFET gate directly from a microcontroller?

We're working on this project for school where "reducing the number of components is essential". We need to operate a little brushed DC motor so we thought of using a simple low-side drive ...
Andrea Toffanin's user avatar
0 votes
0 answers
129 views

Why is my infrared receiver working on my Beaglebone Black but not my Raspberry Pi?

I have a TSOP4438 wired to GPIO pins of a Raspberry Pi Zero W and Beaglebone Black as shown in the diagram: I'm trying to use this to control my Pi with an old Roku remote. I initially tried this ...
Josh's user avatar
  • 1
3 votes
1 answer
464 views

How can I test if a GPIO pin on a microcontroller has been damaged by ESD?

I need to test if a microcontroller's pins are damaged after hitting it with an ESD gun. The microcontroller I'm testing is the STM32H743. The only method I have come up with so far is to just Toggle ...
kh.tf's user avatar
  • 51
0 votes
3 answers
758 views

Driving GPIO outputs with FPGA: How to guarantee outputs of pins are set at same time

I was recently asked a question by an interview. We were discussing a hypothetical device that needed to drive 8 GPIO outputs of the FPGA. I was asked how to reduce the influence of propagation delay ...
Bob John's user avatar
4 votes
5 answers
991 views

Controlling flip/vane clock digits

I've obtained a vane/flip clock which has 4 digits, but the controller is long gone. I plan to control the clock using a Raspberry Pi and the usual relay boards you get for them - I've done something ...
user2878409's user avatar
1 vote
0 answers
193 views

Can I Safely Use Serial1 of ESP32 with GPIOMATRIX?

I am trying to use ESP32 with a Lora module and HMI display in a same project. So I need 2 UARTS. I have connected Lora module (e32 900t20d) to RX2 (GPIO16), TX2 (GPIO17). Also I want to connect my ...
mehmet's user avatar
  • 1,119
0 votes
3 answers
507 views

A few basic questions regarding MCU pins

I'm using a tm4c123g tiva launchpad, but I believe these questions are general. If a pin is set to output, what does it mean to "apply a different voltage on it"? This is followed by ...
Nicholas Humphrey's user avatar
4 votes
3 answers
681 views

EEPROM with GPIO [closed]

Trying for a while now, but I cannot find an EEPROM memory with some address bit mapped to a GPIO. Or from a different angle, a GPIO expander with an EEPROM memory to save the config. Do such devices ...
Łukasz Przeniosło's user avatar
1 vote
2 answers
740 views

Reducing signal voltage with pull-down resistor

I have a signal that is really high compared to the inputs of a microcontroller and i have to step it down a bit.... Can I use a pull down resistor between the signal and the GND? Will this step down ...
user1584421's user avatar
  • 1,359
2 votes
4 answers
288 views

Using a SP3T switch to connect 2 GPIO and the GND pin of an MCU

I tried looking for an answer for several days, but didn't have any success, so I thought I would ask here. I apologize in advance if this was already answered, and that I was not able to find it in ...
Haerezis's user avatar
4 votes
4 answers
979 views

Protecting MCU digital input with 300m wires

I need to protect the inputs and a 3.3V MCU (ESP32) from damage (eg lightning) and noise with a switch connected at the end of a cable that can be hundreds of meters long. Based on the schematic (Fig ...
Richard's user avatar
  • 41
1 vote
2 answers
455 views

Minimum current required to toggle GPIOs on STM32 microcontrollers

While GPIOs on controllers (STM32F and L series with respect to this question) are voltage driven, do they require a small amount of current? If so, what is the minimum amount of current that is ...
Misha's user avatar
  • 125
1 vote
3 answers
313 views

MCU GPIOs internal pull-ups with external voltage divider

I am designing a board based on STM32F7 with a dozen of Digital inputs that need to be 12V tolerant. On the first design, I was using a voltage divider to have the right logical high detection when ...
Marech's user avatar
  • 39
1 vote
0 answers
86 views

First attempt at a circuit design for Raspberry Pi

The last time I did any electronic design myself was about 12 years ago, I'm hoping to turn this schematic into a PCB and solder it all up eventually but I am so out of my depth trying to relearn this ...
ck3mp's user avatar
  • 119
1 vote
1 answer
147 views

Can high GPIOs sink current?

The DRV103 has an input, which sources a constant current. A Resistor is used to configure the parameter associated but it is also possible to apply a voltage, if it can sink that current (A few µA). ...
Brainfart's user avatar
0 votes
0 answers
465 views

STM32 - two-way bus gpio configuring

I need to connect stm32 to a two-way bus. Then I have to read/set bus state (it doesn't matter - using interrupts or not) to get/transmit some pieces of data from the bus. This is a custom bus (8-12 ...
Noisy88's user avatar
  • 31
1 vote
8 answers
2k views

LED wired to GPIO in an unconventional way

I was looking at a schematic for an existing board, and I was surprised to see that this LED was wired up to a GPIO pin (LED1 label), but as if the current was gonna go to ground "inside" ...
DashNode's user avatar
0 votes
3 answers
2k views

How to trigger a physical button on an external device with a Raspberry Pi's GPIO by shorting the circuit

I'm very new to electronics so this is probably a very simple question. I have a TV decoder that I want to control the "UP" button with via a Raspberry Pi I have on hand. The "UP" ...
Mike T's user avatar
  • 3
3 votes
3 answers
609 views

Why would a digital input require a pulldown instead of a direct connection to the input voltage?

I've seen datasheets for certain ICs recommend using a 100 kOhm (or so) pulldowns or pullups for setting configuration inputs. What could be a typical reason for this? Normally I would just tie the ...
sgdsgyhetwaraw's user avatar
0 votes
1 answer
118 views

Connecting Nexys to breadboard

I want to connect Nexys 4 DDR FPGA board to a circuit on a breadboard (using pins on the "PMOD header"), but I am a bit worried about accidentally damaging the FPGA: like, for example, by ...
Jiří Maier's user avatar
  • 1,294
0 votes
1 answer
411 views

ULN2003 relay driver (recurring problem)

There are seven relays on the board and a ULN2003 relay driver to control these relays. The BCM pins to the relay driver are marked in yellow below. BCM pins are IO pins from Jetson Nano Development ...
Enes Orhan's user avatar
0 votes
1 answer
83 views

Grounding GPIO with separate PS to relay (not relay board)?

I am trying to control a 12 VDC Bosch Automotive relay with an RPi. I am using a separate 12 VDC power supply to trigger the relay. The RPi is using GPIO18 which is connected to a 1k resistor, which ...
rfeyer's user avatar
  • 3
0 votes
1 answer
821 views

How to receive input signal on Raspberry Pi GPIO from transistor emitter

I'm trying to build a simple circuit that allows a Raspberry Pi to detect AC voltage in a piece of wire inductively. I have the following circuit which basically uses an antenna wrapped around the ...
Dyverge's user avatar
0 votes
1 answer
373 views

Where are the GPIO pins on Digilent Basys 3 FPGA Board?

I do not have a great understanding of electronics circuits and their fabrication. So please pardon me for the noob-ness of this post. In one article that I am reading now, they have attached wires to ...
sherlock's user avatar
  • 219
0 votes
2 answers
341 views

How to add LEDs to a microcontroller's GPIO pins, without affecting the normal pin behaviour?

For educational purposes, I have to design a simple ATtiny24 based development board and add some LEDs to its IO ports for better demonstration of digital inputs or outputs. Despite being educational, ...
Tirdad Sadri Nejad's user avatar
1 vote
3 answers
1k views

What is gpio bank?

embedded and BSP newbie here. Recently I found a term named "gpio bank", but I cannot find good resources from google. What's it? difference of gpio bank and gpio controller? difference of ...
Chen Li's user avatar
  • 115
5 votes
5 answers
6k views

What is the input and output current of the GPIO pins of a microcontroller?

I am trying to find the current sunk and sourced by the GPIO pins of the STM32G030 (STM32G030x6/x8). It says on page 40 of the datasheet: The output current sunk by any I/O and control pin When it ...
MRB's user avatar
  • 402
3 votes
1 answer
242 views

Decoupling Capacitor on GPIO instead of connected directly to battery

I am building a device that is for most of the time in sleep mode. When woken up, I am sending some BLE signals and use a LED. To support the battery I have a 2u2F capacitor. But because my battery is ...
Lyoner's user avatar
  • 339
0 votes
1 answer
215 views

GPIO is too senstivie

I've encountered a weird problem and I'm not sure whether it's actually a problem or everything's ok. But going straight to the point. I've got Raspberry Pi Zero W, one of its pins is configured as ...
bielu000's user avatar
  • 139
1 vote
1 answer
375 views

How to use GPIO on STM32 (F103VET6) as a kind of of output battery?

After I learnt how to blink LEDs on the board, I came up with the idea of making a LED matrix. The schematic is like this: But I could not figure out how to light it! Every LED can be lighted under 2....
RedRabbit's user avatar
0 votes
1 answer
168 views

Does XC8 have a particular way to set or clear GPIO pins?

I'm using MPLAB X and XC8 to compile a simple project for the PIC16F886. To manipulate the GPIOs, what I'm doing is ...
Omar and Lorraine's user avatar
0 votes
0 answers
195 views

What GPIOs in NodeMCU are usable

I am running out of usable GPIOs in my NodeMCU esp8266 board. I'm making a car. For the car I use L298N motor driver with 4 gear motors. The pins of L298N motor driver is connected as like this, 1.ENA ...
Savithu's user avatar
  • 13
0 votes
3 answers
595 views

Why does Raspberry PI reduce input voltage on GPIO Pin?

We have a cadence/pace sensor for a bike, and we want to retrieve the "sin" by plugging it to a GPIO Pin of a Raspberry PI. The signal "sin" has a voltage that varies between 0 and ...
t4dn's user avatar
  • 1
3 votes
2 answers
120 views

PWM use in dsPIC3EV - XC16

I'm learning to use dsPIC33EV and XC16 for a project where I need 4 PWM outputs, but I'm not sure if the PWM outputs of this uC are independent because they are named like PWM1H and PWM1L. Can I use ...
cvalencia_119's user avatar
0 votes
1 answer
269 views

Reading wrong values from GPIO when connected with a 1 MΩ resistor

I'm trying to re-implement the Arduino Capacitive Sensing Library. In the process, I need to read one GPIO's state with another GPIO. The board I'm using is a ESP-01S with the ESP8266 microcontroller. ...
finefoot's user avatar
  • 171
0 votes
1 answer
4k views

Wiring to control 12V relay (SRD-12VDC-SL-C) manually

I am trying to use Raspberry pi to control a 12V relay. Before doing that, I try to do it manually. Below is my wiring based on reference 1 and reference 2. In this wiring, the PWR light is on. ...
Pak Ho Cheung's user avatar
0 votes
4 answers
841 views

Understanding peripheral multiplexing on MCU pin

I'm creating a board using an ATSAMS70 microcontroller, and found out in the datasheet that the I2S data out pin (which I'll be using) was multiplexed with another pin I wanna use, which is the SD ...
DashNode's user avatar
0 votes
1 answer
1k views

Calculate resistor value for GPIO pin on Raspberry Pi for input mode

I want to place a 4-way DIP switch to enable setting the "operation mode" for my Pi project. The GPIO pins will be in "IN" mode with "PullDown" flag enabled. How do I ...
jdevelop's user avatar
  • 117
0 votes
3 answers
184 views

Trying to control 20 loads using MOSFETs and Raspberry Pi GPIOs (NOT WORKING)

I have twenty 12V/450mA Solenoid Valves that I am trying to control using RFP30N06LE MOSFETs (n-type) as switches controlled by a Raspberry Pi 4B+. The gate threshold voltage of the MOSFETs are ...
ianjms's user avatar
  • 1
0 votes
3 answers
561 views

Best way to provide clean 5 V to multiple Raspberry Pis

I am trying to power about 20 Raspberry Pis at once using the GPIO pins. Each Pi has about 15W power requirement (3A @ 5V). So 20 Pis would have about a 300W power requirement. There are a few ways to ...
Gabe Bryk's user avatar
0 votes
2 answers
685 views

ULN2003 relay driver

I designed a Raspberry Pi shield PCB. There are 6 relays on the board and a ULN2003 relay driver to control these relays. The BCM pins to the relay driver are marked in yellow below. When two relays ...
Enes Orhan's user avatar
1 vote
1 answer
961 views

Changing PWM Pulse and GPIO Outputs Inside a Function (STM32)

hope you are all doing well. I am trying to learn STM32 for about two weeks now and right now I need to create a Library file which includes just one function. This function changes PWM Duty Cycle and ...
kucar's user avatar
  • 211
0 votes
1 answer
121 views

Bi-directional Three State IO and microprocessor gpio

I want to use an MP5010B Electronic Fuse IC. I will enable or disable it by using the Enable/Fault pin which is billed as a bi-directional three state IO. I will enable or disable this pin using a ...
gmlux's user avatar
  • 33
2 votes
2 answers
899 views

Using more than two I2C OLED displays on a Pico

I have a Raspberry Pi Pico running CircuitPython and I use the adafruit_ssd1306 library to drive SSD1306 OLED displays. This works very well for two displays, but when adding the third it doesn't ...
Baxorr's user avatar
  • 153
0 votes
1 answer
87 views

Pull a line to ground if a HIGH signal (3.3V) is on the line

I have a X-Wing model (by DeAgostini) and I would like to include some sounds from an Adafruit SoundFX Board using the simple trigger setup. The Adafruit Board would trigger a sound T00.WAV - T09.wav ...
siliconchris's user avatar
1 vote
1 answer
681 views

STM32L4 slow toggling GPIO pins

So for my project I use STM32L4R5 (custom PCB) and need to connect parallel 8 wires to control addresses in a sensor. I am toggling 8 GPIO pins in parallel providing the addresses, but speed is crazy ...
D. K.'s user avatar
  • 131

1 2 3
4
5
18