esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
420 stars 26 forks source link

Digital potentiometers X9C103/X9C104 etc #1270

Closed RomeHein closed 1 year ago

RomeHein commented 3 years ago

Describe the problem you have/What new integration you would like

X9C103, X9C104 can be found for a dollar or so on aliexpress and can be really useful. They are digital potentiometers that can be tricky to use for beginners: https://inventr.io/%F0%9F%8E%9B-how-to-connect-the-digital-potentiometer-x9c102-x9c103-x9c104-to-arduino/ This would be great to have an integration in esphome. Something were all I have to do is set the level of the resistance. At the moment I have to use lambda with for loop to control these.

Please describe your use case for this integration and alternatives you've tried:

Atm I use these type of digital potentiometer to control the power of my kitchen hood. But being able to control a digital pot is useful for tons of other things :)

Additional context

itakestime commented 3 years ago

@RomeHein, are you able to share some code on how you go this working in your setup?

I'm wanting to use a X9C but I see it's not supported out of the box in ESPHome yet.

Strixx76 commented 3 years ago

+1 for supporting X9C-digital potentiometers.

I am about to use two of them for building a digital thermostat for an Nibe Fighter 310p boiler.

Found two Arduino libraries for these: https://github.com/philbowles/Arduino-X9C https://github.com/lucyamy/LapX9C10X

Patrik-Hansson commented 2 years ago

Searching for how to control this component for exactly the same reason. A Nibe Fighter 310p :)

+1 for supporting X9C-digital potentiometers.

I am about to use two of them for building a digital thermostat for an Nibe Fighter 310p boiler.

Found two Arduino libraries for these: https://github.com/philbowles/Arduino-X9C https://github.com/lucyamy/LapX9C10X

MB901 commented 2 years ago

I write some kind of code... but I'm not an expert ! Maybe it will help someone... https://gist.github.com/MB901/8e3991fdd8201f422cf1212073d15f66 image

Patrik-Hansson commented 2 years ago

Thank you, i had totally given up on this. Looking forward to trying the code this weekend.

Patrik-Hansson commented 2 years ago

Sorry for a very late response but this seems to work. Thank you very much.

edzima commented 1 year ago

When can we state this on production?