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
1 vote
0 answers
55 views

Designing a bi-directional level shifter for 3.3v <-> 5v that works with pulldown resistors

I need a bi-directional level shifter that will work between a 3.3v signal and a 5v signal that will work with a signal that has a pull down resistor. Based on the answer to the following question Bi-...
user avatar
  • 111
0 votes
1 answer
60 views

Hardware testing of the 1:1 connection for opens and shorts

I have a board (DUT = device under test), featuring (in addition to other things, which are not important for this question) 2 connectors - A and B. The connectors are connected 1:1 at the DUT. ...
user avatar
  • 200
2 votes
1 answer
60 views

GPIO pins not changing state - unsure how to debug

I am using an STM32F072CB. Some of the GPIO pins are connected to a multiplexer for controlling the channel, and others are connected to some MOSFETs. The pins are configured as regular no push/no ...
user avatar
0 votes
2 answers
56 views

STM32F303 - is it possible to read the state of PB14 when in MISO SPI mode?

I have an ADC chip, CS5532, that sets the MISO line on PB14 Hi if data not available, and Lo if it is. Can I read the state of the MISO line? Every time I try to do it I read that the pin is Hi (I am ...
user avatar
  • 12.1k
1 vote
0 answers
40 views

ESP32 bootstrap pins power consumption

The other day, I tried that connect to GPIO15 and GPIO5 GND with 26.7 kohm pull down resistor despite having a internal pull-up beacuse of IO obligation. I had no problems during a booting. Please ...
user avatar
  • 21
0 votes
0 answers
32 views

Control 34V AC line with Android GPIO

I have a Newland Nquire 350 which is an Android device with Built-in GPIO. The GPIO port diagram is attached, and I can't say I fully understand it... but one thing is certain: If you use anything ...
user avatar
  • 103
0 votes
2 answers
84 views

Hardware debounce using RC filter and correct GPIO configuration on MCU side

I need a quick way of adding some de-bouncing to a button in hardware. I am aware that ultimately the software should really do it, but for now I came up with this, saw it somewhere on internet: Does ...
user avatar
  • 573
1 vote
2 answers
90 views

MAX3232: Switch between RS-232 and TTL levels

Sorry in advance, electronics noob here! I need to make a proof of concept to get some data out of third party system which handles both RS232 and TTL levels. The computer/raspberry/arduino shall - I ...
user avatar
  • 13
0 votes
0 answers
47 views

External Interrupt Peripheral Microcontroller

I'm using this ATSAME53N20A-AU microcontroller - Link I'd like to know what does the EIC and EXTINT peripherals would do? So, I went through the Appnotes - EXTINT and EIC I just want to know whether ...
user avatar
  • 2,450
0 votes
1 answer
57 views

LED Current Draw Questions

I need a little help with understanding the current I'm working with. I have these LEDs, and trying to power them with an Arduino type board, a Wemos/Lolin D1 R1, based on an ESP8266. I measured the (...
user avatar
0 votes
1 answer
38 views

How to use a small board computer's gpio to close a switch on an external device

I'm using an Odroid XU4. It outputs 1.8V on the GPIOs. I have a USB2 Hub connected to it which has its own power supply (connected, alongside the Odroid to a pico PSU). Problem is, it has a physical ...
user avatar
  • 101
0 votes
0 answers
51 views

Circuit to enable/disable ESP32 GPIO pins during bootstrap

I am developing an ESP32 board and I need to use all the GPIO pins of the ESP32. But I have some problems during bootstrap, since: some GPIOs emit a PWM signal which can affect the connected circuits;...
user avatar
  • 63
0 votes
0 answers
59 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 ...
user avatar
1 vote
2 answers
131 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 ...
user avatar
  • 875
0 votes
2 answers
141 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 ...
user avatar
0 votes
1 answer
71 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 ...
user avatar
  • 101
9 votes
6 answers
2k 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 ...
user avatar
0 votes
0 answers
62 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 ...
user avatar
  • 1
3 votes
1 answer
78 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 ...
user avatar
  • 51
0 votes
3 answers
157 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 ...
user avatar
4 votes
5 answers
862 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 ...
user avatar
1 vote
0 answers
54 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 ...
user avatar
  • 875
0 votes
3 answers
96 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 ...
user avatar
4 votes
3 answers
374 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 ...
user avatar
1 vote
2 answers
174 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 ...
user avatar
2 votes
4 answers
179 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 ...
user avatar
2 votes
2 answers
94 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 ...
user avatar
  • 21
1 vote
2 answers
118 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 ...
user avatar
  • 125
1 vote
2 answers
107 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 ...
user avatar
  • 39
1 vote
0 answers
79 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 ...
user avatar
  • 119
1 vote
1 answer
53 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). ...
user avatar
0 votes
0 answers
113 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 ...
user avatar
  • 31
1 vote
8 answers
526 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" ...
user avatar
0 votes
3 answers
283 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" ...
user avatar
  • 3
3 votes
3 answers
502 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 ...
user avatar
0 votes
1 answer
39 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 ...
user avatar
  • 1,242
0 votes
1 answer
136 views

ULN2003 Relay Driver (recurring problem)

There are 7 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 Kit. ...
user avatar
0 votes
1 answer
40 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 ...
user avatar
  • 3
0 votes
1 answer
159 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 piece of wire inductively. I have the following circuit which basically uses an antenna wrapped around the wire ...
user avatar
0 votes
1 answer
84 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 ...
user avatar
  • 219
0 votes
2 answers
97 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, ...
user avatar
1 vote
3 answers
313 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 ...
user avatar
  • 115
5 votes
5 answers
2k 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 ...
user avatar
  • 340
3 votes
1 answer
137 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 ...
user avatar
  • 307
0 votes
1 answer
96 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 ...
user avatar
  • 139
1 vote
1 answer
161 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....
user avatar
0 votes
1 answer
89 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 ...
user avatar
  • 404
0 votes
0 answers
67 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 ...
user avatar
  • 13
0 votes
3 answers
207 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 ...
user avatar
  • 1
3 votes
2 answers
86 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 ...
user avatar

1
2 3 4 5
15