Code Monkey home page Code Monkey logo

espi2sclockgen's Introduction

espI2sClockGen

A clock and pulse generator using the I2S interface on an esp8266

Features

  • Clock generation from 2Hz to 20MHz
  • Any frequency may be used
  • Searches for best match of clock dividers and bit length from 160MHz base clock
  • Typically better than 0.1% match for frequencies < 100KHz
  • Mark space ratio selection
  • Frequency matching tolerance may be relaxed to get better mark space handling
  • Pulse train generation based on defintions in files
  • Web based GUI allowing control from PC, phone, tablet
  • Wifi Management to allow easy initial router set up
  • OTA software update
  • Uses a special I2s library (i2sTXcircular) giving flexible control

Build and use

  • Install i2sTXcircular library (included)
  • Install BaseSupport library (https://github.com/roberttidey/BaseSupport)
  • Needs WifiManager library
  • Edit passwords in BaseConfig.h
  • Compile and upload in Arduino environment
  • Set up wifi network management by connecting to AP and browsing to 192.168.4.1
  • upload basic set of files from data folder using STA ip/upload
  • further uploads can then be done using ip/edit
  • normal interface is at ip/
  • Set TargetHz and duty cycle to find best match
  • Advanced shows calculated parameters
  • Tolerance may be increased to find a match with most bits that meets tolerance
  • bitsPerWord may be entered to find match that uses this number per I2S word cycle
  • A range may be put in to bitsPerWord to allow searching e.g. 24,31
  • Word length (0-15) may be put into advanced section. This does not effect the clock but does change the word select signal to be from 16 - 31 bits of raw bit clock

espi2sclockgen's People

Contributors

roberttidey 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.