AnswerBun.com

I am facing a problem of firing multiple interrupts on nodemcu 1.0 on single rising edge pulse.what is problem and what are the solutions?

Arduino Asked by CHETAN NIRADWAR on October 20, 2020

I am working on a project which involves counting the drops falling in a drip chamber of a IV fluid gravity based therapy bottle(saline bottle).I am using IR trans-receiver at the drip chamber to detect a drop falling. I am using a comparator to generate a pulse when ir voltage drops below a certain threshold. The output of comparator is connected to D1 of nodemcu. The ISR is called at rising pulse of comparator .But the nodemcu calls the ISR 3 to 5 times on a single drop.what should I do?plz help.

One Answer

The signal is probably "bouncing" between HIGH and LOW instead of performing a clean edge, just like it happens with buttons.

Two simple solutions:

  1. Hardware solution: use a schmidt-trigger instead of a comparator
  2. Software solution: define a dead-time for the signal aquisition (disable the interrupt when the desired edge has been detected and enable it again after "dead-time")

Answered by Sim Son on October 20, 2020

Add your own answers!

Related Questions

How I can send data information without work WiFi to LCD?

1  Asked on September 25, 2021 by abuwesam

       

How to wire L293D chip to a nodeMCU?

1  Asked on September 25, 2021

   

Fastest Communication from NodeMCU to Arduino Nano

1  Asked on September 25, 2021 by prikarsartam

       

Is this circuit risky for an Arduino Uno?

1  Asked on September 25, 2021 by j-francis

   

Write a Struct using ArduinoBLE library

1  Asked on September 25, 2021 by sicks

   

Wait between UART frames

2  Asked on September 25, 2021 by martin-g

 

Memory usage in AnalogBinLogger of SdFat library

1  Asked on September 25, 2021 by harini

     

Sim800 FTP Arduino

2  Asked on September 25, 2021

     

ESP-01 + UNO won’t detect gateway

2  Asked on September 25, 2021 by mrcabana

       

Error reading file

1  Asked on September 25, 2021 by yash

   

Reading 4-20ma signal on arduino

1  Asked on September 25, 2021 by sumit-mann

       

How to use tinygps.h library to measure distance? using NEO6mv2

1  Asked on September 25, 2021 by reiniel-cirujano-antonio

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP