My problem is that in order to properly embed that with a nice enclosure from Feller (the well-known brand used virtually everywhere in Switzerland when it comes to wall buttons and sockets), I would need a slimmer diameter shaft. All those I find are 6mm, I need 4mm.
I tried to cut the length and 3D print an adapter (6mm => 4mm) but 1. I need to cut a lot of the metal shaft and 2. the 3D printed adapter is quite fragile, so the whole is not usable on a day-by-day basis.
I cannot see how to find such a rotary encoder, but I’m sure there’s a way. So here the requirements if someone can help me:
Either ready-to-use module with enclosing electronic for the direct connection to my ESP8266, or clear instructions on which base plate to use
4 mm diameter shaft, full cylindrical, no need for a “cut cylinder” like on the photo
`>= 12 mm shaft length (I can always cut a bit if longer) on top of the mounting screw
mounting screw like on the image above (to screw it on the support plate)
Click/Push support (so that in addition to the rotary encoding I can detect a push for basic on/off)
I don’t need the pins from the picture, I can solder, I just would like to limit soldering to the connection and not the encoding electronic associated to the raw rotary encoder.
Yes, that could be a solution, the problem is that the design is not the same as all my other wall buttons, and I’m ticky about design and having everything uniform
When it’s a single button, that can be discussed (it would need to be white at least), but chances are high mounting it on the wall won’t be straightforward nor clean (had the case with an in-wall USB transformer recently), but the second point is that Feller allows to create any combination of single button, double button, socket, … combined the way you want and I have such dimmer combined with a socket for instance. Having any kind of button that is not Feller will just make everything either not combinable or totally ugly
Yes, that’s indeed a way to do it. Didn’t try to find a 4mm potentiometer. I liked the “rotate indefinitely” instead of having start/stop positions with a potentiometer but that could be a solution. However I’m unsure I can find a potentiometer having the push function as well. But possibly that’s a solution I could investigate.
Do you have experience with that?
Edit: the actual problem I face is not really the rotary encoder vs potentiometer, but getting a 4 mm shaft…
4mm pots are not hard to find, even 3mm are readily available. Push switch makes it rare. But if it’s connected to your esp, you don’t really need it, just program the last few degrees to be off.
I drilled a 2.5 mm hole through the entire length of the shaft, which I then shortened. I then used an M3 drill bit to insert and screw in a threaded rod, which I glued in place, and then added a 4 mm hollow brass tube, which I also glued in place.