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
132 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
343 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
113 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
3k 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
142 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
99 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
215 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
369 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
340 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 ...