Commit graph

27 commits

Author SHA1 Message Date
fa58593c97 add README, such as it is 2021-10-25 08:21:33 -05:00
f35850e968 licenses 2021-10-25 08:21:33 -05:00
1a1de6a8cf Make POLLING_RATE a compile-time constant
various other constants need to scale according to POLLING_RATE.

DEBOUNCE_TC ends up pretty small with small POLLING_RATEs, but there's
nothing to be done about that.

.. tested (but not committed) with 60, so that (in principle) I can poll
during the vertical retrace interval while generating a TV signal.
2021-10-25 08:21:33 -05:00
6b3b51d53f put a carriage return in the debug message
.. since common terminals require a CRLF pair to actually start a new line
2021-10-25 08:21:33 -05:00
cef3c8bd4a fiddle with LED indicators 2021-10-25 08:21:33 -05:00
12da6cc997 Compute signal delay from receiver delay, debounce delay, and light delay 2021-10-25 08:21:33 -05:00
e86c9fc0e8 Improve the sig2ms program
Allow commandline selection of polarity, jitter, timebase, noise,
and phase.  This makes it easy to demonstrate what signal variations
the receiver will tolerate.

Make it run faster by using numpy to add noise, instead of dealing with
each character of output separately.
2021-10-25 08:21:33 -05:00
771e0a48d2 more test times 2021-10-25 08:21:33 -05:00
7359f30f9a add copyright notice 2021-10-25 08:21:33 -05:00
bbd0fc18d6 some times that are nice to test 2021-10-25 08:21:33 -05:00
2bf076b431 ignore more generated files 2021-10-25 08:21:33 -05:00
85083469e9 avr-gcc on ubuntu 10.04 doesn't know about atmega328
.. so tell it we have an atmega168 if necessary
2021-10-25 08:21:33 -05:00
c3f8c879fd always format hour as two digits 2021-10-25 08:21:33 -05:00
6ea34733b5 Must make this constant 32 bits big for avr 2021-10-25 08:21:33 -05:00
fd7db2bb14 drop some debug messages I don't want anymore 2021-10-25 08:21:33 -05:00
6725c4c6c7 implementing (avr side) clock tuning 2021-10-25 08:21:33 -05:00
633a6a9378 implementing and testing DST handling 2021-10-25 08:21:33 -05:00
5f4133f0dc disable noise testing
.. this is not what I care about at the moment
2021-10-25 08:21:33 -05:00
cec375438f change timer steering
What we desire is long-term stability at the expense of short-term
accuracy.  Therefore, don't steer the timer based on local measurements
(which has a very low precision, counts per wwvb second is 1/1000
or 1000ppm), but instead base it on long-term measurements (e.g., counts
per wwvb day or so, 12ppb)

The resolution of the divisor is 1 clock per 32.678 seconds, or 6ppb when
the clock is nominally 5MHz.
2021-10-25 08:21:33 -05:00
56a131651f wip 2021-10-25 08:21:33 -05:00
3ec149e90e printfs aren't useful on the micro 2021-10-25 08:21:33 -05:00
4e2945f850 regularize whitespace 2021-10-25 08:21:33 -05:00
273bb36d58 build for arduino
this, or something very close to it, did actually set the time once
but since then it stopped even synching to the wwvb pps.
2021-10-25 08:21:33 -05:00
64a8dd68a4 a script to build it 2021-10-25 08:21:33 -05:00
08305b3928 ignore generated files 2021-10-25 08:21:33 -05:00
58730611fb program to transform wwvbpy output into wwvbdecode input 2021-10-25 08:21:33 -05:00
389c9ea0e4 program that decodes wwvb signals 2021-10-25 08:21:33 -05:00