What type of meanwell drivers are you talking about? The PWM or analog dimming versions?
If the pwm version you just use the pwm signal from the arduino to turn a transistor on and off. The transistor controls a 10v signal which than goes to the meanwell.
If analog dimming, I am using a 3rd order sallen-key filter designed by Mark. C (can't remember his user name ATM) Using the filter with an op-amp and a 10 or 12 volt supply the arduino pwm signal is turned into a 0-10v analog signal.
Sorry if this is a stupid post....
This hobby never ceases to amaze me. When I first go into it, I thought, okay, I'll learn how to keep pretty saltwater fish.
As the years progressed, I've learned plumbing, some construction for stands, some chemistry and now it looks like I'll be learning electronics (or whatever this is considered) because it looks awesomely fun and a cool challenge. It seems to me the fish are just the excuse to do all this other cool stuff.
thanks for this awesome thread.
Honestly, I am looking to dim both types of drivers from my arduino. I tried the transistor with no luck and have been looking into op amps lately. I really want to rebuild my circuit but am going to hold of until I can get the lighting working.
I am out of my element here with circuits, I can build them and solder everything, I just cant design them. Do you have any diagrams as to what you are explaining.
here is a circuit I saw recently and am thinking about building. If you wouldnt mind taking a look at it and seeing if it would work
![]()
Thanks I really appreciate the help,
Dan
To answer your question the RC at the input of the circuit form a single pole filter. The cutoff frequency = 1/(2*pi*R*C) In this case that would be 16 Hz This will provide approximately 40 dB of rolloff at 488Hz the PWM freq of the Arduino. My self I might add a second similar pole, just duplicating the RC part.
The opamp circuit is a standard Non-Inverting amplifier. It is used so that a positive voltage becomes a bigger positive voltage. The gain is set by the resistors R2 and R3. Gain = 1+R2/R3. The circuit is thus intended to take a 5v PWM signal and convert it to a 0-10v DC signal where the higher the positive duty cycle of the PWM signal the higher the DC voltage.
Hope this helps,
Mark
Since the first working prototype of the controller will be released in the next few weeks I have realized that the project needs a nice name and logo, something meaningful that also sounds good.
I have thought about it and can't come up with much. If anyone comes up with a cool name/logo let me know. I am willing to trade all the pcbs required for the build in exchange for using your name/logo in the GUI.