Report Bugs Here

Moderator: Mmiscool

User avatar
By Electroguard
#46450 An assumption: you may be using nodeMCU modules or similsr when testing pin 0 interrupt.
An observation: the nodeMCU 'flash' button does NOT function the same as a button connected between its gpio00 pin and ground.
Another observation: the 'flash' button triggers a pin 0 interrupt, the gpio00 button does not!
Conclusion: draw your own.

I don't know what the interrupt problem is for me, but there is some problem preventing pin 0 interrupt from being used on my ser dev kit module AND nodeMCU module - which is just my own tough luck... but may also affect everyone else who isn't using whatever hardware you are using. At least I know the nodeMCU flash button does trigger a branch jump even though it's gpio00 pin does not.

Considering that my ser dev kit gpio00 button is definitely working for re-flashing and preventing auto-run, it could be something as simple as re-enabling pullup for interrupts, but something is wrong that's preventing the crucial interrupt function from working for me, and without that I can't read any pins or consider doing PIR sensors or other alarm triggers etc.
I'll obtain new hardware that is interrupt-compliant if that's necessary, but at the moment I've already tried everything I can think of and am now dead in the water.
Last edited by Electroguard on Fri Apr 29, 2016 7:09 am, edited 1 time in total.
User avatar
By cicciocb
#46453 In my case I tested with a ESP-12E module.
I have a very "basic" connection (a short piece of wire) between the GPIO0 and the ground.
In order to trigger the interrupt, I connected this wire to the +3.3V.
Probably don't works for you as you simply tried the button that connect the button to gnd but if there isn't a pullup resistor, the pin remains to gnd.
I think that, at startup, this pin is pulled up with the internal pullup but, as soon as the module is started, the pullup is removed.
So, you should just try to put a weak pullup resistor between the pin GPIO0 and the +.3.3V and check again.
User avatar
By Electroguard
#46455 I had assumed that the internal gpio pullup would have been enabled for pin interrupts, cos you can't specify on lo or on hi or on change, so presumably it is assuming same LO trigger as used for preventing autorun - which works fine for me !!! - but I'll have a play around with pullups and see if that can make a difference.
User avatar
By Electroguard
#46462 Pin 0 interrupt works if an external pull-up resistor is added - which is fine once you know - but it could be fool-proof if the ESP's internal pull-up could be enabled for any assigned interrupt pins?

Presumably pullup was enabled for the button-operated auto-run disable else that wouldn't have worked for me either?