Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inturrupt triggered without reason #46

Open
skapin opened this issue Jan 25, 2021 · 0 comments
Open

Inturrupt triggered without reason #46

skapin opened this issue Jan 25, 2021 · 0 comments

Comments

@skapin
Copy link

skapin commented Jan 25, 2021

We use a TBeam v1.1 board, and have trouble with interrupt.
Interrupt are triggered without reason.

==> Our setup
We have setup a pin(25) as INPUT_PULLUP to a micro switch plugged to GND.
Pin 13 is connected to a relay, (and so pin3.3 and pin GND)
The relay control a 220v LED (connected to sector)

==> What happend ?

Sometime, the interrupt on pin 25 is triggered automatically, without any reason. We have soldered pin 25 to GND, but this doesnt change anything. Like 3-4 time each second, we have the intterupt called.

    pinMode(DOOR_SWITCH_PIN, INPUT_PULLUP);
    attachInterrupt(digitalPinToInterrupt(DOOR_SWITCH_PIN),
                    DoorOpenning_InterruptHandler,
                    RISING);
static void IRAM_ATTR DoorOpenning_InterruptHandler()
{
    debugPrintln("===> EMERGENCY");

==> What have we tried ?

  • 3 differents relay
  • 2 different TTGO brand new
  • 2 different LED.
  • Plug the TTGO to USB
  • Plug with USB to WALL adapter
  • Try different pins....
  • Burn some incense to invoke satan

Does someone have an explanation or tell us what we are doing wrong ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant