Giter VIP home page Giter VIP logo

clap-switch's Introduction

ClapSwitch

This software implements logic for a Clap Switch. Two claps turns it on. Two claps turns it off again. Features include:

  • controllable light hue and brightness
  • a mechanical push button for when clapping is inappropriate

Please note that this is not an officially supported Google product. Though I am employed by Google, this is a personal project.

Speaking of which, I'm not a professional hardware engineer, just a very enthusiastic hacker. Let me know if you find bugs, I'll try to fix them.

This project is documented on hackaday.io at https://hackaday.io/project/165448-happy-clap-switch.

Software

The implementation consists of three files:

  • .atmelstart/atmel_start_config.atstart The Atmel START configuration file, used to generate hardware intitialization, libraries and boilerplate code. Edit this file using the online editor at start.atmel.com.
  • main.c The actual code that does things.
  • driver_isr.c An empty file that replaces the default driver_isr.c file generated by Atmel START.

This should be compatible with any IDE/environment that uses Atmel START but has only been tested with Atmel Studio.

To use this repository with Atmel Studio:

  1. Clone this repository to a temporary location. This is important because Atmel Studio wants to create its own directories.
  2. Upload the atmel_start_config.atstart file to start.atmel.com and generate and Atmel Studio configuration.
  3. Open Atmel Studio and import the configuration. You will now have a project full of boilerplate code.
  4. Copy the temporary repository directory into the Atmel Studio project directory. This will overwrite main.c and driver_isr.c. Make sure to copy the .git directory and .gitignore files too.

Hardware

This was written to run on an Atmel ATtiny3217 processor. It takes input from a microphone, a push button and two rotary encoders. Output is to a short string of WS2812s LEDs.

clap-switch's People

Contributors

alanvgreen avatar

Stargazers

 avatar  avatar  avatar

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.