GithubHelp home page GithubHelp logo

asdlei99 / sccec_stair_piano Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jamesdsmith/sccec_stair_piano

0.0 0.0 0.0 1.22 MB

Sierra College Computer Engineering Club: Staircase Piano Project

C 68.95% Shell 2.29% Arduino 28.76%

sccec_stair_piano's Introduction

sccec_stair_piano

Contains all the code and files necessary for the Sierra College Computer Engineering Club's staircase piano project

The project is intended to be installed on a staircase. Laser modules will shoot a laser across the surface of the stairs at a photoresistor, which is hooked into an analog pin on an Arduino. When the person's foot breaks the beam of the laser, the resistance of the photoresistor will decrease and the current to the pin will drop. This will be detected in code, and stored as a state variable on the Arduino.

A Raspberry Pi will communicate with the Arduino over I2C, and will periodically ask the Arduino for the state variable. Reading this state variable will allow the RPi to determine which lasers are blocked, and will play the appropriate sound.

Schematic

Stair Piano Schematic

Requirements:

  • Arduino Mega 2560
    • Uno or smaller Arduino usable with 4 or less steps (2 analog pins needed for I2C)
  • Raspberry Pi
    • Libraries: SDL, SDL_mixer, i2c-dev
  • Components:
    • 8x Photoresistors
    • 8x 1kΩ Resistors
    • 8x 5mW Laser Modules

sccec_stair_piano's People

Contributors

jamesdsmith 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.