Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 7 of 7
  1. #1

    ESP8266 Remote Volume Knob

    ESP8266 is a really cheap (<ú5) microcontroller with built in WiFi. I loaded up a D1 Mini with ESPEasy and added a Rotary Encoder to make a Volume control.

    Name:  IMG_0714.jpg
Views: 448
Size:  235.4 KB

    Code:
    on System#Boot do
        TimerSet_ms,1,1
        Pulse,2,0,10
    endon
    
    on Rules#Timer=1 do
     
     Let,1,[Rotary#Count]
    
      if [Var#1]!=[Var#2]
         if [Var#1]>[Var#2]
            let,3,([Var#1]-[Var#2])*6
            sendtoHTTP,192.168.1.100,9000,/?player=Computer&p0=mixer&p1=volume&p2=%2b[Var#3]
        else
            let,3,([Var#2]-[Var#1])*6
            sendtoHTTP,192.168.1.100,9000,/?player=Computer&p0=mixer&p1=volume&p2=%2d[Var#3]
         endif
    
        Let,2,[Var#1]
        Pulse,2,0,10
        TimerSet,2,10
      endif
    
      TimerSet_ms,1,100
    endon
    
    on Rules#Timer=2 do
       Pulse,2,0,30
       DeepSleep,0
    endon
    Name:  Screen Shot 2020-10-26 at 18.12.36.png
Views: 434
Size:  100.5 KB

    I can provide more details if anyone is interested.

    Tony

  2. #2
    Junior Member
    Join Date
    Apr 2019
    Posts
    21
    I understand the pieces-parts, but what would this be used for? A volume control of what and how?

  3. #3
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    3,096
    Quote Originally Posted by meq123 View Post
    I understand the pieces-parts, but what would this be used for? A volume control of what and how?
    any LMS player (where volume has not been locked).
    Would allow you to put the volume controller anywhere convenient. It is configured to control a single nominated player.
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  4. #4
    Junior Member
    Join Date
    Jun 2016
    Location
    Bretagne
    Posts
    17

    I can provide more details if anyone is interested.

    Tony
    Yes please, looks like a nice lockdown project

    Cordialement, Strebor

  5. #5
    More details:

    I used a D1 Mini that you can buy from Ebay / Amazon etc. There are various clones that are functionally equivalent.

    I used the experimental firmware in this post: https://www.letscontrolit.com/forum/...p=47456#p47456
    because it includes Wake on Lan. You will need a device driver: https://escapequotes.net/esp8266-wem...indows-driver/ or MAC https://kig.re/downloads/CH341SER_MAC.ZIP

    This is an easy tool to flash the firmware: https://github.com/marcelstoer/nodem...asher/releases

    If you have problems flashing, try a different USB lead.

    Have fun!

  6. #6
    Junior Member
    Join Date
    Jun 2016
    Location
    Bretagne
    Posts
    17
    Quote Originally Posted by Wiredcharlie View Post
    More details:

    I used a D1 Mini

    Have fun!
    Thanks, I found the Rules tutorial pages on the easy site. I'll hack about with one of the esp's I've got in the gache box..
    Strebor

  7. #7
    Member
    Join Date
    Apr 2019
    Location
    Finland
    Posts
    71
    Awesome project!

    I have a few questions. How does the player start the playback when your turn on volume? Have you set it up from lms settings?

    And is it possible to use the push button on the rotary encoder to change a song? Do you have a code for that?

    And I guess it is not battery powered?

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •