How To Interface a CDV 700 Geiger Counter to a PC Using an Arduino (Part 1)
The second part of our video series of our project to interface to a CDV-700 radiation meter using an Arduino Uno!
How To Interface a CDV 700 Geiger Counter to a PC Using an Arduino (Part 2)
Code:
A video on our project to interface to a CDV-700 radiation meter using an Arduino Uno!
Here is the code mentioned in the video:
int count = 0;
void setup() {
Serial.begin(9600);
pinMode(2, INPUT);
digitalWrite(2, HIGH);
attachInterrupt(0, count_isr, FALLING);
}
void loop(){
int i;
delay(1000);
i = count;
count= 0;
Serial.println(i);
}
void count_isr(){
count++;
}