MSF60 decoder

This is first real project so go easy!

I would like to use a MSF60Khz decoder to display the date and time on an LCD display. I got a decoder from here http://www.pvelectronics.co.uk/index.php?main_page=product_info&products_id=2 and found some code here MSL radio time receiver code for Arduino and have put the folder into the library area of the Arduino IDE files. ( Iassumed that is right as it needs the .h file and .cpp file as libraries (?)

When I open the MSFTimeExample folder I get 3 tabs opening. Open with the .ino file, one with MSFTime.cpp and one with MSFTime.h. Sounds ok to me so far.

When I go to upload the MSFTimeExample sketch to the arduino I get the error below. Any clues please?

MSFTime.cpp:27:20: error: wiring.h: No such file or directory
MSFTime.cpp:33:70: error: Time.h: No such file or directory
In file included from MSFTime.cpp:39:
MSFTime.h:73: error: 'time_t' does not name a type
MSFTime.cpp: In member function 'void MSFTime::init(byte)':
MSFTime.cpp:83: error: 'OUTPUT' was not declared in this scope
MSFTime.cpp:83: error: 'pinMode' was not declared in this scope
MSFTime.cpp:98: error: 'INPUT' was not declared in this scope
MSFTime.cpp:98: error: 'pinMode' was not declared in this scope
MSFTime.cpp:113: error: 'interrupts' was not declared in this scope
MSFTime.cpp: In member function 'void MSFTime::stateChange()':
MSFTime.cpp:146: error: 'digitalRead' was not declared in this scope
MSFTime.cpp:154: error: 'millis' was not declared in this scope
MSFTime.cpp:157: error: 'digitalWrite' was not declared in this scope
MSFTime.cpp:212: error: 'abs' was not declared in this scope
MSFTime.cpp: In member function 'void MSFTime::doDecode()':
MSFTime.cpp:354: error: 'millis' was not declared in this scope
MSFTime.cpp: In member function 'long int MSFTime::getFixAge()':
MSFTime.cpp:491: error: 'millis' was not declared in this scope
MSFTime.cpp: In member function 'byte MSFTime::getStatus()':
MSFTime.cpp:498: error: 'millis' was not declared in this scope
MSFTime.cpp:507: error: 'millis' was not declared in this scope
MSFTime.cpp:510: error: 'millis' was not declared in this scope
MSFTime.cpp: At global scope:
MSFTime.cpp:517: error: 'time_t' does not name a type

It looks like the library you are using is not compatable with version 1.0 of the arduino. It is simpler if you run arduino 0.23

Thanks grumpy Mike, I've done the same with v0023 and get a slightly smaller error message

MSFTime.cpp:33:70: error: Time.h: No such file or directory
In file included from MSFTime.cpp:39:
MSFTime.h:73: error: 'time_t' does not name a type
MSFTime.cpp:517: error: 'time_t' does not name a type

I assume its looking for another library called Time.h So i put a copy of Time.h in the same folder and got the same result

No you put Time.h in a folder called Time and put that in the libraries folder. You also need to find the Time.pde or Time.c file and put it in the same folder.
In short add the Time library into your libraries folder. Don’t forget to restart the arduino IDE after this.

I'll give up tonight and get back to it another day. It looks to me as though there is more than one copy of MSFTime on my PC. Now I'm getting this.
MSFTimeExample\MSFTime.cpp.o: In function MSFTime': C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:55: multiple definition of MSFTime::MSFTime()'
MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:55: first defined here
MSFTimeExample\MSFTime.cpp.o: In function MSFTime': C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:55: multiple definition of MSFTime::MSFTime()'
MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:55: first defined here
MSFTimeExample\MSFTime.cpp.o: In function MSFTime::checkValid()': C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:380: multiple definition of MSFTime::checkValid()'
MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:380: first defined here
MSFTimeExample\MSFTime.cpp.o: In function MSFTime::checkParity(unsigned char*, int, int, unsigned char)': C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:456: multiple definition of MSFTime::checkParity(unsigned char*, int, int, unsigned char)'
MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:456: first defined here
MSFTimeExample\MSFTime.cpp.o: In function MSFTime::getProgess()': C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:479: multiple definition of MSFTime::getProgess()'
MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:479: first defined here
MSFTimeExample\MSFTime.cpp.o: In function MSFTime::setBit(unsigned char*, int, unsigned char)': C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:549: multiple definition of MSFTime::setBit(unsigned char*, int, unsigned char)'
MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:549: first defined here
MSFTimeExample\MSFTime.cpp.o: In function MSFTime::getBit(unsigned char*, int)': C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:560: multiple definition of MSFTime::getBit(unsigned char*, int)'
MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:560: first defined here
MSFTimeExample\MSFTime.cpp.o: In function MSFTime::decodeBCD(unsigned char*, unsigned char, unsigned char)': C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:570: multiple definition of MSFTime::decodeBCD(unsigned char*, unsigned char, unsigned char)'
MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:570: first defined here
MSFTimeExample\MSFTime.cpp.o:(.data.BCD+0x0): multiple definition of BCD' MSFTime.cpp.o:(.data.BCD+0x0): first defined here MSFTimeExample\MSFTime.cpp.o: In function MSFTime::getTime()':
C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:518: multiple definition of MSFTime::getTime()' MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:518: first defined here MSFTimeExample\MSFTime.cpp.o: In function MSFTime::getStatus()':
C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:495: multiple definition of MSFTime::getStatus()' MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:495: first defined here MSFTimeExample\MSFTime.cpp.o: In function MSFTime::getFixAge()':
C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:487: multiple definition of MSFTime::getFixAge()' MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:487: first defined here MSFTimeExample\MSFTime.cpp.o: In function MSFTime::doDecode()':
C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:334: multiple definition of MSFTime::doDecode()' MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:334: first defined here MSFTimeExample\MSFTime.cpp.o: In function MSFTime::stateChange()':
C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:144: multiple definition of MSFTime::stateChange()' MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:144: first defined here MSFTimeExample\MSFTime.cpp.o:(.data.oldVal+0x0): multiple definition of oldVal'
MSFTime.cpp.o:(.data.oldVal+0x0): first defined here
MSFTimeExample\MSFTime.cpp.o: In function __vector_4': C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:126: multiple definition of __vector_4'
MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:126: first defined here
MSFTimeExample\MSFTime.cpp.o: In function MSFTime': C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:55: multiple definition of sMSF'
MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:55: first defined here
MSFTimeExample\MSFTime.cpp.o: In function MSFTime::init(unsigned char)': C:\Program Files\arduino-0023\libraries\MSFTimeExample/MSFTime.cpp:61: multiple definition of MSFTime::init(unsigned char)'
MSFTime.cpp.o:C:\Users\Desktop\AppData\Local\Temp\build9040452648863939478.tmp/MSFTime.cpp:61: first defined here