Coder Social home page Coder Social logo

monocle-micropython's People

Contributors

andypiper avatar josuah avatar rohitrathnam avatar siliconwitch avatar vr2045 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

monocle-micropython's Issues

Bluetooth Protocol

Implementation of a Bluetooth-based video streaming protocol both-ways in/out of the monocle.

MK12: implement the LED blink patterns

About the behavior of the LEDs when booting:

  • Blinking red when something goes wrong.
  • Blinking green (steady at first) when everything is right and waiting for a connection.
  • Turned off upon connection from the phone (normal operation)

MicroPython `device` module

To update later:

  • update_available()
  • update() end-end functionality

For battery_leve()

  • Set MUX_SEL to batt_voltage
  • Use a polynomial equation
  • Set MUX_SEL back to high impedance

Check the delay needed for the initial power surge

A last small check to make sure that as we enabled more things, the time we wait for the power rails to stabilize (startup time of all chips) do not get too dangerously close to the wait time we have.
Could lead to mismatch between production/dev version.

Investigate the micropython crashes

At times, Micropython triggers an internal assert().
Not sure where these are rooted from.
This happens when blasting the same command many times (~100x).

Refactoring PMIC and boot up code

  • memcpy issue
  • cleanup makefile
  • cleanup linker script
  • replace asserts with handled error functions
  • cleanup unused logging
  • migrate i2c calls to new driver
  • new, safer pmic on/off functions
  • fix led functions

MK12: Sleep behavior

How it works on frame:

checkBatteryOrCharging()
{
  readADC();
  readCharging();
  if (charging || low_battery)
  {
    PMICPowerDownEverything();
    enableRTCWakeup(1000);

    // This will never return
    deepSleep();
  }
}

main()
{
  initialiseGPIO();
  initialiseI2C();
  initialiseADC();
  RTOSTask(checkBatteryOrCharging, 1000);
  checkBatteryOrCharging();

  // Only gets here if not charging
  PMICPowerUpEverything();
}

Measure the power consumption

  • Desolder the battery cell of one of the boards.
  • Measure the current.
  • Turn as many things as possible off until the current is at its minimum.
  • Implement the python calls for turning mode on
  • Estimate battery life in this mode.

OTA DFU

Over-The-Air Device Firmware Upgrade.
Nordic provides something for Bluetooth for that.
Need integration with the current firmware image.

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.