Home > other >  Consult about the Arduino mega 2560 interrupt problem
Consult about the Arduino mega 2560 interrupt problem

Time:09-18

I want to use the Arduino mega 2560-01 and esp s upload data to the alcohol concentration onenet platform, initially normal, later joined the buzzer is occasionally not preach data, modify the program from the Internet before the blog of see, punctuated with the timerone. J h, have an interrupt service routine, I add a buzzer directly added in the loop at the beginning, the result doesn't work, then I used the Mstimer2. H into another interrupt service program, the result is successful, reaches the preset value, but the serial port monitor meeting occasionally not preach data, normal operation of small probability when suddenly without data transfer, is the conflict of two timing counter? Or what other problems caused by? Interrupt is really hard for you, is really not understand, for help
  • Related