RobotDyn Control AC bulb with Arduino AC Dimmer
Вставка
- Опубліковано 3 лип 2024
- Step by step explained how to use RoboDyn AC Dimmer module which is based on BTA16 600B Triac module.
**** Free Course ***
Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
The best thank you for me is to not to skip ads and Subscribe 🔔 to my channel, like 👍 the video It is greatly appreciated. 🔔 😊.
I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe and enable the bell 🔔.😊
Download Arduino code for this video: robojax.com/L/?id=89
*** Purchase this from **
Amazon USA: amzn.to/3yWcn66
Amazon Canada: amzn.to/3uNPpLb
All other Amazon: amzn.to/2TymoGj
** Purchase Arduino Start Kit **
Amazon USA: amzn.to/3z88F9G or just UNO board amzn.to/3aY7KOL
Amazon Canada: amzn.to/31an88J or just UNO board amzn.to/3pYxSNN
Amazon Europe (all Europe): amzn.to/3pMCHge or Just UNO board amzn.to/2PgGItD
AliExpress: s.click.aliexpress.com/e/_9uc7Xe
Banggood: www.banggood.com/custlink/3GD... or UNO board www.banggood.com/custlink/vKm...
eBay: ebay.us/B1JWLi
***** Purchase Authentic Arduino Uno from ***
Amazon USA: amzn.to/2KApAwK
Amazon Canada: amzn.to/37LZ8sW
All Europe Amazon: amzn.to/36YDSzn
Jump to different section of video by clicking on the time:
00:00 Start
00:43 Introduction
01:53 Hardware Explained
05:50 Wiring Explained
09:00 Code Explained
15:25 Demonstration of original code
16:43 Resolving the issue
21:39 Demonstration with corrected code
BTA16 600B Triac datasheet
www.st.com/resource/en/datash...
MOC3021 Optoisolators Triac Driver
www.farnell.com/datasheets/979...
4N26 Optocoupler Datasheet
www.vishay.com/docs/83725/4n2...
Tutorial by Ahmad Shamshiri form Canada
****************************
Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
****************************
If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link paypal.me/robojaxTV
Follow me on Facebook robojaxTV
Follow me on Twitter: / robojaxtv
Follow me on Instagram: / robojax
Tutorial by Robojax.com
Get other projects code and learn Arduino
robojax.com/learn/arduino
#robojax #robojaxDimmer - Наука та технологія
قمت بالاشتراك لتعريفك بنفسك وبلدك والبخاري بكل فخر مما زادني اعجاب بشحصك الكريم تحية خاصة لك ولشرحك ولغتك الجيدة
Never see so explained project like this one..
Thank you...
You are welcome. Salam
Very useful explanation. I tested the original RobotDyn sketch on 220vac 50Hz with a Eve 7w dimmable LED and had the same flickering problem as you experienced. Using your modified sketch and fine tuning the max and min values to suit the LED fixed the problem. Thank you.
Thanks for sharing
Also at 50Hz- have the same problem, and I have random flickering issues at constant values. Tried using ESP32, Arduino NANO and Arduino UNO, but nothing helps. Think it is the dimmer itself.
Very good explanation of the map function. Thanks from Rio de Janeiro, Brazil!
You are welcome.
thanks for the knowledge, I'm from Indonesia (Aceh)
thank you for solving my problem! nice explanation!
You're welcome!
Great video tutorial. Clearly explaining all the things. Thank u so much.
You are welcome. The best thank you for me is to not skip ads and Subscribe 🔔 to my channel, like 👍 the video and do not skip the ads.. It is greatly appreciated. 🔔 😊.
I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊 .
have you ever try this project??
Excellent tutorial Ahmad . Thank you .
you are welcome. Please subscribe. I appreciate it and helps my channel grow. Thank you
Excelente ingeniero, un alumno mas para usted...
Muchas gracias. Bienvenido a mi canal.
Disculpe la pregunta, la librería funciona para 60hz, cierto?
Thank u, from indonesia
You are welcome.
thanks! very clean explanation!
we are breadboard buddies btw :))) have the same exact one ^^
ممنون اقای شمشیری
خواهش میکنم. سلامت باشید.
سلام علیکم. مجرا (کانال) فارسی علم و فن را راه اندازی کردم: لطفا به دوستان تان خبردهید و حمایتم کنید.
www.youtube.com/@ilmofan
May God bless your time, our dear professor
I have a question, can I control it via the 2 Channel PWM Generator Adjustable Duty Pulse Frequency Module
Thank you very much for this wonderful explanation
It seems interesting for heaters because solid state relays usually have a small power loss due to the snubber circuit
But this is low power of 1A or 2A or it will heat up quickly unless you replace the heat sink.
@@robojax Yes, 2A is not a lot, but it could be enough for a 3d printer for example. I think it is a good idea to replace the heatsink.
There has been a very good explanation, thank you for that. I have a question, how should we calculate if we want to use NTC instead of Pot?
You are welcome. If you can map the value of NTC yes you can use.
Perfect....
Good to hear that.
Nice explanation as always,
Could you please make a video in addition of dht22 or ds18b20 to control TRIAC output with respect to temperature....
Regards
hi there, are you find any reference for this? I also want to control the lamp with the output of ds18b20. thanks in advance
I had to write my own dimmer code for this reason as it was jamming up the IR library
May it be easier just to map(potValue, 0, 1023, 96, 22). You will get smooth dimming from OFF to FULL_LIGHT on full rotation of potentiometer.
this may work for one case. Worth trying.
Liked and Sub'd from Vancouver BC :)
Thanks. Greetings from Ajax , Ontario
Dommage qu'il n'est pas possible de le configurer dans domoticz !! Sinon, les explications sont claires et le montage est tout à fait opérationnel !! Un Belge au Portugal...
Hello, do you know if I can control the brightness only through the Arduino code and without the manual knob? Also, if I used an ESP32 instead of an Arduino uno, would it still work?
It would be a huge plus to see the oscilloscope curves.
Ie. what way the dimmer works on the bulb's side and what kind of input control signal it takes from the Arduino.
Then, the rest would be impliable.
It would also explain the irregularities which you experience. Thank you, anyway!
I did some work some project and did not see any interest. So gave up wasting time on thing which people don't appreciate.
Hi Ahmad, I have a question about how to setup an On/Off dimming ramp. At the moment, I’m using a nano & have a dimmable LED, with a basic for loop, but there seems to be some instances on the on or off ramp up/down that the bulb flickers, (repeatable). How can that be fixed?
Great video btw, pretty helpful!
Did you fix the issue? I would like to create a similar project with Nano board and LED - if you can share the Arduino scheme and code will help me learn fast and save a lot of time.
Allah edebini ,ilmini artırsın Hocam.
Google'ı çevirmek için kullandım ve bana iyi mi yoksa kötü mü dilediğinizi anlamadım. Ama sana en iyisini diliyorum. Allah seni güvende tutsun.
@@robojax In Turkish, this is a positive approach. No need to worry :)
sir ive question, if i want make a pararel lamps about 8lamps , and 4 lamps on 4 lamps off but they will works change between that 4 lamps off and on.
and i want they like using dimmer , but i dont want using dimmer..like exactly Lamps b7c
Dear sir make videos on ir remote ac fan speed controller
perhaps with ESP32 using WiFi. I will put it on my list.
Quite handy and very useful information again ✔✔✔ ... Can we use this module to adjust the AC ceiling fan speed? Thank you 😉...
It should theoretically work. But I have not tested it. Thank you.
@@robojax Please test it for us. I am working on a project here I need to control the speed of the AC motor through the pwm pins from the arduino to the pwm pin of this ac dimmer
Hi Ahmad, it is a very good a complete video and you said all of them,
but I have a question about this project, We can use that for AC motor speed controlling or not?
You should be. I haven't tested it and the manufacturer also have not mentioned the motor. they just used "dimmer". Unless you test, we never know.
Hi Ahmad, excellent video, just what I have been looking for... Quick question, can this be used for a dc motor? like if I can replace the bulb's connection with the dc motor's connection (granted that the motor satisfies the power requirement of course).
Thanks again
Hi, no you can't. this is works only with AC.
Perfectly, is it able to to the dimming automaticly from the arduino sketch whithout an potentiometer? what I have to do for this? Thanks for any help.
watch this video to learn how it is dimming and use your own value instead of potentiometer. I have explained it fully. If I want to learn something, I would watch it 10 times.
i need to control the dimming with bigger resolution.. 0-100 with 1 increment (1 resolution) is not enough for me.. i need to control it more detail like 0.1 resolution (0.0 0.1 0.2 until 99.9 100.0).. is it possible with higher resolution? is there any library suitable for that?
Я сейчас планирую такое на мосфет транзисторах сделать при помощи микросхемы FL5150
What is the value of rheostat that you use in this video?
Pls answer me.
Thank you so much
I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊
Hi!Nice video, but I would like to know how it could be done to regulate the light level through the arduino program without having a potentiometer, having an arduino mega 2560.
Could it be done with the same device that is in this video? Instead of adjusting with the potentiometer, do it by programming. Thanks
Hi, this works with both Mega and UNO. I mentioned in the code that you need to provide the interrupt pin. watch the video fully.
do you have circuit diagram of dimmer & zero cross module?
Very nice project. Is it possible to control another light with simple on/ off by using IR remote?
Search my channel for tones of Infrared Remote videos. you can use them.
Can i connect more than 1 light bubls in parrarel (for example i have 9 bulbs about 9 watt each)?
Yes you can go up to 100W or more .
اسعد الله اوقاتك استاذنا الكريم
لدي سوال هل استكيع التحكم بها عن طريق 2 Channel PWM Generator Adjustable Duty Pulse Frequency Module
وشكرا جزيلا لك على هذا الشرح الرائع
شكرا لك، يا عزيزي. لا ، هذا سيعمل فقط مع التيار المتردد. شاهد هذا الفيديو لمحرك DC ua-cam.com/video/ipFxYQkB5uw/v-deo.html. سلام. (تستخدم جوجل للترجمة).
That was a very good explanation. if i use 220V 50Hz supply, which part should be modified?
and also the code cant be compiled, it sends error message "global variables use 2211 bytes, maximum 2048 bytes". How to solve it? thank you
hi, This doesn't mean error. make sure to select the right com port. You don't need to change. Just use pot to change and adjust.
I need something that will work on low voltage ac 16-24 volts
Thanks a lot for your video!!!!!! if i use your suggestion itself it works fine! Problems come out when i include other library, whatever library, even the most common used libary in arduino sketch....lcd i1c, onewire, emonlib.h .... whenever i incluse one or more other library, arduino slowdown its loop time and shows wrong data.... i change many pins to avoid conflict, but nothing happened... i need to use your RBDdimmer toghether with emonlib.h and current sensors to analise electrical consumtions and adjust the dimmer accordingly......now it only partially work...but not accurate just because the wrong data get from the sensors....if i remove RBDdimmer from the sketch, everithingh is perfect....thank you fou any help you can gime me/us!!! THank you Best Regards!
Is it possible to dim the light with a touth sensor. Great videos keep posted👍
Yes. This is like 2nd request like this. I have videos on touch and if you can combine them, it will work. I might make video using touch or even bluetooth .
Makers using Arduino Dont Know much about Timers , so the RBDimmer library should provide , selectively usable timer1 2 3 etc, as the maker may try to use a different library which might conflict with the timer from the RBDimmer library, just to in that case being able to try another free timer for use
Thanks for the tutorial . If I don't use a potentiometer, does that mean I just fill in the value in the dimmer.setPower (...) command? Correct ?
Yes you can enter the value and it should work
@@robojax Thankyou so much sir, success for you. From Indonesia
sir what if i only connect live wire to dimmer and the gnd to the load
does it will work fine or not
NO. it won't. I mentioned in the video. perhaps you missed it.
Please make a video for fan speed control with Nodemcu esp8266 via android phone.
Tried and spent time and did not work. Needs lots of time and work
@@robojax same to you bro 😑
Hi, can you help in Trailing Edge Dimming code? I am having trouble driving 2 LED Driver with Triac Trailing Edge
Hi, I have no idea or experience about the "trailing edge dimmer". Sorry.
Cane make egg incubator with using arduion device. Thanks
Not just with this. but you will need temperature sensor.
Hey thanks a lot for the tutorial.
I intend to use the arduino and AC dimmer module to control the light levels with my python code on my computer. Does that mean I simply do not need the dimmer switch itself and the rest is the same setup? and If i connect the arduino to the computer It should be sufficient as long as I figure out the python to arduino contact?
Arduino is programmed using computer. After downloading the code into Arduino, you don't need the computer. It just needs power to work. perhaps you are using the USB port of Arduino to communicate with it which you can do any other USB to UART modules. Now the the I have shown and worked on works with Arduino. To send signal to this dimmer, wee need the output and input pins of Arduino. I hope you found answer in all this.
Hi, can you tell me which command is used to control multiple dimmer boards connected to arduino 1?
Hi, it seems you have not watched the video. it depents on the humber of interrupt pins you have on Arduino. Just use different interrupt pin and defined other related variables to make it work. If you don't know what a vriabel is then watch this video ua-cam.com/video/xi9Hegk9M9k/v-deo.html
Thank you from Belgium for this very good explanation. Does it work on tasmota flashing module ESP8266? Thanks a lot!!
you are welcome. I've tested it and spent time. it did not work. perhaps someone find solution for this.
@@robojax Thx !
Is it possible to initialize the dimmerLamp variable inside "setup()" function using some function "dimmer.begin(Address)" or sth like that? I couldn't find anything on the web. I need to configure the address/pin of the dimmer in the setup function as it is received via Serial link from Rasberry Pi and am a bit stuck at this point
this code uses interrupt and I spend some times to fix it. from the library, contact the developer of the code , they might help you. Please subscribe. I appreciate it and helps my channel grow. Thank you
hello, do you have a library to work with esp32?
Check the description of the video. I always put link to related videos in the description of vidoes.
Can you make it work automatically based on the value of the LDR light sensors?
so you want to make automatic light control? I mean as the environment light increase you (may) want to decrease the bulb light and when the environment light is decreased, the bulb light increased. this would be interesting project. I have video on LDR for Arduino here ua-cam.com/video/iNea_HM967A/v-deo.html and you can combine both. Just related the intensity of light on dimmer be value from LDR. salam
is that working with led strip or led bulbs that use transformers ?? what will happen if I give transformers less voltage than for ex 220v ??
NO. LED works with DC. This controls AC bulbs only.
hello sir .can we use the robodyne dimmer with esp8266??? to control the AC bulb from smartphone remotely??
I tried this library and spent 1 or 2 days and did not succeed.
Excuse me sir, may I ask if this dimer ac module can control the speed of a single phase induction motor with a power of 300 watts
Thank You
this is just dimmer. it dims the intensity of light.
How can I use LDR instead of potentiometer to control light intensity
wow. that is interesting. It needs a complete video tutorial and code.
Hi, is it any possible to do this project automatically by using BH1750 light sensor ?
Hi, yes it is possible. Just replace the value controlling the bulb from the light sensor. I have explained the light sensor fully. Watch, learn and implement
hi, is it done by pulse skipping or phase cutting?
using phase control.
Hello mr robojax, what is the function of zero cross? How we program the zc ?
AC signal is sine wave and it geos from positive to negative. when it reaches at zero, at that time, we need to know to when it happens to control the triac. en.wikipedia.org/wiki/Zero_crossing the library here has function so you do not worry.
i want buy like this
The link is in the description below the video to purchase it.
Hello, do you understand with the problem what i have, I'm using ac light dimmer by RobotDyn too, but the difference/problem is when trying to hit high percentage the voltage result are reduced and getting smaller than while 40%, can you help me to solve the problem? Thank you 🙏🏻
And tell me how to fix it or should i buy a new one?
can you make me tutorial
a dimmer tutorial with DHT11 with control pid
I can but no one will watch it. Even this video I regeret making it. my time was wasted and I did not even get 50k views.
@@robojax maybe if added control pid is very attractive for the video
would it works with a fan ?
they are sold as "dimmer" for light and I have not tested them with inductive load like motor.
Assalamwalaikum daer Ahmad samshire sir am from India
walaikum salam, Welcome to Robojax.
@@robojaxya sir u r a best explorer... Alhumdulillah
Please Can I connect two dimmer board to same arduino nano board?
I have not tested it but it should be possible. No sure.
Can we dim the light without potentiometer just with help of light sensor and let arduino decide when to dim lights or increase brightness?
yes you can. watch my video on LDR
@@robojax where can i find the video
can control water pump rotary speed?
No. just light.
How do change the code if you want to control 2 lights. You have "dimmer.setPower(outVal)" having at output pin of 12. Is there an option for e.g.dimmer1, dimmer2 using different output pins? I want to vary the dim setting using temp sensors instead of reading a pot. Thank you.
you need 2nd interrupt available. Yes just create dimmer1(outputPin1), dimmer2(outputPin2)
@@robojax I can dim 2 lamps with a pot. I also can read 2 HDT temperature sensors. I've combined the 2 sketches substituting the pot with temp readings. Using the "dimmer1.begin(TOGGLE_MODE, OFF)" + other variations of this function shown in the RBDdimmer lib, prevents reading the temperatures. Temp values are returned as zero.
.When I comment out the dimmer.begin() - temperatures are read. Any help is appreciated
problem with dimmer so it flash once or many times a day while it off by the way i use two buttons up/down instead of potenciometer with esp8266 so i tried dimmer.setState(OFF);
dimmer.begin(NORMAL_MODE, OFF);
digitalWrite(zerocross,LOW); without any result so the problem is allaways here !!!! any idea thanks .......
I tried it with ESP8266. have not succeeded and after trying for two days, I gave up.
Can it be done by using nodemcu instead of Arduino by serial data transferring n without using potentiometer..???
have not tested. I didn't see interested to make video for ESP8266. if I see 50k views, then I will make video.
@@robojax Ingeniero no espere a las 50k, hágalo por favor, gracias de antemano por su valiosa colaboración, para los principiantes como yo usted en luz en el camino.
Gracias de nuevo.
I am studying how to do a solar grid connected inverter to send all reverse power to a water heater boiler as i do not want energy to go outside my house, so only one current transformer must be used, testing for generatedxconsumed constantly, however the pwm power should be very eficient, 220vac, i think backtoback mosfet is better circuit, as it avoid rectifier losses, what you think guys? 2000w boiler,
Do somebody may help me will be much aprecciate,,, congratulations
Can this ac light dimmer module control speed of ac fan ?????
no. It is called dimmer to dim light. it can't work with inductive load such as motors.
Can i use 2 dimmer module with Arduino uno? Because Arduino Uno have 2 interrupted pins.
yes if you can set up all settings and pins it should work.
Can this be used for 3 phase power supply for a dc motor speed control.
I actually wrote my code myself for a 3-phase supply 450Vdc motor but my problem is that the signal is just not stable, i see spikes from time to time. I used micros for the timing not delay. Thank you.
No it will not work with 3 phase.
@@robojax can i use multiple ZCD for it to work??
I designed and built a ZCD myself for 3 phase power supply and it actually works fine. i use it to power a 450Vdc motor using arduino and motor actually works fine but the firing signal is just not perfect. I might command a 3000 microsecond delay after every ZCD pulde and it will execute it but then contains spike that indicates a different delayed time momentarily.
I use my PC based oscilloscope for this.
- I feel maybe i need to change my code even though i expect it to work perfectly fine as it does at times.
- I want to Use another PC for the oscilloscope just to be sure its not some glitch on the current PC i am using for the oscilloscope.
- I am not using any library in my code.
I can share the code with you if you desire.
I am considering using delays in replacement of micros just to see what the result is.
Thank you for the time.
Hi Ahmad, Thank you very much for your video. Suscribed! With alerts :D . I’ve got some devices and I would like to config it pushing a button. If you push the button (turn on/turn off) if you press the button for more than x seconds the light increase/decrease. Do you have a code or some tutorial? Best Regards,
Hi Vic. You are welcome. Thank you for subscribing. This would be interesting project. I will try to make a video on that. Can't be explained here with few word. it need new code with either 1 or two push buttons.
Hi Ahmad!, nice to hear you! Here in Europe the most of dimmers works in this way. With 1 button you can control the light: for example if you turn on the light and modify it to 30% (keeping the button pressed) and after that you turn off the light. If you turn on again, the light will start at 30%. Saving the last status.
Yes. I understand. it is like volume push button. you press it and hold it it will increase. Very interesting concept.
I need to control AC voltage from 15 VAC to 0, any suggestions ?
never used ac regulator.
@Robojax how do you connect the Bluetooth module? Can u please share the link of ur video for Bluetooth module and ac dimming together. Do I have to change the code if I add a Bluetooth module instead of potentiometer. Pls sir i desperately need this for my project. Help me with it please. Bluetooth app+ Ac dimming ( how??)
Here my video on bluetooth with Arduino ua-cam.com/video/-E9J9ExdZ20/v-deo.html
Is it possible to control the AC bulb based on lux level? if possible briefly what sensor do we need?
you can't control lux unless you have a light sensor like this ua-cam.com/video/iKUwu220UFQ/v-deo.html to measure the light and then control the dimmer to keep it at certain level.
@@robojax so, we replace the pontentiometer with the lux sensor? That was the same way i think it should be done. Thank you so much!
where did you find that scale ?
From Amazon
@@robojax thanks, what model is this ?
if i use LED bulb AC 220v, will it work?
yes
Does this dimmer work with Arduino Nano?
Yes if you pay attention please I the interrupt pin setting.
'USE_SERIAL' was not declared in this scope
????? error message appear!!! code not compiling???what will be the reason??
you have not downloaded and the library.
Hello sir. Is it possible and safe to connect multiple lamps in parallel to the same dimmer output? Thank you :)
it has maximum load or current rating which I've explained. when you connected bulbs in parallel, this doesn't know if it is one bulb or 10 bulbs. just make sue the total power does not not exceed .
@@robojax makes perfect sense, thank you
Will it work with led bulbs?!
Watch the video fully as I have explained it. I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊
Can I use it for 36V configure? Thanksss
36V where? input NO. if you wan to control a 36V AC load, I have not tested it.
Thankss!
I think is control 36V output🥺! Could I do it?
سلام برادر، من میخواهم یک المنت را طبق دما به صورت اتوماتیک کنترل کنم که چقدر گرم شود آیا امکان پذیر هست؟؟
وعلیکم السلام، بلی امکان پذیر است. به ان ترموستات میگویند این یک ویدیو
ua-cam.com/video/dVh77wT-4Ao/v-deo.html
و این هم کنترول کردن سرعت موتور متناسب با شدت حرارت و بلعکس
ua-cam.com/video/5xQ8vLavWKQ/v-deo.html
Please give me this ac dimmer circuit.because i have not this module.
I have shown it in the video. pause the video, draw it.
Si può mettere un pulsante al posto del potenziamento?
Very interesting project. I have it on my list. Let's see when I'll have to make the video.
Will this work with NO NEUTRAL WIRING environment?
if you mean to control a device connected to two phase? if so I am not sure.
@@robojax Thank you for your reply.
Excuse me sir, can the Robotdyn dimmer control the speed of a single phase AC motor?
this is just dimmer. dimming a light.
Can it be used to control a single phase AC motor sir?@@robojax
using button please
I have in my list. Let’s see when
is it possible to control heating element with 2000watt on it?
20kW is very high. I am not sure.
@@robojax Noo.. it's 2k watt.. not 20kW.. is it possible for 2k watt?
@@robojax can you also share the link where to buy this?
does not work together with dht22,11 why?
when using dimmer.begin(***,***); dht stops reading
this video has nothing to do with dht22.
could you make it work?
Can u coonect this to Arduino Bluetooth app?
Yes you can. There is no limit on that.
@@robojax how do you connect the Bluetooth module? Can u please share the link of ur video for Bluetooth module and ac dimming together. Do I have to change the code if I add a Bluetooth module instead of potentiometer
Sir can I control motor AC speed with this module? Thanks ❤️
no you can't. this is just dimmer.
@@robojax but it can handle a low ampere AC motor isn't? 0.14 Ampere AC motor for example. I just want to create a prototype of controlling AC motor based on the DHT11 sensor.
@@robojax but it can handle a low ampere AC motor isn't? 0.14 Ampere AC motor for example. I just want to create a prototype of controlling AC motor based on the DHT11 sensor.
why you use potentiometer, use rotary encoder. make it full digital.
because everyone including myself understand potentiometer easily. for encoder, I have to explained it for 5 to 7 minuets. not worth it.
Unfortunately, it doesn't work with dimmable LED lamp :(
if it is dimmable for real, it should work. I've shown it. so try different type or brand.