Giter Site home page Giter Site logo

airspace's Introduction

#「複数同期型多色LEDランプシェードと空間演出用ディスプレイ」

チーム Airspace
個人用メモ

これ いず なに?

学校の文化祭に向けて制作しています。
天井から吊り下げたLEDのランプシェードを押して揺らすと、スイッチが反応し、ランプシェードの色がすべて同時に変わるようになっている。同時に音も鳴らす。
PC画面はプロジェクターで空間に投影し、画面の色をLEDと同じ色に変更させることによって、空間全体をその色で包むようにしたい。
コードはとにかく雑。

Arduinoのコードについて

使用: airspace04.ino をArduino Unoに入れてる
それ以外は過去の遺産 Arduinoの基盤回路はLED3端子が並列でLEDドライバに入ってるだけなので説明省略。

導入

よくわかんないけどとりあえず npm i

実行

  1. ArduinoとUSB接続する
  2. node app.js
  3. ブラウザでindex.htmlをローカルで開く

音声追加の方法

もっといい方法あるだろうけどとりあえずこれで。

  1. sound/フォルダ内に、
    sound[連番].wav
    というファイル名でwavファイルを追加する。
  2. index.js内の再生音声の最大乱数を書き換える(最終連番+1の値)
  3. 【任意】index.htmlのリストに追加

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.