Announcement

Collapse
No announcement yet.

TineFPGA-GOLD Metal detector

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SaltyDog
    replied
    Originally posted by dbanner View Post
    I also noticed you tied the OE pin to ground, thus I assume will give full brightness as this pin is active low.? Seems like there is pwm possibility for % brightness maybe for future versions of your design.



    Now relating to the issue of the power supply for the LED array, I suggested using the l5970d, since it is tailor made for this purpose, notwithstanding +12bat being circuit common. Might as well go full in on a modern design, if your design works as well as you claim, a 555 solution seems a bit archaic, less efficient.
    The OE pin only selects the device for SPI comms .... you do not get any current until you latch in a value via SPI and latch it with the LE line ..
    (you can control brighness with the OE pin, but I am not using it that way)

    I have decided that I will use an isolation chip like the one I suggested (ADum160N)to isolate the SPI lines, since it has 7 channels, I will use some of the remainder for the coil MOSFET drive and the speaker/phones driver .. it is a much cheaper alternative than another switcher power suppy.

    (I am already using opto isolation for the coil MOSFET drive ... so I can remove that saving cost ..)

    PS: According to the datasheet, The LED driver can supply 5-100 mA for each LED adjustable by Rext ..

    Leave a comment:


  • dbanner
    replied
    Saltydog, pitty you missed the fact that Rext @1k limits the current to 20mA but won't work in a reverse polarity condition. After many decades in the game , it's nice to know that you can still blow things up.
    I also noticed you tied the OE pin to ground, thus I assume will give full brightness as this pin is active low.? Seems like there is pwm possibility for % brightness maybe for future versions of your design.
    I'm not sure how this is meant to work though.


    Now relating to the issue of the power supply for the LED array, I suggested using the l5970d, since it is tailor made for this purpose, notwithstanding +12bat being circuit common. Might as well go full in on a modern design, if your design works as well as you claim, a 555 solution seems a bit archaic, less efficient.

    Leave a comment:


  • SaltyDog
    replied
    Originally posted by Skippy View Post
    Quote:"@Skippy, you are mostly correct"
    What's with the 'mostly' ? Did you read my note about synchronous rectifiers, using power FET's the 'wrong way' round ? And if you're using it the 'wrong way', it doesn't matter if there's a diode internal to the FET or not.
    .
    Because you are completely wrong!

    Mosfets when they are driven into conduction can pass current in "both" directions drain to source!!! It does matter if there is a body diode because obviously if you have a negative voltage on the drain in the "off" state the diode will still conduct.

    There are a number of small signal mosfet's that DON'T have body diodes ... and even some power mosfets can be had without them .. and i'm not just talking about SIC fet's or GaN fets ..

    Leave a comment:


  • Skippy
    replied
    And regarding a fix for your design problem:

    Make your own higher-power +ve rail generator. One that works well is using a 555 timer IC as a free-running oscillator, and then use a diode/capacitor charge-pump circuit to create a voltage of about 10V above the 0V rail. There's plenty of examples of this on the web. The bipolar NE555 is the most capable, though the LinCMOS TL555 will be adequate for a few LED's. Don't use the feeble 7555 CMOS version, it can't drive anything. A simplified oscillator with 50/50 duty cycle can be arranged by connecting the output ( pin 3) to the RC charging circuit, so it runs like a high-power inverter. It's not a particularly efficient solution ,as the LED's only need 2V to drive them, so a 10V supply means dropping 8V across a 'resistor'. But it will give a powerful +ve rail.

    Leave a comment:


  • Skippy
    replied
    Quote:"@Skippy, you are mostly correct"
    What's with the 'mostly' ? Did you read my note about synchronous rectifiers, using power FET's the 'wrong way' round ? And if you're using it the 'wrong way', it doesn't matter if there's a diode internal to the FET or not.

    And yes, the IC datasheet will skimp on such details like body diodes, as it's assumed there will be such diodes, and they will never conduct, as the output pin will never go negative by more than 0.5V, as that is stated in the design absolute max figures.

    I'm curious as to what power FET's you've come across that don't have body diodes. I don't ever recall seeing one. I've used small-signal MOSFET's, the type with seperate gate, source, drain and substrate, and there's a 4000-series CMOS part ( the CD4007 ) that can be used that way, they are diode-free, and dual-gate RF FET's like 3N201's also may be diode-free. But all power devices seem inherently lumped with a diode. I've seen ones with additional diodes, either fast p-n junction or schottky types, as the intrinsic body diode is slow.

    35 years of professional electronics design experience speaking here.

    Edit: I had to Google the subject of body diodes ... looks like transistors made with the Silicon-on-Insulator process can get round having body diodes. SOI is reserved for rad-hard parts, eg for spacecraft and EMP-resistant military hardware, so not really applicable to our little toys.

    Leave a comment:


  • waltr
    replied
    Is there a way you could reference the LED driver to the -12 Rail?

    Looks like it could be done if you find an easy way to level shift the SPI lines.
    That could be done with transistors without too much difficulty.

    I agree the LED driver data sheet lacks important details.
    Also work as an EE and have also gotten caught with mistakes like that.

    Leave a comment:


  • waltr
    replied
    Is there any way you could reference the LED driver to the -12V rail?

    Leave a comment:


  • SaltyDog
    replied
    Originally posted by dbanner View Post
    The application notes I've seen have the LEDs connected the other way around, with the anodes connected to VCC 1, which is a separate supply provided by L5970d.

    Guys, I am sorry I brought it up.

    I know the correct way to use this driver, I just could not do that with a ground based on +12v. I need to use the 12v to drive the led's to get the brightness I need, I can't use the +5v rail, as it is derived from a capacitive switcher (LT1054) that is already maxed out supplying the rest of the circuit.

    I could use another LT1054 to give me another +12v that is above GND (Battery +12v) and driver the LED's of that, or I could put an isolation chip on the SPI lines (Adum160), that way I can run the LED's and driver straight off the battery and isolate drive them ...

    @Skippy
    You are mostly correct, except for the fact that you can run a MOSFET at full rated current in reverse (as long as the mosfet does not have a body diode) I have done that many times (I have been an Electronics Engineer of some 50 years ... so know a couple of tricks ..) I just wasn't expecting the driver to have body diodes on the Fet's, my mistake, but you are correct I had forgotten about the current limiting circuit ... the datasheet does not have any detail on the method of current limiting, and the schematic of the chip shows no body diode on the fets ... very bare info ..

    Leave a comment:


  • dbanner
    replied
    The application notes I've seen have the LEDs connected the other way around, with the anodes connected to VCC 1, which is a separate supply provided by L5970d.
    Attached Files

    Leave a comment:


  • waltr
    replied
    I looked at your schematic and the data sheet.
    Skippy got what happened, there are always intrinsic diodes in MOSFETs.

    The data sheet is a bit skimpy but the clue is in the MAX ratings.
    Vo Output voltage -0.5 to 20 V
    this implys that the Voltage on an output pin must never go below ground.

    Can you flip the LEDs around and then power them from a positive 5 to 12V?

    Leave a comment:


  • Skippy
    replied
    Never pull an IC input or output below the negative supply rail, disaster is guaranteed. If it's not FET body diodes ( which pretty much every MOSFET has ) it's parasitic diodes or transistors inherent in the manufacture of IC's. There's a well-known phenomena called SCR-latchup that can occur with certain IC inputs.


    Also, never apply more than the positive rail voltage to any IC inputs/outputs, while not so troublesome, especially if the current is limited by a resistor, for example, it's still best avoided. Use of a diode ( preferably a Schottky type for low forward voltage drop ) can protect IC pins from these mishaps.

    There is a bizarre phenomena where an IC can be functional, with no positive power supply, and I have actually witnessed it myself. It was a 4000-series CMOS gate package. When one of the inputs was logic high, an internal parasitic diode conducted to the positive power supply, hence powering the chip. It was effectively running at 11V instead of 12V, but was fully functional. Only if there were no inputs High would the power disappear. The cause of the missing power? The leaded IC was inserted in a socket, and the power pin had 'dog-legged' during insertion, and had not made contact with the socket.

    I haven't looked at the datasheet for this driver chip, but I assume it monitors the current using a series resistor in the Source of the FET, and uses this to set the serially-programmed current control. This obviously is incapable of working the wrong way round.

    MOSFETs can be used the 'wrong way round', but only in certain situations, that the designer is fully aware of. Two common cases:
    * switching low level voltages, generally below 200mV. Such as small AC signals that may go +100mV to -100mV , in audio equipment.
    * high-power rectification, sometimes called synchronous rectification. The FET is used as a diode, with both the body-diode and the D-S channel conducting in one direction, but the D-S turned off and the diode reverse-biased and non-conducting in the reverse direction.

    Leave a comment:


  • SaltyDog
    replied
    Originally posted by 6666 View Post
    Looks like about 300mA if all leds on at once

    No,That driver has a singe resistor that programs current through all LED's ..
    With no current control (with reverse voltage) current is only limited by the LED's ... hence the smoke ..

    Leave a comment:


  • SaltyDog
    replied
    Originally posted by 6666 View Post
    I thought you said a few weeks ago that you had a fully working prototype on the bench what were you driving the leds with then, I always use a current limit resistor with leds.



    just re read this saves me looking up the cheat sheets
    That testing was done on the Lattice board that directly drives led's off the FPGA pins ....
    a) I am now using the TinyFPGA board
    b) .. those LED's on the Lattice board not bright enough for outside use ..

    I am designing for real conditions ..

    Leave a comment:


  • 6666
    replied
    Looks like about 300mA if all leds on at once

    Leave a comment:


  • 6666
    replied
    I thought you said a few weeks ago that you had a fully working prototype on the bench what were you driving the leds with then, I always use a current limit resistor with leds.

    all the outputs conducted momentarily with no current limit and smoked the chip
    just re read this saves me looking up the cheat sheets

    Leave a comment:

Working...
X