Giter Club home page Giter Club logo

sleeper's Introduction

SLEEPER

Purpose

Sleeper is a device that helps you fall asleep faster by reducing your breathing form 9 to 4 breaths per minute. It lightens and dims the LED so you know when you should inhale and exhale. You can set maximum brightness of LEDs and maximum time the device will be operating. After this time it will shut down every periphery and go to power-down mode to save battery. It can operate on single LiPo cell or two AA batteries or whatever gives the right voltage for ATtiny13.

It is based on the project FADing but it uses smaller and cheaper ATtiny13.

Usage

The device has three buttons: +, - and Mode. After powering up you can set maximum brightness and time for which the device will be operating. You increase brightness/time with + button and decrease with -. Mode button changes what you will modify at the moment (brightness or time). Maximum brightness is showed on one LED and time is symbolized on the other (brighter means longer). One increase in time is increase of one minute (same for decrease). After about 4 seconds from the + or - button push the device will blink twice and go to operating mode. In this mode you can select which LED will be used (during all operating time) with Mode button. Pulsations slowly decrease from 9 to 4 pulses per minute. After the time set earlier device turns off LEDs and go to power-down mode. You can start using it again by pressing any button and then following instructons from the beggining but this time it will remember your previos settings (brightness and time). You can manually put device into power-down mode by pressing both + and - button.

Schematics and PCB

Schematics and PCB are available on CircuitMaker.

Compiling

Program can be compiled with Atmel Studio 7 or other similar tool.

Output file has 1000 bytes which is 97.7% of ATtiny13 memory.

sleeper's People

Contributors

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