GithubHelp home page GithubHelp logo

horseshoe-json's Introduction

HorseShoe-Json

A project to light a Horse Shoe Christmas tree with an Arduino pattern generator.

Ideas

Using 50 addressable LED string. 10 Horseshoes each with 5 LEDs arraged in a pyramid, 4,3,2,1 per row

The Arduino must be able to load a pattern file which will drive the pattern generator

A pattern file example:

{
	"name": "Chase Shoe By Row Up",
	"description":"Turn on each row Shoes on in sequence up",
	"delay": 1000,
	"commands":[{
		"reverse" : true, 
		"blank": true, 
		"random": false, 
		"invert": true,
        "frequency": "*"
		}],
	"sequence": {
		"steps": {
			"0": [0, 1, 2, 3, 4 ,5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19],
			"1": [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34], 
			"2": [35, 36, 37, 38, 39, 40, 41, 42, 43, 44], 
			"3": [45, 46, 47, 48, 49]
		}
	}
}

name a Simple name for the pattern, description a short descsription of what the pattern doesween delay the default delay between sequence steps sequence container for the pattern steps steps each step in the pattern, containing an array of the LEDs to turn on

commands allows for addtional funtions to be applied to sequence as a whole or on each step

  • reverse plays the sequence but in reverse order
  • blank will turn all LEDs off after the sequence has completed
  • random will play the steps in a random order (see also frequency)
  • invert will invert the current step once it has been played
  • frequency how often to play this pattern for before exiting. "*" is infinet The above example will turn on each row of LEDs on in turn from the bottom.

More to come as the project evolves...

horseshoe-json's People

Contributors

john-synergi avatar johnburrin avatar

Stargazers

 avatar  avatar

Watchers

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.