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.
74 questions
0
votes
2
answers
130
views
Weird pin output problem on AVR mega 2560 microcontroller
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 ...
0
votes
2
answers
101
views
atmega328p button press via interrupt not working
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 ...
1
vote
2
answers
339
views
Measuring the frequency of a square wave using rising edge interrupt
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 ...
0
votes
1
answer
111
views
ATMEGA2560-16AU PWM control using AVR-C
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 ...
0
votes
2
answers
2k
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 ...
0
votes
0
answers
64
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 ...
1
vote
0
answers
167
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 ...
1
vote
1
answer
102
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 -&...
0
votes
1
answer
140
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 ...
1
vote
1
answer
98
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 ...
0
votes
1
answer
155
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 ...
0
votes
1
answer
212
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+ ...
0
votes
1
answer
133
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 ...
0
votes
1
answer
367
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 ...
1
vote
3
answers
337
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 ...
3
votes
1
answer
594
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? ...
0
votes
2
answers
967
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 ...
4
votes
5
answers
1k
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 ...
0
votes
0
answers
525
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 ...
0
votes
0
answers
39
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-...
2
votes
3
answers
2k
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 ...
1
vote
0
answers
928
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.
...
1
vote
1
answer
2k
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 ...
1
vote
0
answers
464
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 ...
0
votes
0
answers
290
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 ...
1
vote
3
answers
1k
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 ...
3
votes
2
answers
616
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 ...
2
votes
1
answer
187
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?
0
votes
1
answer
364
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 ...
0
votes
1
answer
357
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 ...
0
votes
2
answers
2k
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 ...
0
votes
2
answers
560
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 ...
2
votes
1
answer
108
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 ...
0
votes
2
answers
550
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....
0
votes
1
answer
154
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 ...
0
votes
2
answers
1k
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. ...
0
votes
3
answers
1k
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 "...
0
votes
1
answer
752
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 ...
-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 ...
1
vote
0
answers
168
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 ...
0
votes
0
answers
360
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 ...
0
votes
2
answers
6k
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 ...
1
vote
1
answer
298
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 ...
0
votes
0
answers
92
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’ variant,...
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:
...
2
votes
0
answers
147
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. ...
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 controller(...
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:
...
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 ...
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 ...