DCF77 Radio Time Signal #876
Replies: 16 comments
-
Posted at 2015-11-15 by werty1st Hi Gordon, i use the receiver from Conrad. It is a little bit different from the one on Pollin. i tried your sample code:
But i haven't got any valid results. So i tried the dcf77 library from (http://thijs.elenbaas.net/2012/04/arduino-dcf77-radio-clock-receiver-library/) At the beginning i didn't get valid result there either, but then i tested his debug code. he had 130 and 230ms.
After i changed the DCFSplitTime from 180 to 120 in his dcf77.h...
... i got a vaild time.
How can i achieve this with the espruino? PS: i also used a 10k resistor to pull up the Data Pin. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-15 by werty1st i guess the problem could be the setWatch function. so i tried a emtpy one with only the DCF77 sample.
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-15 by werty1st i updated the firmware and switched to pin B6. now i get a valid time :)
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-16 by @gfwilliams Ahh, great! Glad you got it sorted! I guess it could have been a firmware issue then? I'm surprised if the pin that was used made any difference. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-16 by werty1st Hi, i'm, sorry but that was only one lucky shot. i didn't get a valid time after that try. i will try to record that tonight. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-16 by @gfwilliams That seems very strange... The Pico's RTC can sometimes be as much as 10% out because it's using the internal oscillator (that will be fixed soon hopefully), but it shouldn't be out by any more than that. Maybe you could connect an LED across the signal wire from the radio so you can see what it's really doing? It's possible that it's just receiving a lot of noise alongside the signal. The signal itself is very weak. To get to reliable I had to put mine right near the window. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-16 by werty1st i live less then 100km away from frankfurt. i will try again without the wireless shield and the oled display. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-16 by @gfwilliams I suppose it's possible that the wireless (ESP8266?) is causing quite a lot of noise on the power supply lines, and that could be upsetting your receiver? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-16 by werty1st I tried a 10µF capacitor between + and - of the DCF77 shield. But didn't see any difference. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-16 by werty1st not working: I think i will buy a new DCF receiver. i can get it to work but its not stable. not on the arduino nor on the espruino. Code:
@gordon thank you for help. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-17 by @gfwilliams No problem - sorry you didn't have any luck with it. Radio stuff is tricky. It's always hard to know if it's software, the hardware, or just interference that's at fault :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-10 by user66864 Hello Gordon, Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-10 by MichaelPralow problem is the module starts a watch by itself, so your setInterval starts a watch every 2s, which might lead to the memory problem but you can create a custom module locally (put it into modules folder and call it myDCF77 or something) and use it this way
... the above needs a change inside the module as
keep all other functions as is |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-10 by MichaelPralow err if you dont mind the power use you can use the module as is, just use it without setInterval |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-10 by user66864 That interval was exactly the problem. The language is quite different from like Pascal or even Assembler. I see I have to think completely different with JavaScript and its syntax. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-11 by MichaelPralow if you are interested in some background
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-07-09 by @gfwilliams
Hi,
Thought you might find this interesting. I'll try and post it into a module/tutorial soon, but this code decodes the time signal from the DCF77 time transmissions which cover europe on 77.5kHz.
Someone's selling receivers on eBay here or you can almost certainly rip one out of an old radio clock.
Beta Was this translation helpful? Give feedback.
All reactions