I want to experiment with PWM.
I’d like to make a simple circuit that I can use to set the square wave frequency and the duty cycle.
Say in the 5Hz to 20kHz range.
I want to find out just where my limits are as far as acceptable PWM settings.
I’ve come to the conclusion, after looking at a bunch of lights, that It’s not the PWM frequency, but the time duration of the off cycle that makes the difference.
In reviews and comments, it’s clear that what is painful to some is tolerated/unnoticed by others.
I’d also like it to be cheap/simple enough that others could reproduce it (or I’d make a few and send them around), so other BLFs could participate.
Perhaps working toward a set of minimum standards to make available (to whomever cares to listen?).
There are some cheap square wave generators (like under $15) that possibly could be used for signal generation.
https://www.amazon.com/dp/B07DFXFRN3/ref=sspa_dk_detail_0?psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUFJQTBINFVXVFdMQVQmZW5jcnlwdGVkSWQ9QTAwMzcxOTE3MUZPWDZDUkIyTEcmZW5jcnlwdGVkQWRJZD1BMDk3MzA1NTNHQU05VTUyNERJQUgmd2lkZ2V0TmFtZT1zcF9kZXRhaWwyJmFjdGlvbj1jbGlja1JlZGlyZWN0JmRvTm90TG9nQ2xpY2s9dHJ1ZQ==
Or ???
These sorts of things get mixed reviews, especially as far as noise and poor response.
I picked the DROK brand because I’ve had good luck with their stuff before.
And they are fulfilled by Amazon, so DOAs should not be a problem.
Fairly nice looking real live function generators in the $100 range.
https://www.amazon.com/dp/B07211YWMK/ref=twister_B086W1HB4K?\_encoding=UTF8&th=1
I clearly don’t need anything fast or fancy for this. And clearly not many are going to be wiling to spend that kind of money.
I don’t want to go the Arduino route. I have no experience and I’d like to be able to quickly set the parameters without messing about (too old to code, too young to die). Also not as easy for non-code DYI-ers to assemble.
I’ve got some fairly hefty MOSFETs I plucked from an old UPS, that should be be able to switch just about anything flashlight sized. Vgate is the typical 2v-4v. New ones are cheap too.
So my question is, starting with an LED on a board, what’s the easiest/cheapest/best solution to build something that I can quickly set the Frequency and Duty Cycle?
Without frying the LED with too much voltage.
And not frying the function generator with my own ignorance.
(Which is fairly vast as far as solid state goes).
I’d like to use 18650s as the LED voltage source (in 2S perhaps to be sure to get enough V to play with). And if I go the Cheap Square wave generator route, as the power for that also.
Or perhaps run the whole thing off a USB power supply?
But I’d like to keep it portable.
I’m thinking that a cheap buck circuit could drop the load voltage to something the LED would be happy with and I can adjust the pixies to control the brightness.
I like that this one has a V display:
https://www.amazon.com/Valefod-Voltage-Regulator-1-5-35V-Converter/dp/B07WQJ2GD6/ref=pd_sbs_23_4/131-1254495-5322224?\_encoding=UTF8&pd_rd_i=B07WQJ2GD6&pd_rd_r=8e1d4003-8816-4fcc-9d55-c78133af7fbe&pd_rd_w=CnasW&pd_rd_wg=d3aJU&pf_rd_p=bdc67ba8-ab69-42ee-b8d8-8f5336b36a83&pf_rd_r=D85AQBD4E5Q78FHKHHC4&psc=1&refRID=D85AQBD4E5Q78FHKHHC4
Or ???
I’d use the Buck outputs so…
The positive goes through the LED to the MOSFET Drain side. S side of the MOSFET to negative on the Buck driver.
The Gate gets a resistor running to S to make sure the Gate can drop to 0 when there is no signal.
The gate also gets the positive output from the signal generator. Possibly through another resistor to drop voltage.
If the power supply is 8v (2x18650), in theory I would not need to drop the voltage to the gate, because the Vgate max is 10v?
Any problems using the negative of the buck and the negative of the power source as a common ground with the function generator?
Any reason to believe quickly switching the output side of the Buck on and off would cause problems?
Resistor Values? Open to suggestions (as in I don’t really have a clue).
Am I thinking along the correct lines, or as they say:
If you don’t think to good, don’t think too much!
And so I turn to the wizards of the BLF community.
And don’t assume I actually know what I’m talking about.
Falling back to the Hand-Puppet Explanation level is good for me.
Thanks for your help.
All the Best,
Jeff