Questions tagged [gpio-external-interrupt]

Certain GPIO pins could be programmed as external interrupt source, through which external devices (such as RF modules, buttons, switches, etc.) could generate interrupts.

Filter by
Sorted by
Tagged with
0 votes
2 answers
297 views

Driving SSR with ESP32 3.3V GPIO

I have made up a basic output circuit and it seems to work, but I'm not clear how to size the resistor. I'd like to make sure this works for the long term and I am not overlooking any details. How ...
Spy's user avatar
  • 49
0 votes
0 answers
41 views

TRIAC and zero cross detection

I am working on an IoT project to control the speed of my ceiling fan through my mobile. The problem is that the TRIAC and the fan speed circuit just won't work when it is on a PCB. I know it sounds ...
De PuP's user avatar
  • 1
1 vote
0 answers
66 views

Fall edge interrupt constantly triggering without any visible edge

I'm trying to implement a button-operated sleep mode toggle on a Sparkfun Artemis module. Button press one puts the Artemis to sleep, button press two wakes it up. I'm coding it in the Arduino IDE and ...
E.HP.S's user avatar
  • 349
1 vote
1 answer
57 views

Toggle between active mode and sleep mode microcontroller

this might seem a dumb question, but is it somehow possible with an ATtiny85 (or any other microcontroller) to toggle with a push-button between active and sleep mode? Startup -> doing something -&...
Post Fah's user avatar
0 votes
1 answer
91 views

In STM32F407 microcontroller (or if not known, general trends in computers), do pins in GPIO ports interface EXTI lines via multiplexers? [closed]

I've studied and worked with STM32F407 during the spring, and I was wondering about the rationale behind how it organizes external interrupts. To understand this, it would be beneficial if I could ...
BipedalJoe's user avatar
0 votes
1 answer
47 views

How to isolate multiple 24 VAC to 5 VDC power supplies (buck converters) that are all powered by a single main transformer with a common pole?

Basically, I am trying to test multiple relay controlled outputs that are all 24 V outputs. One pole of the transformer is going into a relay for each device and the other side of each device is ...
Tesla's Curiosity's user avatar
0 votes
1 answer
112 views

What is Interrupts in ESP32? [closed]

I am working with ESP32 WROOM32 Controller and AHT25 Temperature and Humidity sensor. I need to work with Interrupts in my device. Basically I don't know what is interrupts and How to use my device ...
Kuralmozhi's user avatar
0 votes
0 answers
33 views

TB9051FTG OCM Output Connection/Motor Encoder Outputs to STM32 Micro GPIO Input

I am working on a board to control a motor using a TB9051FTG motor controller chip. I would like to use a STM32F0304 to perform control of this motor. https://www.pololu.com/product/4801 I plan to ...
Jack Frye's user avatar
  • 145
0 votes
0 answers
36 views

GPIO ISR is not getting called for DHT22 input

I'm trying to read the input from a DHT22 sensor using an ESP-01. Following is my code: ...
kovac's user avatar
  • 475
0 votes
1 answer
104 views

How can I use interrupts for more than 3 push buttons with EXTI line 4 to 15 interrupts?

I would like to make a spot welding device with pulse current from 0.02 to 10 s. For prototyping I'm using 3 push buttons; one to initiate the welding process and two for current control (current+ ...
Armel Tchuisseu's user avatar
0 votes
1 answer
96 views

External interrupt code for PIC18LF47k40 not working

I wrote a external interrupt code for PIC18LF47k40 on MPLAB X IDE to toggle a LED when rising edge will be occurred. It is not working, but the same type code for PIC18F452 is working fine, only I ...
paple khan's user avatar
0 votes
1 answer
250 views

LSM6DSOX IMU sensor: interrupts necessary?

I have a question about the interrupt pin of the LSM6DSOX IMU. Can the interrupt pin be used to send an interrupt signal to my microcontroller to notify me when the sensor is detecting a change in ...
Reewen's user avatar
  • 85
1 vote
3 answers
185 views

How I choose switches' logic to interact with an MCU in my own PCB?

I want to add a tactile switch to interact with my MCU (using a GPIO) to add flexibility in using and debugging my PCB. My question is, is there any preference on adding the switch (N.O. type) in ...
Developing Electronics's user avatar
3 votes
1 answer
574 views

Why don’t external boards need a resistor?

I’ve been trying to learn how to use my MPU6050 chip. According to all of the tutorials/diagrams I’ve seen (one pictured below,) I don’t need to put a resistor in front of the MPU6050. Why is that? ...
MIfoodie's user avatar
0 votes
2 answers
473 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 ...
DEKKER's user avatar
  • 765
4 votes
5 answers
990 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
0 votes
0 answers
448 views

How to calculate time difference between two rising edges at an external interrupt pin STM32?

I am using STM32 Nucelo board mostly with HAL and I set one GPIO pin as an external interrupt pin. And I want to measure the time between two consecutive rising edges fed to this pin. So far, I have ...
user1999's user avatar
  • 1,495
0 votes
0 answers
29 views

Which type of connector to use for asynchronous trigger inputs?

I'm creating a rugged onboard audio playback system PCB. I'm using 16 individual triggers that are simple asynchronous input signals making a contact closure to ground in order to trigger a falling-...
DashNode's user avatar
2 votes
3 answers
991 views

STM32F7: use more than 16 external interrupts

I'm currently designing a circuit based on a STM32F722ze (datasheet, reference manual). As far as I understand from section 3.11 of datasheet and 10 from reference manual, for each "external ...
Sandro's user avatar
  • 7,277
1 vote
0 answers
669 views

STM8: How to make External Interrupt Handler firing only once

I have a external interrupt handler which is tied to a button which will be fired upon pressed. ...
Scarittagle's user avatar
1 vote
1 answer
1k views

EXTI code on STM32F4 doesn't work properly

I've been learning to program in bare-metal and I'm trying to learn how EXTIs work. I wrote a simple program that would turn on an onboard LED on PB7 when triggered by a button on PC13. Code as ...
Joshua John's user avatar
1 vote
0 answers
372 views

Wake up with external Interrupt from deep sleep mode (Adafruit Feather 32u4)

I have an Adafruit Feather ATMega 32u4. I want to put it into sleep mode and wake it up with pressing a switch as an external interrupt. This is what I tried so far and which worked: switching a LED ...
Larsi's user avatar
  • 11
0 votes
0 answers
261 views

How to detect the presence/ absence of a PWM signal on a GPIO pin?

I just want to set or clear a flag by detecting the presence or absence of a PWM signal with approximately >100 kHz frequency on a GPIO pin. I studied that a simple RC low pass filter can be used ...
Coppers Copernicus's user avatar
1 vote
3 answers
592 views

Ideal circuit for opto-isolated push button input

I'm trying to design an isolated and robust push button circuit. I have to take precautions for glitching, debouncing etc.. I want to use an opto-isolator. I drew a simple schematic but I'm not sure ...
İsmail Fatih ILTAR's user avatar
3 votes
2 answers
496 views

ESP-32 not working with big motor

I have spent the last two months trying to build a door controller for a chicken coop. The idea is simple: The ESP32 recieve signal from my house Wi-Fi to close or open the door. So the corresponding ...
Mathix420's user avatar
  • 131
2 votes
1 answer
145 views

GPIO- Interrupt on a non-interrupt pin?

If a GPIO pin is not interrupt configurable as external interrupt, is it still possible by any chance to detect the button press on the pin without polling just like an interrupt?
Nikeboy's user avatar
  • 63
0 votes
1 answer
252 views

Pushbutton Circuit - Triggers Event when no button press

I have been using the circuit below. I have noticed there are times the circuit will trigger on its own without any button press. Sometimes it can trigger a few times within an hour. The components ...
SChand's user avatar
  • 53
0 votes
1 answer
227 views

Why does BMI088 have 4 interrupt pins?

BMI088 has 4 interrupt pins, 2 for ACC, 2 for GYRO. I've been scanning through the datasheet and can't seem to understand: Why does ACC/Gyro have 2 interrupt pins that do the same thing? INT1~INT4 ...
EmptyButter's user avatar
0 votes
2 answers
1k views

WEMOS D1 R1 Interrupt repeats continuously, when triggered, Is it bouncing? How to fix it?

I am having such a nightmare to make it work, I am using a WEMOS D1R1 to handle the movement of an encoder via external interrupts. Instead if detecting the edge (L to H), it detects the status, so ...
tgtech's user avatar
  • 1
0 votes
2 answers
343 views

Pushbutton Noisy Signal

I have a pushbutton setup and occasionally it is randomly triggered without someone pressing it. Would this be because I have a larger resistor on the 3.3V GPIO (reads the input and possibly ...
SChand's user avatar
  • 53
0 votes
1 answer
56 views

A statement which is not clear to me on NVIC configurations

See the document here. I am interested on using external interrupts, and trying to configure NVIC at register level. The statement below, which can be found in page 215, confused me: Each priority ...
muyustan's user avatar
  • 2,086
0 votes
2 answers
358 views

Using digital pins for reading analog value

When I connect the pressure sensor to an analog pin of WEMOS D1 MINI board I'm getting values between 300 when the sensor is not pressed, and 700 when it is pressed....
Adrian's user avatar
  • 103
0 votes
1 answer
106 views

Multiplies I / O reading with interruption in stm32f767zi

I am developing a board where 40 low I / O ports will be read, and I would like when I detect a low border to activate interruption for reading the port. in the documentation it says that "Up to 168 ...
alexww's user avatar
  • 1
0 votes
2 answers
857 views

Verilog: Sampling short, external, asynchronous input signals on a FPGA

I want to sample an external, possibly very short interrupt signal in my FPGA softcore. I did some research in some digital logic design books, and found this solution, where A is the input signal. ...
Katharina's user avatar
  • 135
0 votes
3 answers
934 views

Implicit declaration is invalid warning for __set_BASEPRI() function in Keil

I'm trying to use a __set_BASEPRI() function in Keil to set up interrupts in STM32F407 but it doesn't work when I compile the code and the IDE shows warning "...
Archimedes's user avatar
0 votes
1 answer
647 views

Which Raspberry Pi 3B+ GPIO pin is connected to which module in Adeept Motor Hat v2.0?

I need to find out which GPIO pin on the raspberry pi will be connected to which module when I fit the Adeept Motor Hat v2.0 on the 40 GPIO pins. I am attaching the image and the schematic of the ...
Vaibhav's user avatar
  • 13
-1 votes
3 answers
3k views

How is a Rising Edge defined on STM32?

I'm playing with an STM32F0 and the datasheet clearly defines what a HIGH and LOW signal level is, but I can't find a definition for a Rising Edge. Is it required to go from "LOW" to "HIGH"? I assume ...
Titov's user avatar
  • 39
1 vote
0 answers
158 views

ESP8266 vs ESP32 and WakeUp vs Reset

Maybe it's my fault but I kinda dislike the design of the ESP8266 when it comes to wakeup from deep sleep via an interrupt. AFAIK (without an external circuit) the ESP8266 can not distinct between a ...
MaxPower's user avatar
0 votes
0 answers
312 views

Can't use the Wake-on-Motion functionality of an MPU9250 with STM32

Hi there :) I'm trying to use the Wake-on-Motion functionality of this particular MEMS (MPU9250) with my STM32L152C-Discovery board: if the MPU9250 sense a motion, the INT pin will be high. To achieve ...
RawCode's user avatar
  • 85
0 votes
2 answers
5k views

STM32 EXTI does not trigger interrupt

I am working on a device with a button that is supposed to turn it on (when pressed briefly) and off (when held longer). The MCU is an STM32L432. The button is connected to PB0. I want to use EXTI as ...
filo's user avatar
  • 8,951
1 vote
1 answer
209 views

Breakpoint Alters PIO Interrupt Behavior - ATSAMV71

So I'm baffled by this... I'm working with an ARMv7-M microcontroller and GCC compiler, debugging some code where I'm trying to enable an interrupt. I'm trying to do the following: enable an ...
J. Fernwright's user avatar
0 votes
0 answers
79 views

Connecting Volt-Free probes

This might be a too silly a question to ask, but I am working with the volt-free probes for the first time. I have a probe TL2 probe that has 4 wires. The user manual states that, For ‘TL2’ ...
WedaPashi's user avatar
  • 1,670
2 votes
0 answers
3k views

stm32 external interrupt

I am working with a stm32f103 and am trying to get the external interrupt done. My code is: ...
Lukas_M94's user avatar
2 votes
0 answers
125 views

nucleo-64 103rb EXTI stays pending

The PC13 EXTI interrupt (EXTI15_10) configured here keeps firing none stop. Most other questions about this same topic indicate that the respective EXTI_PR pending bit needs to be cleared in the ISR. ...
Chris's user avatar
  • 121
0 votes
3 answers
1k views

method to handle concurrent GPIO interrupt sources?

I have two GPIO interrupt sources running in two separate threads: GPIO pulses following line frequency(60 Hz) button press How can I use both these interrupts concurrently, considering my ...
Rohit Garg's user avatar
0 votes
1 answer
3k views

External interrupts in STM32CubeMx on both Rising/Falling?

I'm using STM32Cube to generate the configuration. It creates the following code by default for MX_GPIO_Init in main.c: ...
Michel Keijzers's user avatar
0 votes
1 answer
2k views

Reading Analog value from GPIO on STMF103RCT6

I am new to electronics, but have a fair bit of general programming experience, be gentle :) I have an existing PCB with an STMF103RCT6 where the available pins are GPIO D 0 and GPIO D 1. I would ...
unomi's user avatar
  • 103
1 vote
1 answer
1k views

Sonoff ESP8266 GPIO flickering

I've the following setup based on a Sonoff basic flashed with the Sonoff-Tasmota firmware. I've connected a wall switch (not push button) to the GPI14 and GND pin header of the Sonoff in order to be ...
Kami's user avatar
  • 177
3 votes
1 answer
10k views

STM32F4 HAL Library Button Interrupt

I'm trying to toggle built in LED with external interrupt instead of while loop. Probably I'm doing something wrong with EXTI functions. Can you help me to fix it? ...
Reactionic's user avatar
0 votes
1 answer
176 views

Use Ibutton to wake MCU and fire an interrupt

I'm working on a battery powered device which takes tree inputs, two buttons and one ibutton. Each input must be able to wake the MCU(Atmega1284p with arduino bootloader) from sleep. With the two ...
Peter Savnik's user avatar