Solid State Relay to overcome timing challenge?
bradharper
Posts: 64
<newbie-disclaimer>
First off, I'm on the fence as to whether or not this type of question is inappropriate for the forum. It's certainly a query regarding general EE knowledge - which I obviously lack a good bit of - as opposed to Parallax/Propeller specific expertise but it is framed in the context of direct interaction with the Propeller, and quite frankly I admire the demeanor of our local experts.
If this is the wrong place to ask questions of this nature, just say the word and I'll know from now on.
</newbie-disclaimer>
One function of my application controls the brightness of multiple LEDs by interacting with a constant current (1A) led driver ( STCS2 - http://www.st.com/internet/analog/product/194396.jsp).
My voltage source of between 6-12Vdc is directly connected to the driver, so I get a brief flicker of light during the Propeller boot phase from the time I power up until my code establishes connection with the driver. I need to find a way to eliminate that flicker.
My first inclination is some type of switch that I close with the prop after I connect to the driver - a solid state relay is my best guess. That relay could either activate the input current to the chip, or activate the "enable" pin on the chip which would default to off.
Am I on the right path? Any relays to avoid or consider? Are there any better solutions?
Any insights appreciated. Thanks for your time and patience.
First off, I'm on the fence as to whether or not this type of question is inappropriate for the forum. It's certainly a query regarding general EE knowledge - which I obviously lack a good bit of - as opposed to Parallax/Propeller specific expertise but it is framed in the context of direct interaction with the Propeller, and quite frankly I admire the demeanor of our local experts.
If this is the wrong place to ask questions of this nature, just say the word and I'll know from now on.
</newbie-disclaimer>
One function of my application controls the brightness of multiple LEDs by interacting with a constant current (1A) led driver ( STCS2 - http://www.st.com/internet/analog/product/194396.jsp).
My voltage source of between 6-12Vdc is directly connected to the driver, so I get a brief flicker of light during the Propeller boot phase from the time I power up until my code establishes connection with the driver. I need to find a way to eliminate that flicker.
My first inclination is some type of switch that I close with the prop after I connect to the driver - a solid state relay is my best guess. That relay could either activate the input current to the chip, or activate the "enable" pin on the chip which would default to off.
Am I on the right path? Any relays to avoid or consider? Are there any better solutions?
Any insights appreciated. Thanks for your time and patience.
Comments
Your real problem is that a Prop I/O pin defaults to a high impedance state (input mode) when the Propeller is reset and you're trying to control something like a constant current LED driver which expects a logic low or logic high at that point and you don't have that until the Propeller finishes initializing itself a couple of hundred microseconds later.
You didn't say how you have the current source connected. If the enable pin is tied high to enable the device all the time and the PWM pin is connected to the Propeller, you could use something like a CMOS 555-type timer to hold the enable pin low for maybe 10ms to allow the Propeller to do its initialization. Look at some 555 timer datasheets and application notes for theory / practice / sample circuits.
This is a good forum to discuss this sort of thing. It's really a general design question, not specific to a Propeller or Stamp or whatever.
You could use a simple RC timer, but you need a Schmitt trigger buffer for reliability. I've seen some very small single gates in SOT type packages. One of those plus a resistor and a capacitor would make a simple time delay for the enable.
Something like this
As above post says, just use 47k weak pulldown. 10k as in pic below is also OK but as you probably will leave pin high most of the time a higer R value is better as not to drain power.
Most other ICs have inverted enable, and in that case you would use pull-up instead.
And you would use tri-state (pin as input) and output with a 0 to control the signal.
Ok, after a board revision adding a line from a propeller pin to the "enable" pin of the led driver with a pull-down, I'm still getting power to the driver as soon as I connect power. I'm wondering what I'm missing. The LED output looks dimmer, which makes me suspect that the pin is still floating to some extent. The pull-down is 10K, should it be more? Any insights appreciated.
and the mcu line is set as an input (the default at boot up)
but the LED driver still turns on the LED during bootup?
You are not using pin 30 or 31, I hope.
Try a different 10k, as the one you have may be fried
or try a 4k7 for a stronger pulldown.
Just to clarify my schematic...
Some testing to do.
Can you disconect the prop pin 1 and just connect the line to grnd?
The Led driver should not be able to turn on LED even after you start your code.
You should be able to save a prop pin,
by tying En to Vdd and using 10k pulldown on PWM,
En and PWM pretty mush does the same thing except
a low En completly shuts the chip down to save power.
Apparently, I've really misunderstood some fundamentals!
I came across another reference to this usage today... I'm thinking this might be the correct approach.