Author Topic: Interfacing High power LED Driver and PC with MATLAB?  (Read 2695 times)

0 Members and 1 Guest are viewing this topic.

Offline abhaymvTopic starter

  • Contributor
  • Posts: 16
  • Country: in
Interfacing High power LED Driver and PC with MATLAB?
« on: September 01, 2013, 05:44:27 pm »
Hey all!

I'm driving a string of high power LEDs (~700 mA) using an HV9910 LED Driver.

http://www.premier-electric.com/files/supertex/pdf/hv9910.pdf

The output current of HV9910 (and hence LED intensity) is controllable by an input PWM_D of the LED Driver. PWM_D pin needs an external PWM input whose duty cycle controls the LED intensity.

Can I use MATLAB to generate a PWM waveform and use one of the ports in my Laptop (USB/Ethernet/Audio) to send this waveform to the LED driver? I saw somewhere that computer ports do not support the bandwidth required for PWM signals. But can't I just send a sequence of binary data as PWM? Eg:

11000000 for a duty cycle of 1/4?

I'm a newbie when it comes to interfacing. Thus please forgive anything idiotic I may have said here.
 

Offline Skimask

  • Super Contributor
  • ***
  • Posts: 1433
  • Country: us
Re: Interfacing High power LED Driver and PC with MATLAB?
« Reply #1 on: September 01, 2013, 08:03:21 pm »
Part 3
I'm a newbie when it comes to interfacing. Thus please forgive anything idiotic I may have said here.

Part 4
Quote
I saw somewhere that computer ports do not support the bandwidth required for PWM signals. But can't I just send a sequence of binary data as PWM?
I didn't take it apart.
I turned it on.

The only stupid question is, well, most of them...

Save a fuse...Blow an electrician.
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: Interfacing High power LED Driver and PC with MATLAB?
« Reply #2 on: September 01, 2013, 08:23:06 pm »
Option one: just try it!

Option two: tiny microcontroller listening over a serial interface/USB to generate the PWM signal.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline AndrejaKo

  • Frequent Contributor
  • **
  • Posts: 279
  • Country: cs
Re: Interfacing High power LED Driver and PC with MATLAB?
« Reply #3 on: September 01, 2013, 08:27:23 pm »
I see two ways to do this:
The "good" one would be to get a microcontroller, have it create the PWM and then send commands to it  from say Matlab or whatever you want to.

The other option would the to simply connect the audio output to the input pin and hope for the best.  If the PWM frequency should be in the range computer sound card can support, then you can create appropriate sound. Matlab should be capable of creating required sound and playing it. Another option would be to just make a fixed square wave with some for example audacity just to test if thins will work fine.
 

Offline abhaymvTopic starter

  • Contributor
  • Posts: 16
  • Country: in
Re: Interfacing High power LED Driver and PC with MATLAB?
« Reply #4 on: September 02, 2013, 01:05:49 am »
Thank you everyone!

So I was thinking a microcontroller or a signal generator for the PWM needs. That takes care of output data.

Now I need to receive three sets of data from the sensors. And all this needs to be done at the same time...

I'm thinking a USB to Serial port and a MUX/DEMUX arrangement. Serial data is demultiplexed to two channels of Signal generator. Data from various sensors are multiplexed and sent as serial data. Would that work? I'd need info from an 860 samples/sec 16 bit ADC each for all the sensors.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf