Make something happen when the lights come on
- Tessel based light activated action, such as turning on a fan via relay
- Remeber to run
npm install
in this project repo to get all the dependencies
- 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)
--
- Plug your Ambient module into port A
- 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 t2 list
to make sure your Tessel is connected, then runt2 run app.js
- Your T2 app will noisily output console logs (notice
DEBUG = true
) - Shine your cell phone light onto the relay, then experiment with the trigger-level
So now the question is, what else can you do with this?! :)
--
Made with ♥ by CAA