Jump to content

A Dial to Change a Variable


Ross

Recommended Posts

Posted

I would like to turn a dial, then press a keypad button which would cause a variable to change based on where the dial is pointing (e.g., 1-100).

My use case is: I have 100 (and growing) Sonos playlists.  Currently, I can set a State Variable which runs a program to load/play that particular playlist.  I have rigged a couple of keypads to have lettering similar to a phone.  If I keypress S-U-R-F, the Beach Boys play.  Keypressing J-A-Z-Z changes the variable accordingly.  It works fine, but I have other ideas.  So, I was thinking of some kind of dial.

I'd appreciate your thoughts.

Ross

Posted

Insteon's new i3 dimmer comes to mind.  Cap the load wire and use it's status which should be 0-100.  The problem is there's no way to know what "level" you've adjusted it too.  I have no idea how to create a display that would update in real-time with that dial turning.

 

  • Like 1
Posted

@MrBill I saw the I3 which gave me this idea.  However, I didn't think about capping the load wire as I know next to nothing about electricity.  I'll get one and start tinkering.

It doesn't have to look living-room-beautiful. I could put a pointer on the dial and create a thermometer-type display behind it.   I was also thinking about an Arduino - I'm just not up to speed on how to set the variable from one.

By the way, the pic is what I'm using now to change the variable based on pressing 4 buttons (I use the clear buttons).  I just have to make sure my 4-letter codes for each playlist are all different.

Thanks,

Ross

image.png.c6f06fc222e35ec9658c03386e74a0b7.png

Posted (edited)

My thoughts turn to an amazon echo where your combinations of selections have no limits.

 

I used a KPL for a combination lock to operate security functions, and reset water alarms, re-enabling a well pump, a dishwasher, and a laundry washing machine, each on it's own code sequence.

Edited by larryllix
Posted

Using all those keypad buttons seems like a lot of work.  If you want wall-based vs. phone base control, perhaps just put an i-pad Mini on the wall with a Luxe port case and use the Sonos app.  Then you can repurpose those buttons for your 12 favorite playlists or something else.

Posted
2 hours ago, larryllix said:

My thoughts turn to an amazon echo where your combinations of selections have no limits.

 

I used a KPL for a combination lock to operate security functions, and reset water alarms, re-enabling a well pump, a dishwasher, and a laundry washing machine, each on it's own code sequence.

@larryllix Larry, I should have given credit where it was due.  I "sampled" your program to create mine.  I tucked it away a few years ago and finally found a way to use it in my house.  So, thank you!

@EW1 Thanks for your suggestion.  I'm an Android guy myself and I don't know the Apple stuff.  And, I have issues with the Android tablets that seem to always need updating and whatnot.  Pressing 4 buttons isn't that bad and it seems like "magic" to guests.  Of course, so is Alexa - but I haven't gravitated to the spoken word yet.

Ross

Guest
This topic is now closed to further replies.

×
×
  • Create New...