Code Monkey home page Code Monkey logo

j5-pomlet's Introduction

Scratching a little itch I have about simple Pomodoro timers. This code will run on:

  • Arduino Uno R3 and similar Arduino boards
  • Intel Edison + Arduino Breakout
  • Tessel 2
  • Raspberry Pi 3 (coming soon)

Wiring

You'll need:

  • 3.3V or 5V basic LCD display (depending on your device's logic-level voltage)
  • 5 pushbuttons
  • 5 10kΩ resistors
  • 1 standard LED
  • 1 100Ω (3.3V devices) or 220Ω (5v devices) resistor
  • 1 10kΩ potentiometer
  • A breadboard or two
  • A whole grip of jumper wires

Install and Use

  1. Clone/fork/download/whatever repo
  2. npm install
  3. Continue with board-specific instructions below

Board-Specific Instructions

Note: The current method of swapping out require'd config modules in main.js is hamfisted. It got this way because of the need to run the script in contexts that might not be able to take command-line args (e.g. t2) but I'll make it better when I get a chance.

Arduino-Compatible (Uno-ish) Boards

You shouldn't have to make any adjustments to code unless you use different pins than are declared in config.js for your components.

node main.js

  1. npm install
  2. Plug components in (TODO: fritzing)
  3. node main.js

Tessel 2

Wiring Diagram for LCD/Buttons interface to Pomlet on Tessel 2

Note: Make sure to use a 3.3V LCD

  1. You'll need the tessel-io I/O plugin for Johnny-Five: npm install tessel-io
  2. Edit main.js to use config-tessel.js
  3. Make sure your components are plugged into the pins declared in config-tessel.js
  4. t2 run main.js

Edison + Arduino

Note: To run this on an Edison, I recommend that you clone this repo to the Edison itself (fortunately the default Yocto Linux on Edison comes with the git and the npm that you need).

  1. You'll need the galileo-io I/O plugin for Johnny-Five: npm install galileo-io
  2. Edit main.js to use config-edison.js
  3. Make sure your components are plugged into the pins declared in config-edison.js
  4. node main.js (run this on the Edison)

j5-pomlet's People

Contributors

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