Elektroda.com
Elektroda.com
X

Search our partners

Find the latest content on electronic components. Datasheets.com
Elektroda.com

System for 1 USD * - TV remote control by piotr_go

piotr_go 5142 62
This content has been translated flag-pl » flag-en View the original version here.
  • #31
    Mlody_Zdolny
    Level 15  
    spec220 wrote:
    Even if you want to switch on individual branches, you still have to refer to something to maintain the set current. By the way, there are 3 branches, because there are 3 different thresholds for the load capacity of the output itself, while the same current stability in a given threshold is responsible for the source that will prevent the maximum current value from being exceeded for this threshold.

    I don't have to refer to anything - each transistor can act as a current source in a certain operating range.
    It is enough for it to have the appropriate output characteristics.
    Example: BS170
    System for 1 USD * - TV remote control by piotr_go
    At a certain voltage Ugs, the Id current is constant, regardless of whether the diode is on or not.
    The voltage at the gate changes in proportion to Vcc and the current Id changes.
    spec220 wrote:
    I specialize in analog.

    As an analog specialist, you should know this.
  • #32
    spec220
    Level 26  
    piotr_go wrote:
    You wrote about internal reference in AVRs for outputs so I was surprised.

    I meant the entrances. I only gave this comparison because I thought in this architecture they did some wow on the I / 0 output ports

    Added after 5 [minutes]:

    Mlody_Zdolny wrote:
    At a certain voltage Ugs, the Id current is constant, regardless of whether the diode is on or not.
    The voltage at the gate changes in proportion to Vcc and the current Id changes.

    Oh no my dear
    Power up the gate and connect different loads with the same voltage. while
    Mlody_Zdolny wrote:
    As an analog specialist, you should know this.

    But you are young, and will it prove capable?
    If it is to be one controllable MOS stabilizing the current at the same time, it must have at least 2 gates ...
  • #33
    Mlody_Zdolny
    Level 15  
    spec220 wrote:
    Power up the gate and connect different loads with the same voltage. while

    I see that a specialist in the analog of the basic characteristics of a transistor cannot read.
  • #34
    spec220
    Level 26  
    Funny. Characteristics where the dependence on the different Robc is not shown.
    Dude, this is pure saturation characteristics of the transistor, not the so-called dynamic.
    Talk to the removed one, he likes young and talented people.

    Regards and I'm finishing this offtop.
  • #35
    BOOM i ZONK
    Level 21  
    piotr_go wrote:
    I will repeat again. After an hour, the current was the same as at the beginning of the test, not the same for 5V as 3.3V.

    I was suggesting this and I missed it:

    piotr_go wrote:
    And one more test. When powered by 5V, the current on the 40mA pin, with and without LED.
  • #36
    piotr_go
    DIY electronics designer
    BOOM i ZONK wrote:
    I was suggesting this and I missed it:

    I don't quite understand where is the contradiction?
  • #37
    BOOM i ZONK
    Level 21  
    I guess I'm making an idiot of myself: I understand it that stabilization of the current is because; Regardless of whether the current flows through the LED or not (short-circuit), its value is comparable, however, it is different at different VCC voltages. Yes?

    I was reading on my head, not seeing that there is a measurement on the LED and a short circuit.
  • #38
    piotr_go
    DIY electronics designer
    BOOM i ZONK wrote:
    I understand it like that the stabilization of the current is because; Regardless of whether the current flows through the LED or not (short-circuit), its value is comparable, however, it is different at different VCC voltages. Yes?

    Exactly.
  • #39
    djfarad02
    Level 19  
    spec220 made a mess in the thread and yet these outputs are ordinary, simple current sources with one field effect transistor. What is the copy here to crush? In short, the current depends on Ugs (that is, on Usas) and on the type of transistor.
  • #40
    Mlody_Zdolny
    Level 15  
    spec220 wrote:
    Characteristics where the dependence on the different Robc is not shown.
    Dude, this is pure saturation characteristics of the transistor, not the so-called dynamic.

    A load of crap. You read the current for a given Vgs and a load resistance of zero ohms.
    spec220 wrote:
    I'm finishing

    Good decision, the next time you jump out of something, find out how a transistor works, and in particular what is a transistor saturation state and the basic characteristics of a transistor.
  • #41
    spec220
    Level 26  
    Mlody_Zdolny wrote:
    A load of crap. You read the current for a given Vgs and a load resistance of zero ohms.

    Meanwhile, the resistance Robc changes (it is dynamic), and the current is the same for a given voltage Uz. Where you have the characteristics of the JD current dependence for a given voltage, gate saturation, Uz and various Robc. ?
    Buddy, I tell you again that you presented the saturation characteristics of the transistor itself ...

    PS
    I forgot about the temperature characteristics. Such a tiny MOS in the US and a current of 40mA at a voltage of Uz 5V (almost 0.2W) And what does not change after an hour?

    anyway, drive the gate of such a transistor with 5V and you will see what happens when the drain is fully short-circuited ...
  • #42
    Mlody_Zdolny
    Level 15  
    spec220 wrote:
    anyway, drive the gate of such a transistor with 5V and you will see what happens when the drain is fully shorted

    Which means what?
    As for the system discussed in the topic, I dare to assume that the drain current of the output transistor will have a value of about 23 mA at Ugs equal to 5 V #twenty
  • #43
    spec220
    Level 26  
    Mlody_Zdolny wrote:
    what does it mean what?
    As for the system discussed in the topic, I dare to assume that the drain current of the output transistor will have a value of about 23 mA at Ugs equal to 5 V

    Meanwhile, it is over 40mA (post # 9)
    Buddy, I have accidentally blown an unsecured MOS gate of some US with a short circuit more than once. For the bank, these keys must have some security. The Ugs MAX of such gates ranges from 8-10V, where full control is achieved at the voltage of about 4.5V. These are low voltage transistors ...
    The manufacturer provided only the characteristics of the final stage and a general schematic illustration, but we do not know how exactly the final stage I / 0 is built.
  • #44
    PiotrPitucha
    Level 33  
    Hello
    Spec220, there is nothing to fight for.
    First, primo :) when you power the 3.3V or even 5V system, you will not get Ugs 10V, maybe 4.5V in gusts.
    Secondly, take a look at the characteristics of low-power transistors, once I wanted to use BS138 to control displays and I had to throw a series resistor from the display segments, because Rdson for some pieces was several dozen ?.
    Thirdly, simple current sources on Mosfets are made by throwing a resistor into the drain and connecting the gate to ground, but you probably know this from analog circuits (of course, the transistor must conduct at zero voltage on the gate, in amplifiers, for example, BF245 is often used as a source for a differential pair ).
    I don't remember many of the US technologies, but there is usually a problem with obtaining high resistances, in the times when I was learning it, it was common to use sources on Mosfets instead of resistors, which results in a non-linear output characteristic.
    Regards
  • #45
    spec220
    Level 26  
    PiotrPitucha wrote:
    I do not remember many of the US technologies, but there is usually a problem with obtaining high resistances, in the times when I was learning it, it was common to use sources on Mosfets instead of resistors, which results in a non-linear output characteristic.
    Regards

    that's why I wrote about the divisor. In the past, the simplest source was an ordinary J-FET in a metal housing with 4 pins.
    PiotrPitucha wrote:
    First of all, if you power the 3.3V or even 5V system, Ugs 10V will not appear there, maybe 4.5V in gusts

    10V is the MAX voltage which, if exceeded, will result in a gate breakdown. At 3.3V, such a transistor is practically activated, and at 4Vgs, by shorting the drain, you make a total short circuit.
    Of course, like any MOS, it can be connected to act as a non-linear current source.
    Manufacturers usually simplify the overview diagram to a minimum so that you know how to adapt a given architecture to a specific need, but I have already written about it before. Without detailed documentation of what is inside, you can only guess ...
    PiotrPitucha wrote:
    Thirdly, simple current sources on Mosfets are made by throwing a resistor into the drain and connecting the gate to ground, but you probably know this from analog circuits (of course, the transistor must conduct at zero voltage on the gate, in amplifiers, for example, BF245 is often used as a source for a differential pair ).

    This is just one of the ways. In the simplest differential, it is enough to keep the steam supply voltage stable. You put the source resistors in the pair, and between them (not always) the bias adjustment potentiometer ...
  • #46
    SylwekK
    Level 32  
    How I like your projectors on strange little procks :) I envy you, because I can only do that at tiny13 :)
  • #47
    spec220
    Level 26  
    SylwekK wrote:
    I envy you, because I can only do that at tiny13

    Maybe it's high time to switch to a different programming environment?
  • #48
    ArturAVS
    Moderator of HydePark/Cars
    spec220 wrote:
    Maybe it's high time to switch to a different programming environment?

    What for? If the current one meets the requirements and is sufficient, what will the change give? Anyway, ATtiny is not the environment, but the uC family.
  • #49
    spec220
    Level 26  
    ArturAVS wrote:
    What for? If the current one meets the requirements and is sufficient, what will the change give? Anyway, ATtiny is not the environment, but the uC family.

    Ok, but the code for this tiny must be written in something? As long as you use an environment (like me) that does not support a certain group of microcontrollers, the only thing left to do is change, or get to know a different environment ... Be the simplest option possible;
    SylwekK wrote:
    I envy you, because I can only do that at tiny13
  • #50
    ArturAVS
    Moderator of HydePark/Cars
    @ spec220 the fact that you use a strictly graphic environment dedicated to a specific group / family of uK does not mean that others too. C + / C ++ allows you to write software independently of the "family" of uK.
  • #51
    piotr_go
    DIY electronics designer
    ArturAVS wrote:
    What for? If the current one meets the requirements and is sufficient, what will the change give? Anyway, ATtiny is not the environment, but the uC family.

    Availability, price .... progress.
    These new attinas look interesting, but somehow not very popular. I bought a few pcs, made a programmer, but there was no opportunity to use them.
  • #52
    spec220
    Level 26  
    ArturAVS wrote:
    @ spec220 the fact that you use a strictly graphic environment dedicated to a specific group / family of uK does not mean that others too. C + / C ++ allows you to write software independently of the "family" of uK.

    And how does someone, for example, write in Bascom? not C / C ++ What is the support here in terms of libraries or unusual microcontrollers?
  • #53
    ArturAVS
    Moderator of HydePark/Cars
    spec220 wrote:
    And how does someone, for example, write in Bascom?

    Bascom is an environment closed to uK Atmel.
    spec220 wrote:
    What is the support here in terms of libraries or unusual microcontrollers?

    After all, in each environment you can write your own libraries and definitions of new layouts, most of the libraries available with a given environment are only examples, often they are inefficient and contain errors. Writing your own library is a piece of cake for a good programmer.
    piotr_go wrote:
    Availability, price .... progress.

    And curiosity about the new :D .
  • #54
    spec220
    Level 26  
    ArturAVS wrote:
    After all, in each environment you can write your own libraries and definitions of new layouts, most of the libraries available with a given environment are only examples, often they are inefficient and contain errors. Writing your own library is a piece of cake for a good programmer.

    I know that, because it's the same in graphics. I create my own algorithms (library) from the so-called basic blocks of which there are several dozen. And is it such a piece of cake? It depends on the algorithm and its complexity, because you can sit for one day or more. WC / C ++, as long as you make your own libraries, one line of code may contain from a few to several hundred or even thousands of lines of code, so it is not always such a piece of cake. A team or a group of programmers often works on serious libraries ...

    ArturAVS wrote:
    Bascom is an environment closed to uK Atmel.

    SylwekK wrote:
    I envy you, because I can only do that at tiny13
  • #55
    ArturAVS
    Moderator of HydePark/Cars
    spec220 wrote:
    A team or a group of programmers often works on serious libraries ...

    Rather not in the amateur sphere.
  • #56
    Mlody_Zdolny
    Level 15  
    spec220 wrote:
    one line of code may contain from several to several hundred or even thousands of lines of code

    It must be some monstrous macro or an inline function.
    Otherwise, the line of code is the line of code. It may be a function call, but that is done by the compiler and linker.
  • #57
    spec220
    Level 26  
    ArturAVS wrote:
    spec220 wrote:
    A team or a group of programmers often works on serious libraries ...

    Rather not in the amateur sphere.

    Well, but you will admit that even amateurs use such libraries related to stacks of lines of code. Death would bite you if you were to create some kind of database, or write a simple multimedia application, writing from ZER the entire library that you will later use. Yes, you can add something more or less complex, but everything has its limits

    As an example I will give start from android.

    Tmf. there are some poor displays that run up to 4 words on ali in conjunction with the hardware graphics processor raa.
    I personally wanted to run something better, because of course too much YT where everything is so simple. I bought a Samsung galaxy S6 for 50 ten on an allegro with a compact display (even 2 pcs. Because it was cheap). The display can be replaced by yourself at a cost of about PLN 200. Supposedly super AMOLED, but at this price and with this resolution, it is usually modern and technologically cheaper, not inferior in quality OLED. I bought it because I wanted to use it as a whole in conjunction with the motherboard. You have mega system resources right away + a touch display with a mega matrix resolution as well as colors.

    start is easy, you set the programmer mode, download the finished ROOT, upload, fire and now. It should be remembered that the phone loses its certification irreversibly and it will not make any banking transactions, etc. The flag is set and it cannot be deleted. Then you have the libraries packed in MD5, where you also need to know what it's for, supports on-board devices, etc.
    Generally, it ended there ... Such a smartphone can be used as the heart of a simple oscilloscope and more. A multimedia display or a control panel for CNC machines. you have virtually all the resources you manage, not the android system.

    And tell me if even if someone could make a simple software for such a smartphone, would he write libraries from scratch, e.g. related to the system processor or graphics?
  • #58
    ArturAVS
    Moderator of HydePark/Cars
    spec220 wrote:
    And tell me if even if someone could make a simple software for such a smartphone, would he write libraries from scratch, e.g. related to the system processor or graphics?

    It depends on the programmer, if he wants to run it easily and quickly use ready-made libraries, and if he wants a proprietary solution, he will create his own. Possibly available libraries would be treated as a model or modified as required.
  • #59
    piotr_go
    DIY electronics designer
    spec220 wrote:
    And tell me if even if someone could make a simple software for such a smartphone, would he write libraries from scratch, e.g. related to the system processor or graphics?

    I wouldn't even write if I wanted to. The manufacturers do not provide documentation.
    For a change, there is documentation for raspberry pi and there are projects without OS.
  • #60
    Mlody_Zdolny
    Level 15  
    spec220 wrote:
    you set the developer mode, download the finished ROOT, upload, fire and now. It should be remembered that the phone loses its certification irreversibly and will not make any banking transactions, etc.

    You can do and with root.