Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 6th March 2007, 04:41 PM   (permalink)
Default LED Driver Problem (STP16C596)

I am using an STP16C596 as a constant current LED driver. I am not interested in using any logic, I just want the device to turn on all channels all the time. I used a similar device in the past, a Toshiba TB62701AN. I simply set SDI (serial data input) and OE (output enable) high on the device and it turned on all the channels without a CLK signal. On the STP16C596, it seems like I need to set SDI high, send 16 pulses on CLK, set LE (latch) high, and then set OE high. This prevents me from using the STP16C596 as a stand alone LED driver. Is there a state I can set on all these inputs to simply turn all channels on all the time? Your help is much appreciated.

Deebo
Deebo is offline  
Old 6th March 2007, 06:39 PM   (permalink)
Default

Hi, from what i see from the truth table i reckon u should set OE to low instead of high... give it a try and post the results.
Good luck!
hentai is offline  
Old 6th March 2007, 07:12 PM   (permalink)
Default

Sorry, I had a typo. OE was set low, not high. Thanks for the correction hentai.

However, I still have the problem.
Deebo is offline  
Old 6th March 2007, 07:27 PM   (permalink)
Default

i see... well try seting LE low too and see what happens...
also have u looked at this application from datasheet?
Attached Images
File Type: jpg leds.JPG (24.7 KB, 25 views)

Last edited by hentai; 6th March 2007 at 07:35 PM.
hentai is offline  
Old 6th March 2007, 10:01 PM   (permalink)
Default

I tried it but I get no output.

I only get an output if I set SDI high, pulse the clock, set LE high, and then set OE low.
Deebo is offline  
Old 6th March 2007, 10:08 PM   (permalink)
Default

hmm tricky chip... from the datasheet internal layout i would have guessed it only needed OE acitve (low) and the leds would be on...
Have u tried it like this, leaving sdi,le and clk unconnected thus high, and OE set low?... i mean with these settings already made at power on not making them in a sequence...
hentai is offline  
Old 15th March 2007, 07:10 PM   (permalink)
Default

I ended up using two 555 timers to make it work: one for a simple square wave into the CLK, the other to delay the latch (OE) by approximately one second after powering the board up. So the drawbacks are more components and a one second delay to turn the LEDs on on initial powerup. Thanks for the advice Hentai.

Deebo
Deebo is offline  
Old 18th March 2007, 03:50 AM   (permalink)
Default

You could replace those 555's with a small 8-pin (or even 6-pin) PIC. Very cheap, and for your purpose, a snap to program. No external components needed as most of the smaller ones have internal oscillators. It would also provide the option of 'future upgrades', seeing as how you'll have some intelligence in there. If PIC's aren't your bag, I blieve atmel do some 8-pin avr's, that only require a very simple programmer (parallel port + resistors). Just a thought, I've got these little bad boys doing all sorts of things

Blueteeth
__________________
Inconsistency is the key to flexibility!
Blueteeth is offline  
Old 19th March 2007, 06:06 PM   (permalink)
Default

It sounds like a great suggestion Blueteeth. I will look into it.
Deebo is offline  
Old 19th March 2007, 06:13 PM   (permalink)
Default

why do u want to use that particular ic?
hentai is offline  
Old 19th March 2007, 07:24 PM   (permalink)
Default

Quote:
Originally Posted by hentai
why do u want to use that particular ic?
it does seem a bit odd that the OP would chose a rather complicated SPI / serial led driver, just to light up a string of leds all at once. how about just wiring all the leds in parallel and switch their low side with a 2n7000?
__________________
If you don't have a planet, what good are gold bars?

want to contact me directly? gmail gordonthree
check out my project website: http://projects.dimension-x.net
Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
justDIY is offline  
Old 20th March 2007, 04:14 AM   (permalink)
Default

Built in current regulation?
mneary is offline  
Old 20th March 2007, 02:02 PM   (permalink)
Default

as sugested he can make a constant current source with a transistor pretty easily
hentai is offline  
Old 21st March 2007, 07:04 PM   (permalink)
Default

I used this IC because it is a constant current source and because I can adjust the current of 80 LEDs with one pot (each channel has 5 LEDs in series and the IC has 16 channels). I used a Toshiba device in the past that was much simpler to implement. I had to switch to a different device because the Toshiba model could only handle 50mA.
Deebo is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Help needed on LED driver him27hk General Electronics Chat 22 22nd August 2007 01:09 PM
LED Pilot Light Problem Jim Niemeyer Electronic Projects Design/Ideas/Reviews 7 18th February 2007 12:44 AM
Motor driver problem Omar.M Robotics Chat 10 6th February 2007 06:19 AM
white led driver akshayd Electronic Projects Design/Ideas/Reviews 6 28th January 2007 02:02 PM
Problem with LED Driver (STP16C596) brian1234 General Electronics Chat 9 26th September 2006 09:53 PM



All times are GMT. The time now is 03:19 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker