
Originally Posted by
mr_blinky
I've just ordered a Blue Shark. It will power a Cree MC-E emitter wired in series. I intend to connect the Blue Shark to my own microcontroller. My goal is to make a programmable, "smart" strobe light. (Not a photographic strobe, but an Edgerton-style continuous strobe.)
Though I've read this thread in its entirety - and several others besides - I'm unclear as to how I should interface my microcontroller to the Blue Shark.
My understanding is that the analog pot serves as a voltage divider, and that the voltage from the wiper dictates the amount of current ultimately supplied to the load. The Remora replaces the analog pot, providing a PWM signal which replaces the "wiper voltage." Assuming this is correct, I understand how to do the same with my own microcontroller.
But I want to use my microcontroller to turn the LED completely off. I saw some reference to an "enable pin," which sounds like it might be what I'm looking for. Is there some spot on the Shark where I can apply/remove a control voltage to blink the LED at a rate of my choosing?
And what would be the fastest I could cycle the LED off and on?
Thanks in advance.
The analog pin will control the output from 0 to 100% if done correctly. How the Remora was implemented did not give the full range of control.
To PWM the Blue Shark or the Shark Buck you will need to do the following.
The fixed resistor on the Blue shark that is part of the voltage divider for the Analog control should be used as the pullup to an open collector output from the microprocessor.
The open collector output should then have a voltage divider/filter to divide the PWM signal in half. This will be the proper signal level for the analog input. 100% on is 1/2 Vref. Zero volts is full off on the analog input.
Code:
PWM ---R----+----------+---- Shark Control input
Input | |
| |
R C
| |
| |
GND-----+----------+
Wayne