Giter VIP home page Giter VIP logo

clockwork-masters's Introduction

Arduino code for Clockwork Butterfly's Celestial Bodies performance in July 2016.

What is this?

This repository contains designs and software for an arudino-compatible board used to run lighting effects in live performances. A typical board consists of:

  • 1 x Teensy-LC microcontroller, which runs the show.
  • 3 x Strings of LED lights, to delight the audience.
  • 3 x 2N7000 MOSFETs, for low-side driving the LEDs strands.
  • 3 x 10Ω resistors, for current limiting the LED connections
  • 3 x 33Ω resistors, to stop the MOSFETs from ringing.
  • 3 x Hall Effect Sensors (4 in the original build) for user configurable events.
  • 1 x 3-axis accelerometer, for movement-reactive effects.
  • 1 x 4-dip switch bank, for configuring the board without needing to reprogram.
  • 1 x S7V7F5 5V step-up/step-down voltage regulator, giving us lots of power flexibility.

For simplicity, the boards used in the performance run off 5V USB batteries, but we've also had success withe 3.3V CR2032 coin batteries, and 9V cells. The main difference is higher voltages allow for more juice to be pumped to the lights, which affects their brightness.

Things to find here

Circuit diagrams are in the kicad directory, with various reference materials (including the main board design) in the reference directory. This main directory contains the source code for the boards.

Building with PlatformIO

Sample usage for an Arduino Uno after installing platform.io:

platformio run -e arduinouno --target upload

Or for a Teensy (3.0 or LC, respectively):

platformio run -e teensy30 --target upload
platformio run -e teensylc --target upload

Or to build for all platforms specified in the platformio.ini:

platformio run

Installing on Teensy boards

Note that if you are using the Arduino IDE with a Teensy microcontroller you will need to install Teensyduino.

What does it look like?

Pictures:

Finished board, front Finished board, back Display piece audience members can interact with

clockwork-masters's People

Contributors

dhood avatar pjf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

dhood

clockwork-masters's Issues

Accelerometer can over-enthuse quell sensors

Current behaviour: The accelerometer continues to add brightness regardless of other settings. This means it can cause sparkling to occur even when lights should be quelled.

Desired behaviour: The accelerometer should ignore motion while the quell sensor is active (but it should continue to decay regardless).

Line 3: Speed pulses up

Like accelerometer adding sparkle, but line 3 will speed up the rate at which everything moves (pulsing and delays between).

Code light config for dancers

Quoting Alex:

  • Line 1 - quell all the lights
  • Line 2 - brighten all the lights
  • Line 3 - make them all pulse in unison

Dedicated Hall Effect Testing mode

We should assign a dip-switch to put things into HES testing mode.
This would run an alternate program that lights up lines when HES
sensors are on.

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.