Giter Site home page Giter Site logo

dfc77-sync's Introduction

dfc77-sync

Time synchronization for DFC77 devices using sound speakers.

This program generates a time DFC77 signal and sends it to the speakers. By placing any DFC77 device near the speaker it should be synchronized within a few minutes.

Clearly, the funcionality depends on the sound card capabilities, which should have support for the sample rate of 192kHz, the distance between the speaker and the DFC77 device, and the lack of any interference. Place your speaker and device far from electronic devices such as TVs, monitors, computers, etc.

To test the script with audible modulation change the frequency to something reasonable, e.g.:

python dfc77-sync.py -f 440

You can also play though a different device. Just experiment with options -l and -d.

Usage:

usage: dfc77-sync.py [-h] [-l] [-d DEVICE] [-f FREQUENCY] [-a AMPLITUDE] [-s SAMPLERATE] [-u]

 Synchronizes DFC77 devices using sound speakers.  

optional arguments:
  -h, --help            show this help message and exit
  -l, --list-devices    show list of audio devices and exit
  -d DEVICE, --device DEVICE
                        output device (numeric ID or substring)
  -f FREQUENCY, --frequency FREQUENCY
                        frequency in Hz (default: 77500 Hz)
  -a AMPLITUDE, --amplitude AMPLITUDE
                        amplitude (default: 1)
  -s SAMPLERATE, --samplerate SAMPLERATE
                        sample rate (default: 192000)
  -u, --utc             set time in UTC

Requirements:

The code is inspired by and based on:

dfc77-sync's People

Contributors

gkowal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.