Skip to content

Latest commit

 

History

History

node-activate-sound

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

node-activate-sound

Make something happen when a sound is heard

  • Tessel based sound activated action, such as turning on a light via relay
  • Remeber to run npm install in this project repo to get all the dependencies

Parts used:

NPM Software modules used:

  • node-static - simple web server to demonstrate project
  • os - used to get the server IP address and return it to a client
  • tessel - cannot live without it ;)
  • ambient-attx4 - lets you read and act upon sound and light levels
  • relay-mono - try turning on a rotating light/etc.
  • tessel-toggle-power - toggles a relay module, or specified pin (wire up your own relay and trigger it)

--

Instructions

alt text

  1. Plug your Ambient module into port A
  2. Plug your Relay module into port B
    Then wire something to the relay channel 1 or 2 (or both)
    Alternately you could toggle pins as mentioned above
  3. t2 list to make sure your Tessel is connected, then run t2 run app.js
  4. Your T2 app will noisily output console logs (notice DEBUG = true)
  5. Clap loudly to trigger the relay, then experiment with the trigger-level

So now the question is, what else can you do with this?! :)

--

Made with ♥ by CAA