i have problem. i have to programming DCF77 outputs on a Arduino UNO but without any Libraries. I wrote a small programm to read the Pin 2 where the signal ist connected from the DCF77, but there ist no result or a result that gave me 2 instead to declare the pin 2.
My small Code:
#define signal 2 //DCF77 Signal über PIN 2 connecten
//int signal = 2; //Signal wurde an Pin 2 festgelegt
int eingangsbit = 0; //variable zum zwischenspeichern der Werte
void setup() {
pinMode(signal, INPUT); //Ausgang über signal ansteuern
digitalWrite(signal, HIGH);
ok now i have read the binary datas and put them in a buffer, but how can i save them in a array? i have wrote a char array with a large of 60 but, the datas there came in are timless... the bits flow per second 1 and 0.
This projekt is to be show a Time.
If you'd like to discuss about the German DCF77 time code signal in German language, you could join that thread in the German forum.
P.S.: The loop() function code you posted above does nothing else but printing the pin number you declared. Perhaps better try reading the pin and print the result: