Interrupt in der IOT Cloud

Hallo Mitstreiter,
ich bastle gerade an einem Cloudbasierten Geigerzähler, das Programm läuft auf einem Uno Super, hat einen Interrupt und genau bei diesem bekomme ich eine Fehlermeldung in der Cloud, geht da kein Interrupt??? Vieken Dank für Eure Hilfe bertrand

#include <SPI.h>
#include <Wire.h>
#include <TM1637Display.h>
//#define CLK 2
//#define DIO 3
//TM1637Display display = TM1637Display(CLK, DIO);
TM1637Display display_2 = TM1637Display(4, 5);
#define tInterv 2000
#define CalFactor 1
volatile int counter = 0;
unsigned long oldTime = 0;
unsigned long oldRate = 0;
void setup() {
  Serial.begin(9600);
  // by default, we'll generate the high voltage from the 3.3v line internally!
  display_2.clear();
  attachInterrupt(0, count, FALLING);
}
void loop() {
  unsigned long time;
  unsigned long dt;
  unsigned long rate;
  time = millis();
  dt = time - oldTime;
  if (dt >= tInterv) {
    rate = counter * 1000 / tInterv;
    Serial.println(rate);
    display_2.setBrightness(7);
    display_2.showNumberDec(rate, true);
    oldRate = rate;
    oldTime = time;
    counter = 0;
  }
}
void count() {
  counter++;
}

Geht es etwas genauer? Was ist cloudbasiert?
Wo ist da der Uno und wo kommt das Signal her?

Wenn mir das klar wäre, wäre danach interessant, welche Fehlermeldung du bekommst.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.