Giter VIP home page Giter VIP logo

oilerexample's People

Contributors

naylom avatar

Watchers

 avatar

oilerexample's Issues

Change using Pin 2,3 for optical sensors and use these for the two inputs from the machine being oiled ( eg lathe)

Currently each motor has an associated optical sensor with a related input pin. In the current code the input pins are monitored using attachInterrupt. On the Uno these are limited to 2 once pins 0 & 1 are used for a user display / input. The net result is this limits the number of motors to 2. To add more flexibility the code will be changed to use Pin Change Interrupts to dectect input from the optical sensors, Pin Change Interrupts can detect changes and generate interrupts on a greater variaty of pins and hence allow more motors. The two optional inputs from the machine being oiled will be moved to use the freed up pins 2 and 3.

Motors should stop and start independently

Currently once the Oiler start oiling it waits for all motors to completed their target output (number of drips) before entering the mode waitinf for some restart criteria to be met. This means if one motors is not outputting then all will stop. In this error condition it is deemed better to allow a motor that has completed to be go into monitor mode and continue oiling when needed.

A result of this is that the Oiler will have an addtional state of PARTIALLY_RUNNING when the number of motors running > 0 and < NUM_MOTORS

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.