Giter VIP home page Giter VIP logo

gpioactuator's Introduction

GPIOActuator

Why does a chicken dance its food into the dirt? My theory is that it makes it hard for her mortal enemy, the rat, to easily steal it. Consider: anywhere a chicken can go, the rat can follow. Place a mound of food or any configuration of feed at the hens disposal, the rat can easily acquire it. The exception being spread throughout the dirt. The chicken can then peck it incrementally, something they are optimized for, while the rat is flummoxed due to its ratty configuration.

In that vein the optimum chicken feeder is one that dumps the feed into the dirt on a timed basis; hence the genesis of this project. This code activated a series of solenoids (or any gpio device), once a day over 6 days to open a latch that causes a door on a series of compartments of an upside down box filled with feed to swing down, thus dumping the chickenfeed.

Of course, any timed GPIO operation can also be performed via Java using an SBC. The code here also has the advantage of recording the last solenoid activated such that if a failure occurs and a restart is performed, the next latch in the sequence is properly activated. The code does not depend on an RTC of the correct time, merely sleeps the necessary interval between operations. The process should be started 24 hrs before the time the first feeding is to occur. If a power fail occurs, the bird will have to wait the interval the power returns plus 24 hours, so hopefully the hungry, angry hen(s) only wait a maximum of 2 days for their feed in that case.

gpioactuator's People

Contributors

neocoretechs avatar

Watchers

 avatar James Cloos 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.