Skip to main content

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
130 views

I've made a controller board of my own for a school project based on an ATMEGA2560-16AU mcu, and I'm working on programming it with AVR. I want to use PWM for motor control and external interrupts to ...
hdaniu's user avatar
  • 49
0 votes
2 answers
101 views

I'm trying to control a servo using two buttons connected to a atmega328p. The two buttons place the servo horn in two different positions. The servo is a SG90 micro servo. I'm trying to use ...
kovac's user avatar
  • 871
1 vote
2 answers
339 views

I am using a Texas Instruments C2000 board. On a GPIO I have attached a rising edge interrupt. A square wave of approximately 50 Hz is fed into this GPIO. This wave is from a comparator which ...
user412839's user avatar
0 votes
1 answer
111 views

I'm working on a microcontroller board that also features a couple of motor drivers which can be controlled using PWM signals. I also intend to precisely control the positioning of the motors using ...
hdaniu's user avatar
  • 49
0 votes
2 answers
2k views

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
64 views

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
167 views

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
  • 369
1 vote
1 answer
102 views

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
140 views

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
1 vote
1 answer
98 views

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
155 views

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
1 answer
212 views

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
133 views

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
367 views

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
337 views

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
594 views

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
967 views

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
  • 825
4 votes
5 answers
1k views

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
525 views

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,545
0 votes
0 answers
39 views

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
2k views

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
  • 9,616
1 vote
0 answers
928 views

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
2k views

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
464 views

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
290 views

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
1k views

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
616 views

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
187 views

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
364 views

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
357 views

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
2k views

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
560 views

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
2 votes
1 answer
108 views

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,196
0 votes
2 answers
550 views

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
154 views

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
1k views

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
1k views

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
752 views

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

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
168 views

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
360 views

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
6k views

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
  • 9,166
1 vote
1 answer
298 views

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
92 views

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’ variant,...
WedaPashi's user avatar
  • 1,698
2 votes
0 answers
3k views

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
147 views

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

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 controller(...
Rohit Garg's user avatar
0 votes
1 answer
3k views

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

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

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