Hi i know this topic has been asked and answer several times but i just wanted to check my you guys my circuit because im not really good with electricity stuff, way more with coding, so here's my circuit, just to clarify im aiming to remotely control the dimming/brightness of a 480w LED boards run by a meanwell driver that has the famous 3-in-1 dimming (PWM, 0-10v, and capacitance) method, model : HLG-480-4B
here is a ref to the manual mentionning the dimming methods : https://www.meanwell-web.com/content/files/pdfs/productPdfs/MW/HLG-480H/HLG-480H-spec.pdf
Back to my circuit
I've checked that the octocoupler is set properly as in the picture using the little mark on it.
I have a 100 omh between the gpio23 and the pc812, and i see on the picture (i found it online and edited few words) that there's a second resistance on the Dim(+) wire after the octocoupler.
So i'd ask 2 questions:
First, is my circuit OK ? and (ok that will be 3 questions) is the resistance value enough ?
And second, do i need the second resistance on the Dim+ wire ? and what purpose does it serve ? i've never seen or read mention of adding a resistance in that place when doing such project.
Thanks for taking the time to read me, moreso if you take time to reply,
Any help will be appreciated,
Thanks in advance.
PS: I've followed what's in this video : Automate Your Grow with Home Assistant #7: Dimming & Scheduling Your Grow Light - YouTube, so double shoutout to wawa i guess and the author says in the video that the dim wire polarity does not matter, is this right ?