Giter Club home page Giter Club logo

dancing_lights's Introduction

dancing_lights

This is a project made for ELEC3607 in 2019.

The size of the LED matrix is 8x32.

Actual connection of circuit:

There are two parts contained in this part: Arduino and Android The code for Arduino can only runs on Arduino due as there are some registers for debouncing used in the code.

There are two ways to control the system: Bluetooth remote and button set.

Two main functions are designed for the system: Dancing lights and Snake Game.

Main menu:

Dancing lights:

The dancing lights uses arduinoFFT library to transform the audio signal recieved at analog pin A0 to frequency domain and map the value onto the x domain. Then the peak value of each column will be used to show the pattern according to the mode and brightness. four light patterns are designed for this part.

Pattern 1:

Pattern 2:

Pattern 3:

Pattern 4:

Snake Game:

The snake game is limited in a 8x16 space. There are two types of points in the game: score point and bonus point. Eating the score point will increase the length of the snake by 1 and increase the game speed. Eating the bonus point reduce the length by 1 and decrease the game speech.

The control of the snake game is designed using debouncing interrupts, so the game can be played in a fluent way.

Android app:

In the Android app, we made several buttons sending bytes of commands to the arduino board. The app can do the all the controls as the button set. Additionally, we add the voice recognition to the app. Speak while pressing the voice button will activate it. After releasing it, the words recognized will be shown on the screen. If the specific commands are detected in the words, the commands will be excuted.

dancing_lights's People

Contributors

880n avatar cyrilcsr avatar

Stargazers

 avatar  avatar

Forkers

cyrilcsr

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.