Author Topic: Help With Design of 48-Channel Constant Current Sink, and Fault Detection  (Read 1880 times)

0 Members and 1 Guest are viewing this topic.

Offline MonotobaTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Hi All,

This is my first post so if this is the wrong place forgive me and please give guidance to the proper location to ask this question.

Background (TLDR Warning!): I have a project (device test jig) that requires  48 channels of constant current sink with a current of 2-3mA, and a voltage of 28-30 volts, and requires open and short fault detection. I need to be able to turn the current sources on and off independently.

My first thought was a high-voltage shift register. However, these do not have fault detection. My next thought was an LED driver, Many of them come in 8, 16, 24, and 32 channels, have a fault detection system, and provide constant current. However, Most of them only accept 17 volts max on their outputs. I need 28 min and would prefer 30 volts.

Another idea I had was to use a low-voltage LED driver and insert another constant current source or zener into the output to drop the voltage to acceptable levels.

Queries 1: Does anyone know of a device that could meet my needs. If not, what ideas do you have for tackling this project?

PS. This is a hobby project.

Thanks for the info, ideas, and guidance.

 

Offline MasterT

  • Frequent Contributor
  • **
  • !
  • Posts: 851
  • Country: ca
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #1 on: November 02, 2024, 12:45:47 am »
Timing? How fast current settling needs to be, channel operational bandwidth?
 

Offline MonotobaTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #2 on: November 02, 2024, 01:02:04 am »
I'm looking at about 100Khz here. The settling time should be around <=1% of that. Almost any LED driver or shift register should handle the switching. Most small signal transistors should as well. But I really don't want to build it from discrete components if I can find a more compact solution. The whole thing will be driven by STM32F411, which will spend most of its time on other tasks.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15714
  • Country: fr
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #3 on: November 02, 2024, 01:15:45 am »
So max 1% of 10 µs, thus 100 ns settling time. That's pretty short.
What about the accuracy for the current sinks?
« Last Edit: November 02, 2024, 01:17:20 am by SiliconWizard »
 

Offline MonotobaTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #4 on: November 02, 2024, 01:29:39 am »
The current should be within 5% and stable over time.
 

Offline MasterT

  • Frequent Contributor
  • **
  • !
  • Posts: 851
  • Country: ca
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #5 on: November 02, 2024, 01:44:24 am »
100 nsec is very tough, even internal DAC of F4 has 1 usec or so.
First thing comes to mind is mux-ed or pwm-ed, likely be too slow. 48 channels 10 MHz DAC is gonna be expensive and complex.
Low cost digital potentiometer with TBD62781APG may work, still 6 x 8 and fault detection is another mux 6 x 8 monster
 

Online PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 2071
  • Country: au
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #6 on: November 02, 2024, 01:58:37 am »
My first thought was a high-voltage shift register. However, these do not have fault detection. My next thought was an LED driver, Many of them come in 8, 16, 24, and 32 channels, have a fault detection system, and provide constant current. However, Most of them only accept 17 volts max on their outputs. I need 28 min and would prefer 30 volts.

TI and Analog Devices have > 30V LED drivers, tho you may not like the prices or packages.

eg  TLC69651-Q1 is 16Ch 30mA / 50V and claims Diagnostics: – LED open / short detection for each zone

Or, an alternative would be to pick a simpler serial ISET LED driver like TM3100 and add ADC checks on the LOAD side for SC/OC
 

Offline MonotobaTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #7 on: November 02, 2024, 02:04:30 am »
That is why I was hoping there might be a solution that could be repurposed for this application...
 

Online PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 2071
  • Country: au
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #8 on: November 02, 2024, 02:15:05 am »
That is why I was hoping there might be a solution that could be repurposed for this application...

Did you look at the TI and Analog devices parts to see if they could be repurposed ?

There is also ROHM BD18332EUV  BD18333EUV etc  ?
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3982
  • Country: nl
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #9 on: November 02, 2024, 02:22:00 pm »
What about a humble BJT on a microcontroller output?

Let's say you have an uC that switches between 0V and 3V3. Then output this directly into the base of a BJT, and then connect the emitter with a resistor to GND.

The emitter will be around 600mV lower then the uC output and the base, so 2V7, and thus for a 2mA current sink you set the emitter resistor to 2.7/0.002 = 1350 Ohm

Main inaccuracy will be the change of the Base-Emitter voltage with temperature, Mounting them all on a block of aluminum, and then either heating it to a specific temperature, or compensating the power supply voltage of the uC can improve this.

For feedback, you can split the resistor into two series resistors, and read the center tap voltage back with a digital I/O pin.

Or do these current sinks have to be individually adjustable?
In that case something like this can work:
* DAC.
* 4051 with a capacitor on each output.
* Opamp with FET inputs to buffer the capacitor voltage.
* 4066 On/Off switches.
* BJT & resistor to GND.

« Last Edit: November 02, 2024, 02:55:49 pm by Doctorandus_P »
 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5166
  • Country: ro
  • .
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #10 on: November 02, 2024, 04:36:38 pm »
That EdgeWedge thing ... not sure how that's using LESS space for the header.

If you panelize boards.. you can't use that tool without depanelizing, you need corner access to slide the pcb on those long pins of the edgewedge.

You could have 3 surface mount pads on top, 3 on the other side, right at the edge of the board, and optionally two through holes (to center the tool over the pads).

The tool could simply be an inverted F shape with 3 needles on bottom and 3 on the top bit, and have a spring push down on the top -- of the F shape and the optional through hole pins used for centering.

You could have a whole panel of boards and you'd only need a cutout (a rectangle) or square just big enough to slide the width of the F shape and then press it to the edge and release the spring to push onto the board.




 

Offline MonotobaTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #11 on: November 02, 2024, 05:21:35 pm »
PCBWIz, I did look at these and more. None of them actually meet all my requirements.

MasterT, Some of the high speed constant current LED drivers have settling times of 40nS and even 30nS. So 100nS is doable. But doing it with discretes may be a challenge.

If either of you have any other ideas, suggestions, or think you have seen an IC that can help. Please let me know.


Thank you both!
 

Offline MasterT

  • Frequent Contributor
  • **
  • !
  • Posts: 851
  • Country: ca
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #12 on: November 02, 2024, 05:50:05 pm »
MasterT, Some of the high speed constant current LED drivers have settling times of 40nS and even 30nS. So 100nS is doable. But doing it with discretes may be a challenge.

Depends on how to do a math. I haven't ever seen LED driver specified current settling.  Some
(tlc5940) says
"12 bit (4096 Steps) Grayscale PWM Control", another
(tlc69651)
"PWM / Hybrid control mode"
 - I even have no idea what does it mean.

Common way to calculate sampling rate (channel bandwidth here):
 20 MHz spi-clock  / (15-bits x 16-channels x 3-to get-48) = 36 microseconds at max.

BTW, pwm control w/o good LPF filtering is misleading to call "constant current". But nobody seems to care for led driver, since visual perception is very slow
 

Offline MonotobaTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #13 on: November 02, 2024, 06:26:37 pm »
Thank you for your input.

Yes, each of the 48 current sinks needs to be individually controlled, as they will be toggled on and off individually or in pseudo-random groups. Given that there are 48 lines, the ADC must be multiplexed to handle all 48, potentially through three 16-channel multiplexers. This approach may ultimately be the direction I pursue. I’ll take a couple of days to consider it further.

The appeal of using an LED driver lies in the fast settling times—often in the range of 30-40ns—and the built-in features such as open-circuit, short-circuit, and over-temperature sensing and protection. Some LED drivers can manage up to 36 outputs in a single chip, so using two 24-output or three 16-output devices (both of which are common) would meet my requirements. I am unsure if a simple transistor-based approach would achieve the required settling times. An integrated solution, though potentially more costly, is attractive due to the board space savings.

The main drawback of some of these devices is the PWM functionality for dimming, which often cannot be completely disabled, or if turned off, may still produce a pulse during counter reloading. PCBWIz suggested some alternative devices, including SIPO shift registers with constant current sinks. Using these with a sense resistor and three 16-channel ADCs might be the right solution.

Thank you again for your input; all ideas are welcome as I continue to review datasheets and sketch out designs. The final result will likely incorporate a combination of the ideas I've received.
 

Online PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 2071
  • Country: au
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #14 on: November 02, 2024, 06:49:15 pm »


MasterT, Some of the high speed constant current LED drivers have settling times of 40nS and even 30nS. So 100nS is doable. But doing it with discretes may be a challenge.

Most commercial LED drivers worry about RFI & EMC, so they will slow down their edges.
What load does this have, and what voltage range is needed ?

What is the point of open and short sense, as a 2-3mA sink is inherently self protecting?

Does that also need to be 100ns ?
 

Online PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 2071
  • Country: au
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #15 on: November 02, 2024, 06:56:32 pm »
Yes, each of the 48 current sinks needs to be individually controlled, as they will be toggled on and off individually or in pseudo-random groups.
Does that mean set the mA, for each one having different current, or just individual on/off of a common 2.50mA setting on all channels ?
 

Offline MonotobaTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #16 on: November 02, 2024, 07:16:31 pm »
Devices with PWM that cannot be fully disabled will not meet my requirements. Most of these produce a brief pulse when the counter reloads, with a maximum pulse width typically around 99.98. This results in an unwanted pulse, and, given that the clock in most of these devices is internal, there is no way to control when that pulse occurs.

At this point, I’ve lost track of the specific devices that specify settling time, though I believe one might have been from ROHM or a similar manufacturer. After reviewing approximately 150 datasheets, I’ve even considered single-channel devices.

Currently, I’m inclined to use a simpler LED driver functioning as a shift register with fault detection, provided I can find one that meets my timing requirements. My plan involves placing a current sense resistor in series with the output and using three 16-channel ADCs for fault detection. Fault detection would be performed only at startup, shutdown, and after each test—primarily to check for output failures and confirm device contact with the test jig. Consequently, fault scanning times are not critical.

There is additional complexity in the overall circuit that I haven’t detailed here. However, the other sections can be isolated similarly, and I am focused solely on this isolated portion for now. While other voltages and currents will be applied to the outputs, this solution will be isolated during those test phases. A full explanation would require more detail.
 

Offline MonotobaTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #17 on: November 02, 2024, 07:19:10 pm »
2.5 mA on/off.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15714
  • Country: fr
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #18 on: November 02, 2024, 08:35:14 pm »
I'm afraid you'd have to use a more "discrete design" to meet your requirements.
Are all 48 channels required to work simultaneously, or can you multiplex them?
I'm also curious about the application.
 

Offline Andy Chee

  • Super Contributor
  • ***
  • Posts: 1367
  • Country: au
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #19 on: November 02, 2024, 08:47:49 pm »
I need to be able to turn the current sources on and off independently.
What is the load?

If you are just switching 48 LEDs, why not just use plain old simple current limiting resistor in series with each of the 48 LEDs?

 

Offline MonotobaTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #20 on: November 02, 2024, 09:57:40 pm »
As mentioned in my original post, the load is a Device Under Test (DUT), which is another electronic circuit with critical environmental and functional requirements. Additionally, it is essential that all outputs are independently switchable and can be activated in pseudo-random groups, potentially including the option to switch all outputs simultaneously. This application is not merely for switching LEDs. However, given the number of outputs and the current requirements, utilizing a constant current LED driver may be beneficial to reduce parts count, board space, and complexity, provided that this approach is feasible.
 

Offline MonotobaTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #21 on: November 02, 2024, 09:59:11 pm »
As stated in my OP, the application is for a test jig.
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28379
  • Country: nl
    • NCT Developments
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #22 on: November 02, 2024, 11:03:15 pm »
I think a discrete design is the way to go. But it doesn't need an extreme amount of parts. There are dual (and quad) transistors to create a simple current sink (emitter resistor). Use a low leakage FET input opamp (like TL074) + capacitor as a buffer behind a multiplexed DAC to buffer the drive voltages to the base of the transistors. If the currents are fixed, then you could set the base voltages through resistor dividers (again using multiple resistors in a single package).
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline MasterT

  • Frequent Contributor
  • **
  • !
  • Posts: 851
  • Country: ca
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #23 on: November 02, 2024, 11:36:39 pm »
Obviously control loop doesn't have to run at 30 nsec, LED control never needs to be >60 Hz, may be 100. And as I calculated above, SPI limits channel set time anyway.

 As current OC /SC requirements already demands ADC + mux to scan channels, than I think about "digital constant current", when CC module is not based on BJT+OPA "classic" solution (de-muxed DAC with voltage to current converters), but more simple 595 shift register + RC filters. Kind of 48-channels PWM dac.
CC is than set in software, where ADC readings evaluated with respect to set value, over /under current threshold etc. 8-10 bits adc at 5 msps brings timing to 100 kHz or so, 10 usec.  SPI may clock data at ~50 MHz, 10 filtered dacs samples per one adc reading, seems reasonable trade.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15714
  • Country: fr
Re: Help With Design of 48-Channel Constant Current Sink, and Fault Detection
« Reply #24 on: November 03, 2024, 01:40:15 am »
I think a discrete design is the way to go. But it doesn't need an extreme amount of parts. There are dual (and quad) transistors to create a simple current sink (emitter resistor). Use a low leakage FET input opamp (like TL074) + capacitor as a buffer behind a multiplexed DAC to buffer the drive voltages to the base of the transistors. If the currents are fixed, then you could set the base voltages through resistor dividers (again using multiple resistors in a single package).

Yes, the tricky part will be the settling time. For fast switching, I've found that cascading a second FET used as a switch worked way better than controlling the current source/sink itself.
And from what I got, I don't think the OP wants to be able to modulate the current, but only switch it on/off.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf