Coder Social home page Coder Social logo

tinycube's People

Contributors

joefutrelle avatar

Watchers

 avatar

tinycube's Issues

test without a4 debug display

Now that I'm logging to eeprom I can ditch the a4 debugging display, but I want to be able to re-enable it. May require some Makefile conditional finagling.

log to eeprom

Right now the eeprom is just being tested. intstead, log time/temp.

packed time is 5 bytes, so if I add 3 bytes for variables I'm logging (initially just temp), that's 8 bytes for 8 log entries per 64-byte page.

since the first byte of such a record will never be zero (that was only possible in part of 2000), it's easy enough to zero a series of log pages, write entries, and then the code reading it can easily tell when there are no more entries to read.

need EEPROM -> UART utility

To retrieve data from the EEPROM it needs to be accessible through USB. The easiest way is probably via an Arduino's serial monitor.

factor wdt sleep code into main app

The new config of powering the peripherals from an output pin has been factored in, now take the rest of sleepy and factor it in so that the instrument only wakes up occasionally to read / display the time / temp.

force temperature read

The DS3231 normally reads the temperature every ~60s but has an I2C command to force read the temperature.

Add an API and call that before reading time/temperature, to get a current reading.

reset on sleep

The device sometimes resets on sleep causing it to restart logging from the beginning of the eeprom (need to confirm).

This may be related to a low power condition as I'm seeing surprisingly low battery life on 3x AAA batteries. The battery hog is almost certainly the LED display.

Running out of power also seems to cause incorrect RTC readings and gibberish on the display.

generalize EEPROM code to work across internal / external

Should be one API for internal and external that enables

  • variable buffer size (is this even possible?) or at least device-dependent buffer size
  • arbitrary address read/write of arbitrary size data with transparent page wrangling underneath including auto-flush
  • flush function to force page write

make tinycube sleepy

The device will spend most of its time asleep, so need to take some uncommitted code that does this and port it to this codebase.

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.