How could I find a FET with specific specs?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eccerr0r
    Solder Sloth
    • Nov 2012
    • 8678
    • USA

    #41
    Re: How could I find a FET with specific specs?

    Actually even if you stick it on the output, you'd also waste power unless you also add an inductor.

    If you write your microcontroller software right, you won't see the LED pulsing, key is that you need it to be fast, very fast, like many kilohertz fast, then you won't see the pulsing anymore.

    Comment

    • sam_sam_sam
      Badcaps Legend
      • Jul 2011
      • 6025
      • USA

      #42
      Re: How could I find a FET with specific specs?

      Easygoing

      Are you using a USB battery charger unit for the ( battery or batteries) for this project if so why not run the LEDs at 5 volts and use the correct value resistor for this voltage

      Comment

      • eccerr0r
        Solder Sloth
        • Nov 2012
        • 8678
        • USA

        #43
        Re: How could I find a FET with specific specs?

        I'm done. I think I've already stated all the problems, in the design - even if you wish to mass produce them and reduce amount of defective devices - at this point, whether you take the red pill or the blue pill is up to you.

        Comment

        • sam_sam_sam
          Badcaps Legend
          • Jul 2011
          • 6025
          • USA

          #44
          Re: How could I find a FET with specific specs?

          Originally posted by eccerr0r
          If you write your microcontroller software right, you won't see the LED pulsing, key is that you need it to be fast, very fast, like many kilohertz fast, then you won't see the pulsing anymore.
          i am not trying to be an a** here with you but you made this statement above

          I would like to learn something here could you please tell me what controller would you use ( or micro controller can do what you are talking about )and could you also give a code example of how you would do this

          thanks

          Comment

          • eccerr0r
            Solder Sloth
            • Nov 2012
            • 8678
            • USA

            #45
            Re: How could I find a FET with specific specs?

            Just need to write your code faster. I fear that perhaps it's the "arduino" thing that may be limiting people to speeds that cause flicker, I don't know - I've never used "arduino". I've used Atmel AVRs with straight gcc and assembly, as well as used the hardware PWM controller. At 3KHz I can barely discern any flickering if at all at any intensity, without any capacitor filtering. Granted using a video camera you may still get aliasing so maybe a small 0.01uF capacitor may help, but the idea is to completely omit it.

            After all I don't know how many people here still use LED digital clocks from the 1980s-1990s. A lot of those those flicker at 60 or 120 Hz (or 50/100Hz, whatever your line frequency is at) - yet people don't really notice any flickering. Yes with a camera you'll see aliasing, but all in all this is the goal. Faster loops! And this isn't even the KHz that would be ideal.

            Comment

            • sam_sam_sam
              Badcaps Legend
              • Jul 2011
              • 6025
              • USA

              #46
              Re: How could I find a FET with specific specs?

              I have a nano controller for my engraving machine and I to test the PWM output pin I hooked up a LED to it and adjusted the 0 to 255 scaler but what I noticed is there only seem to either very dim or very bright but no real in between or is the way the controller program is written ( this is for laser diode input to its controller ) and also for the spindle motor controller has the same problem

              I actually had to buy a controller that the controller could adjust the frequency lower for it to work correctly

              This is why I did not recommend a nano for his project
              Last edited by sam_sam_sam; 01-26-2021, 02:58 PM.

              Comment

              • eccerr0r
                Solder Sloth
                • Nov 2012
                • 8678
                • USA

                #47
                Re: How could I find a FET with specific specs?

                capacitor filtering if done wrong will also cause that to happen too... hence best for no capacitor.

                Comment

                • sam_sam_sam
                  Badcaps Legend
                  • Jul 2011
                  • 6025
                  • USA

                  #48
                  Re: How could I find a FET with specific specs?

                  Originally posted by eccerr0r
                  capacitor filtering if done wrong will also cause that to happen too... hence best for no capacitor.
                  This was the way the board is set up I did not add anything but the board might have one

                  Comment

                  • eccerr0r
                    Solder Sloth
                    • Nov 2012
                    • 8678
                    • USA

                    #49
                    Re: How could I find a FET with specific specs?

                    Also need to consider the fact that there are so many variables are involved, but if there's a capacitor that can sustain the LED for longer than the pulse width and the switching transistor output impedance is low, well, there you have it - a recipe for the LED to be on full brightness that has no dimming capability.

                    As for why I think the design OP had created is "broken" - notice he had hardcoded constants in his code. These hardcoded constants are specific to the specific transistor being used: if a different IRF510 was substituted, there's no guarantee the behavior would be the same - some would be brighter at some values, other dimmer, and very possible that some transistors would not even light up at all even though the transistor is considered "working". That's the concern I have.

                    Comment

                    • sam_sam_sam
                      Badcaps Legend
                      • Jul 2011
                      • 6025
                      • USA

                      #50
                      Re: How could I find a FET with specific specs?

                      I realize that and I also know that probably the manufacturers of these DYI kits for engraver machines are probably taking as many short cut as they can to keep the cost down

                      So I have to see if I can improve the functionality of the the board that I plain to use if that means removing components that should not be there for how I want to use it

                      Or make my own board but I am not up to doing this at this point

                      I have one question are there any PWM code that would adjust from 0 to 255 and you can see the difference as you increase/decrease the scaler value

                      ( now if you hook a meter to the output you do see the voltage climb but increments are to large for what I want in steps or I might be asking for to much )

                      I am not a nano programmer and never programmed one but I would like to see if I could learn enough to some what get good enough at it to maybe correct some issues with the way this program is written and I aware of the fact that it will take time
                      Last edited by sam_sam_sam; 01-26-2021, 07:35 PM.

                      Comment

                      • budm
                        Badcaps Legend
                        • Feb 2010
                        • 40746
                        • USA

                        #51
                        Re: How could I find a FET with specific specs?

                        That large RC on the GATE of the MOSFET defeats the purpose of turning MOSFET ON and OFF in PWM fashion, you are using MOSFET in linear mode, wasting energy. 3.3V drive is barely enough to turn MOSFET fully ON and OFF, look at the spec sheet of the MOSFET for clarification.
                        Look at the RC Time constant and look at you PWM frequency, is the cap able to be fully charged and discharged based on your PWM frequency?
                        Study the effect of that RC and experiment with changing the value of RC and the PWM frequency to see what effect you will see if you want to learn.
                        Last edited by budm; 01-26-2021, 07:31 PM.
                        Never stop learning
                        Basic LCD TV and Monitor troubleshooting guides.
                        http://www.badcaps.net/forum/showthr...956#post305956

                        Voltage Regulator (LDO) testing:
                        http://www.badcaps.net/forum/showthr...999#post300999

                        Inverter testing using old CFL:
                        http://www.badcaps.net/forum/showthr...er+testing+cfl

                        Tear down pictures : Hit the ">" Show Albums and stories" on the left side
                        http://s807.photobucket.com/user/budm/library/

                        TV Factory reset codes listing:
                        http://www.badcaps.net/forum/showthread.php?t=24809

                        Comment

                        • EasyGoing1
                          Shock Therapist
                          • Sep 2016
                          • 977
                          • USA

                          #52
                          Re: How could I find a FET with specific specs?

                          Originally posted by eccerr0r
                          If you write your microcontroller software right, you won't see the LED pulsing, key is that you need it to be fast, very fast, like many kilohertz fast, then you won't see the pulsing anymore.
                          This is actually a solid statement... the MC currently defaults to only 450 Hz on the PWM frequency, but I was looking at the datasheet as it tries to explain how to speed that up ... but datasheets sometimes are very ... ummm ... concise??? might be the word I'm looking for? Of course, they assume a certain level of knowledge then they're very brief in what they say ... so I'll look for some blogs on how to do it because you're on to something here. If I could get that PWM frequency up into the Khz range it certainly would not be noticeable.

                          I'm curious though ... how is that cap sucking down energy when all it can do is balance the waveform that the pin is kicking out? I mean whether the cap is there or not, the chip only puts out what it puts out... and it would put out the same whether the cap was there or not ... so I'm a bit confused about that point.
                          sigpic

                          Comment

                          • EasyGoing1
                            Shock Therapist
                            • Sep 2016
                            • 977
                            • USA

                            #53
                            Re: How could I find a FET with specific specs?

                            Originally posted by budm
                            That large RC on the GATE of the MOSFET defeats the purpose of turning MOSFET ON and OFF in PWM fashion, you are using MOSFET in linear mode, wasting energy. 3.3V drive is barely enough to turn MOSFET fully ON and OFF, look at the spec sheet of the MOSFET for clarification.
                            Look at the RC Time constant and look at you PWM frequency, is the cap able to be fully charged and discharged based on your PWM frequency?
                            Study the effect of that RC and experiment with changing the value of RC and the PWM frequency to see what effect you will see if you want to learn.
                            I posted this earlier, but here it is again ... this was taken from my scope on this exact RC filter... The yellow line obviously is the output of the MC and the green is at the point where the resistor and the cap meet ... so basically this is the waveform both before and after the resistor...



                            sigpic

                            Comment

                            • EasyGoing1
                              Shock Therapist
                              • Sep 2016
                              • 977
                              • USA

                              #54
                              Re: How could I find a FET with specific specs?

                              Originally posted by sam_sam_sam
                              Easygoing

                              Are you using a USB battery charger unit for the ( battery or batteries) for this project if so why not run the LEDs at 5 volts and use the correct value resistor for this voltage
                              Yes, one of those chargers for LiIon that lets you both run the circuit and charge the battery at the same time. It was an experiment for me and I'm not happy with it because when the battery discharges and gets sufficiently low enough, you can't run the circuit even if you recharge the battery without first disconnecting the battery then re-connecting it ... I don't know if it is an anomaly with this specific charger or if that is the standard behavior of all such chargers ... this is my first experience with this type.

                              And the reason why not 5 volts is because the best I can get from the battery is 4.2.
                              sigpic

                              Comment

                              • EasyGoing1
                                Shock Therapist
                                • Sep 2016
                                • 977
                                • USA

                                #55
                                Re: How could I find a FET with specific specs?

                                Originally posted by eccerr0r
                                I'm done. I think I've already stated all the problems, in the design - even if you wish to mass produce them and reduce amount of defective devices - at this point, whether you take the red pill or the blue pill is up to you.
                                Mass production wasn't in the plan ... but making some for friends and family definitely was in the plans.
                                sigpic

                                Comment

                                • EasyGoing1
                                  Shock Therapist
                                  • Sep 2016
                                  • 977
                                  • USA

                                  #56
                                  Re: How could I find a FET with specific specs?

                                  Originally posted by sam_sam_sam
                                  I have a nano controller for my engraving machine and I to test the PWM output pin I hooked up a LED to it and adjusted the 0 to 255 scaler but what I noticed is there only seem to either very dim or very bright but no real in between or is the way the controller program is written ( this is for laser diode input to its controller ) and also for the spindle motor controller has the same problem

                                  I actually had to buy a controller that the controller could adjust the frequency lower for it to work correctly

                                  This is why I did not recommend a nano for his project
                                  I've worked with the Arduino Nano more than any other microcontroller... you have to make sure that you're on a pin capable of PWM and on the Nano those pins are 3, 5, 6, 9, 10, 11 - both the physical pin number and the number you reference in code... you set the pinMode to OUTPUT, then you vary the duty cycle using the analogWrite command like this:

                                  analogWrite(5, 100);

                                  You can choose a value anywhere from 0 to 254 and each higher value is a faster duty cycle, but NOT a faster frequency. In order to increase the frequency, you have to set certain control registers to get clock multiplication or even switch over to a different clock depending on the MC...

                                  BUT, I'm not using a nano for this project ... I'm using an ATMEL ATTINY85
                                  sigpic

                                  Comment

                                  • EasyGoing1
                                    Shock Therapist
                                    • Sep 2016
                                    • 977
                                    • USA

                                    #57
                                    Re: How could I find a FET with specific specs?

                                    Originally posted by eccerr0r
                                    Also need to consider the fact that there are so many variables are involved, but if there's a capacitor that can sustain the LED for longer than the pulse width and the switching transistor output impedance is low, well, there you have it - a recipe for the LED to be on full brightness that has no dimming capability.

                                    As for why I think the design OP had created is "broken" - notice he had hardcoded constants in his code. These hardcoded constants are specific to the specific transistor being used: if a different IRF510 was substituted, there's no guarantee the behavior would be the same - some would be brighter at some values, other dimmer, and very possible that some transistors would not even light up at all even though the transistor is considered "working". That's the concern I have.
                                    You know to be honest with you ... I thought you guys were pushing for the RC filter earlier in this discussion and that presumption, along with noticing the flicker I just threw it in, but I would definitely rather not use it ... and as far as the code goes, the final PCB will have a 6 pin header on it for re-programming as needed. But I'm going to look at bumping the PWM frequency because Id much rather drive this with as few components as necessary.
                                    sigpic

                                    Comment

                                    • eccerr0r
                                      Solder Sloth
                                      • Nov 2012
                                      • 8678
                                      • USA

                                      #58
                                      Re: How could I find a FET with specific specs?

                                      Ever since your stirrer project: I've been saying: NO analog, NO filtering. budm hit it on the nose, go reread his post.

                                      Your microcontroller should not deal with any analog at all. If you're thinking analog on the microcontroller, you're doing it wrong.

                                      Comment

                                      • EasyGoing1
                                        Shock Therapist
                                        • Sep 2016
                                        • 977
                                        • USA

                                        #59
                                        Re: How could I find a FET with specific specs?

                                        Originally posted by sam_sam_sam
                                        I am not a nano programmer and never programmed one but I would like to see if I could learn enough to some what get good enough at it to maybe correct some issues with the way this program is written and I aware of the fact that it will take time
                                        Sam,

                                        Take a look at those three scope screenshots that I posted ... click on them to make them bigger then look at the bottom of the screen and notice that the frequency of the PWM signal is the same at every different duty cycle.

                                        That analogWrite command from 0 to 254 is only controlling the duty cycle, the frequency is not easily adjusted ... you have to get into the control registers for that and there are no simple C++ commands to do it, you have to know the name of the register and which bit to set at which value then you set it in code by naming the register and setting it equal to an 8-bit binary number to set those bits ... or you can do other tricks like using an OR statement so that you can flag the other bits in the register at 0 so that they don't change because you don't always know what affect you could have changing them, so let's say you had to set bit 2 to 1 but you don't want to mess with the other bits in the register, you would just OR B00000100 that way you're guaranteed to set the bit in position 2 to a 1 while whatever values are in the other bits, you won't be affecting them at all.

                                        And if memory serves ... that would look something like this (assuming the name of the register you wanted to change was MCRC):

                                        MCRC |= B00000100

                                        Notice the pipe symbol before the = sign ... which means OR ... if you wanted to AND the bits, you would use an ampersand etc...
                                        Last edited by EasyGoing1; 01-26-2021, 11:31 PM.
                                        sigpic

                                        Comment

                                        • EasyGoing1
                                          Shock Therapist
                                          • Sep 2016
                                          • 977
                                          • USA

                                          #60
                                          Re: How could I find a FET with specific specs?

                                          Originally posted by eccerr0r
                                          Ever since your stirrer project: I've been saying: NO analog, NO filtering. budm hit it on the nose, go reread his post.

                                          Your microcontroller should not deal with any analog at all. If you're thinking analog on the microcontroller, you're doing it wrong.
                                          Well if you remember, I got the best results on the stirrer project using a stepper motor controller ... I'm kind of in neutral on that project because I can't seem to figure out how to get enough electromagnetic strength in terms of coil specs and required voltage, etc. Coil design seems to be an entire discipline in it of itself and I'm just not knowledgable enough to know how to proceed with it.
                                          sigpic

                                          Comment

                                          Related Topics

                                          Collapse

                                          • Vesko356
                                            [Guide] How to find the right HP bios version to flash
                                            by Vesko356
                                            First of all thanks to all of our members who have posted previously all methods posted here.
                                            Please leave a comment if you find something new,or have anything else to add.
                                            -----------------------------------------------------------------------------------------

                                            Find by serial number,model number or series

                                            If you know the laptop serial or model number go to HP support https://support.hp.com/us-en/drivers/laptops .
                                            Enter the serial number or model number and click submit.On the next screen you will have to enter the OS
                                            Operating system and OS version.If...
                                            08-11-2023, 03:27 AM
                                          • nunofcc
                                            Logitech G29 Help request to find smd transistor reference.
                                            by nunofcc
                                            Good night,
                                            I am going to ask your help to find out what is the reference of this smd transistor. Or what is an equivalent transistor?

                                            Thank you for your help....
                                            10-04-2020, 01:59 PM
                                          • corrize
                                            Where to find a very small fpc connector 0.3mm between 2 pins ?
                                            by corrize
                                            Hello, I search this connector (oxydated).
                                            It's a fpc zif low profile connector. It come from camera sensor, it is very small : 0.3mm between 2 pins.
                                            I ordered 2 from Aliexpress called « 0.3mm pitch » but one was 0.5mm between 2 pins and the other 0.6mm. In fact « 0.3mm pitch » seams to be the pad width and not the distance between 2 pins.
                                            I can't find it. The other websites like mouser dont show the datasheet, and I can't check if it is 0.3mm between 2 pins ?


                                            Do you know how to find this connector please ? What is the exact name for find it ?

                                            ​...
                                            08-06-2024, 05:25 PM
                                          • sam_sam_sam
                                            Where can I find a DD3 128000 type memory but 32 MGB in one module because this laptop has only one slot
                                            by sam_sam_sam
                                            This Dell computer is a pain in the a** because of it only has one memory slot this computer only had 4 megabytes of memory and slower than shit I found a 8 megabyte memory module and it is better but still slow as shit the maximum is 32 megabytes of RAM but I was not able to find one I found some that are 16 megabytes but they are 1600/128000 type and I am not sure if this computer will work with this type of memory or not

                                            Dose anyone knows where I can find a 32 megabytes memory module for this computer because the battery still works fairly well still I would like to use it on my...
                                            07-07-2024, 02:34 PM
                                          • magneh
                                            Behringer Eurolive B205D repair - help identifying transistor
                                            by magneh
                                            Hello
                                            Got this speaker from a friend , defective. Power led comes on and off , in a loop.
                                            Disassembled, got the board out, and after a bit of measuring I found a low resistance on a 5v6 line. With a bit of current I found a transistor heating up on that line (labeled T1 and 113 as on pic).
                                            After removing this guy, I got a value of 0.7 in diode mode on that 5v6 line, which before had 0.02 or something like that.

                                            I tested powering it up without the IC, and the speaker turns on and stays on, and works fine

                                            Still, I need to replace this transistor....
                                            06-18-2025, 02:34 AM
                                          • Loading...
                                          • No more items.
                                          Working...