Coder Social home page Coder Social logo

tinyparticlesupervisor's Introduction

TinyParticleSupervisor

Using an ATTINYx4 with SpenceKonde/ATTinyCore to control the enable pin on a 3rd gen particle.io board. Keeps Real Time for only 6uA around 100ppm or worse.
ATTINY simulates I2C for two registers and controls a wake pin according to internal timers.

Wiring

Pin Mode Function Core Pin ATTINYx4 PIN
OUTPUT Control Particle EN pin 1 PA1
INPUT Detect if Particle is awake 2 PA2
INPUT I2C SDA 6 PA6
INPUT I2C SCL 4 P4

Registers

All registers read and write 32 bit

I2C Address = 0x07

unixTimeRegister 0x01 (Increaments at 1HZ from WDT)

wakeTimeRegister 0x02

TODO:

  • Add defines to support both ATTINYx5 and ATTINYx4
  • Investigate alternate chips, ATtiny13A , perhaps STM32L0 for lower run power, RTC crystal, Proper I2C
  • Add function to read VCC for boards without Power Good Signal

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.