Giter VIP home page Giter VIP logo

sonosremote's Introduction

SonosRemote

Sonos remote control based on an ESP8266, a rotary encoder, MicroPython and Sonos HTTP API.

The finished remote

Features

  • Control playback and volume with one knob
    • Volume up/down on cw/ccw rotation of encoder
    • Toggle play/pause on single press
    • Next track on double press
    • Previous track on long press
  • Activity LED on sent commands
  • Configurable via provisioning file
  • Syslog support for info/debug logging
  • Implemented based on asyncio

BOM/Prerequisits

  • Wemos D1 Mini
  • KY-040 rotary encoder breakout
  • Existing and configured install of Sonos HTTP API (e.g. in a Docker container).
  • 3d printed case & knob
  • 2 x M3x10mm screws

Setup

The firmware files can be find in the src/ folder.

  • If not already done, install Sonos HTTP API somewhere on your network. This is mandatory.
  • Flash current version of MicroPython to the Wemos D1 Mini as described here
  • Create a sonos_remote_config.py for your target network, room and pin assignment. An example is provided which assumes the following wiring for the rotary encoder:
    • CLK to D6 aka pin 12
    • DT to D7 aka pin 13
    • SW to D5 aka pin 14
  • Copy main.py, sonos_remote_config.py and the whole lib/ folder to the Wemos D1 Mini. You can use ampy, rflash or similar to do this.
  • Reset the board and test.

Case

STLs for printing a case are provided in the stls/ folder.

Please note:

  • case_bottom.stl needs support from the build plate
  • case_top.stl needs to be flipped to lie flat, no supports needed

sonosremote's People

Contributors

foosel avatar

Watchers

James Cloos 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.