Picture of Clap-on Lights with Tessel


Tessel listens for a clap, then toggles a relay to turn something on and off.

(Also view this project/get the code easily at the Tessel projects page)

You need:

To use:

  1. Clone this repo
  2. npm install
  3. Connect lights to Relay Module in Relay port 1
  4. Plug in modules to Tessel: Relay in port A; Ambient in port B
  5. Plug in tessel via USB
  6. Plug in power to lights/relay
  7. Run "tessel run index.js" from this folder in your terminal
  8. Clap! Watch the lights turn on and off.

See it work:

On vine

Step 1: Plug in wires to Relay module

Picture of Plug in wires to Relay module

A relay acts as a switch– either connecting ('on') or not connecting ('off') the two wires fed into the channel.

Use a pen or a nail to press down on the top of the relay, and feed in the red (power) wire.

The ground wire doesn't go into the relay; it just goes straight to the power adapter.

Verticees1 year ago


Carleyy1 year ago

Cool! Have you used this in any larger projects?

SelkeyMoonbeam (author)  Carleyy1 year ago

Not the lights. I've been playing around with electrodes + Tessel lately: https://github.com/Frijol/Tessel-GPIO-EMG