Coder Social home page Coder Social logo

hackathon_smart_headphone's Introduction

Hackathon_Smart_headphone

Idea -

The idea behind smart headphones is to ease the work of using keys or controls to toggle audio/video by making the headphones smarter. Smart Headphones can recognize if they are being worn and not, and automatically pause and resume all audio streams(and related video streams)accordingly.
In addition, the headphone is also designed in a way that it automatically adjusts the volume based on the surrounding noise level.

Working -

The technology used behind the smart headphones is simple to integrate and easy to implement.
An IR sensor is used to sense if the headphone is being worn or not, the data is received using an Arduino and based on the received data, the audio/ video of the system is controlled. Another feature of the headphone is automatic increase/decrease in the volume of streaming media depending on the levels of ambient noise. A microphone is used to receive the data, and based on the data received by the microphone, system volume is changed.

Code contain -

  • Arduino file keep checking the data for IR sensor and sending that to python.
  • Python file for controlling volume sense the microphone sound and make the threshold for every 3 seconds and if the sound remain same for 3 second it declare it as noise and according to it increase or decrease the volume.
  • Python file for pausing and unpausing get the data from arduino and before the desired task of switching off and on the media it using the subprocess and os process to access sound card.

Installation and start development

$ sudo apt-get update 
$ sudo apt-get install python pip 
$ sudo apt-get install portaudio19-dev python-dev alsa-utils 

Development

Want to contribute? Great!

Make a change in your file and instantanously see your updates!
Feel free to drop a mail on "[email protected]" Saying subject - Smart Headphone Open your favorite Terminal and run these commands.

$ git clone https://github.com/sudhanshu55/Hackathon_Smart_headphone

Reference

Download Arduino on linux
Arduino Reference
Soundmeter
Subprocess
PySerial

Todos

  • Make volume detection more structural.
  • Add new features.
    -- For Phones.
    -- Work for windows.

Working on

  • PCB design to eliminate Arduino.
  • Bluetooth Data transfer.

License

Apache License 2.0

hackathon_smart_headphone's People

Contributors

sudhanshu5harma avatar

Stargazers

 avatar

Watchers

 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.