Recently, I accidentally visited the site of the firm “Amperka” (in the style of “we went to look for spare parts for an excavator and, naturally, ended up on the porn site”) and remembered how I once carried out an impartial analysis of their display module. I decided to see how things are at the moment with this module and found out with amazement that a completely different device is now offered for implementation (internally different, the outside is exactly the same, although not quite), to which there are no complaints about operation. I do not know what caused the processing, flatter myself with the hope that these were my remarks.
I would be proud and go to other sites, but my eyes focused on the scheme of the new module and the thought arose that this device could be instructive in terms of development. So it is, those wishing to familiarize themselves with some simple considerations on this subject may click the button.
Consider the original scheme
So, we begin analysis. On the module
amperka.ru/product/troyka-quad-display (link to the diagram), shift registers are set, the information in which is recorded by a serial code (data plus a strobe, via bit-gangs, via the interface), and fixed at the outputs by the third signal, all clear. But there are two more microcircuits on the module, on which a clock generator and a decoder for two outputs are implemented (this can be called an inverter). Most likely, the module was originally planned on single seven-segment indicators of the type KCSA04, as evidenced by the inscription on the diagram, but was then converted to a quad indicator with dual controls. Indeed, the outputs of the shift registers are pairwise multiplexed by controlling the output buffer of the chip. At the same time, one of the outputs of the decoder excites the anode of the indicator corresponding to the switched on register - a dynamic indication with two phases.
Why exactly?
Consider the question of why this was done. To begin, let us ask ourselves how much the 4095 shift register chip costs. It seems that the answer is obvious - we go to the seller’s website (let it be Platan, I have numerous memories associated with it, I went there on the fourth or fifth floor in the building through the avenue from the metro station , that's how long ago it was), type the name of the component in the search and see the answer - 11 rubles (hereinafter I will omit the designation of the currency) in the opto (we are not going to make one fee). For now, let's leave aside the opportunity to search from other suppliers and believe that 11 is the price of the chip?
')
Chip cost feature
The previous answer is correct only in the very unlikely event that we purchase wholesale mcx for resale at retail. If we are going to use the MCC for the production of printed circuit boards, then we must consider the cost of ownership, which in this particular case leads to the need to take into account the cost of a piece of PCB to accommodate the MCC and the cost of its installation on the board.
There is no uniqueness with the first indicator - often (as in this case) the dimensions and geometry of the board are determined by the appropriate circumstances and are not directly connected with the circuit implementation. However, in the general case, such a connection can take place and you should not forget about this component completely.
Now the second part of the cost - a quick search gives 0.5 per SMD soldering and 1 for a lead-out. I still remember the times when the cost of rations was 0.3, but then the dollar was completely different.
Sarcasm in the fields of the post:
In general, it would seem how a foreign currency exchange rate can influence prices within the Russian Federation, but the correlation can be established and it is unequivocal. Some observers even go further and make bold conclusions about the relationship of domestic prices with world prices for some types of energy, but we should indignantly reject these vile insinuations, because the real patriot should understand that the level of welfare of Russians depends solely on the wisdom and insight of the country's leadership expressed in “the constant care of the party and the government headed by personally dear Leonid Ilyich ...” - I accidentally turned on the TV yesterday.
Distract and estimate: 50 kopecks - is it a lot or a little?
But let's return to our calculations and try to verify the detected indicators. If the soldering of a two-output SMD component costs 1, and the number of components to be mounted is 3 per minute (we do not have an automatic line or even a semi-automatic), then with the number of working days in the middle month, 21 * 8 = 168 hours * 60 = 10080 minutes * 3 = 30240 components * 1 = 30240 rubles. For such a sum will be made of work by our conditional installer. Of these, he will receive on hands 30240 / 1.2 = 25200 / 1.4 = 18000 / 1.13 = 15930 rubles per month, in my opinion, quite a bit. And this is an estimate from the top, because we did not take into account the fixed costs of organizing production, the cost of consumables, equipment and the “surplus value appropriated by the capitalist, thanks to private ownership of the means of production” (something like this right now comes to mind). On the other hand, three components per minute - I just took it for definiteness, if the intensity is higher, then the final figure changes accordingly. However, I would not want to earn my living by installing printed circuit boards.
We consider further.
At these rates, the cost of installing four indicators of the type KCSA04 will be 8 (in fact, they are only called seven-segment ones) + 1 = 9 -> 14 * 4 = 64 * 0.5 (SMD) = 32. At the same time, the actually installed indicator of the CA04-41 type will require 8 + 2 = 10-> 10 * 2 = 20 * 1 (output) = 20, which is better than 32. And if you go to the indicator of the CA56-12 type, then we get 8 + 4 = 12-> 12 * 1 = 12, which leads to savings of 20 rubles while improving the quality (small, but nice). It's funny that the difference in the cost of the last two indicators is exactly 8 rubles, so, taking into account the rations, their cost is compared (coincidence ... I don’t think). Yes, in this case we will have to set the decoder to 4 and add two transistors to the excitation circuit, but even such a change in the circuit may be acceptable, although there is a much better option.
Let's pay attention also to the leveling resistors in the chains of the segments. At first glance, their number can also be reduced from 4 * 8 = 32 to 2 * 8 = 16, connecting the outputs of the registers in pairs and putting resistors after the connection point. Why do this - if saving 16 while maintaining quality is not of interest to you, then you should not engage in the production of electronics. But you should pay attention to the last condition and in this particular case, not everything is so simple. If we connect the outputs of the MCC directly, then at the time of switching through currents are possible, which is not welcome, so for now we will refrain from reducing the number of resistors.
A bit about resistors
A nominal resistor of 0.510 kOhm should be considered acceptable, although it should be noted the possibility of a significant luminosity deviation with this switching circuit. Indeed, a direct drop on the LED at a current of 20 mA will be from 2.0 to 2.5 V (in the table they give values from 2.1 to 2.4 and here is a note about the accuracy of 0.1 - but I didn’t know that this was possible) and the current at 1.5V will be no more than 0.1mA.
PNP: in general, the last figure is very controversial, because it is taken from the graph, but no other data is presented to us, from the word at all, except for the statement of reverse current at a voltage of -5 volts, and this is not at all that. You can, of course, take a universal value of 0 mA at a voltage of 0 V, and we will definitely not make a mistake, but the calculation error will increase, so it is better to take more accurate values that look plausible.
The data presented is clearly insufficient to accurately plot the IVC segment of the LED graphics does not count), but it is possible to build a region for finding the possible characteristics with some plausible assumptions, in particular not reducing the differential resistance with increasing voltage on the device. Accepting some simplifications, we get that the variation of currents across the segments can be at a supply voltage of 3.3V from (3.3-2.5) /0.5=1.4 mA to (3.3-2.0) /0.5=2.6 mA or almost two times. For the 5V supply voltage, the picture is improving - the current changes from 5mA to 6mA, which will not surprise those of my readers who read my post about choosing the parameters of the LED supply circuit. In estimating the luminosity difference, it is also necessary to take into account the possible asymmetry in the generator of exciting signals, which can be estimated at 30 percent maximum. In general, it is acceptable for everyday tasks, but far from ideal.
PNP: in general, it is not very clear why all this fuss is about the equality of the current through the segments, if at the very beginning the date on the indicator indicates a possible variation in the luminous intensity 4+ times (from 3000 to 13000 microcandell at 10 mA), which exceeds all the possible variations in current are probably just a habit of trying to do well.
We put MK and we consider
Continue to talk about the possible options for circuit design. If we switch to a multiplexed indicator with 4 excitation inputs, then we can consider dropping registers and a generator and replace all of this with an inexpensive MK (candidates for this role are STM8, MSP430 or Padauk). Basic requirements for the controller: 1) the number of general-purpose leads 8 + 4 + 3 = 15, 2) zero current not less than 6 mA, 3) current per msh - at least 48 mA, 4) timer is desirable, 5) SPI is desirable, 6 ) external interrupt is desirable. All three candidates meet the specified requirements.
Next, we will be guided by data from the Platan site, you can take your usual company, we are not interested in absolute values (it’s impossible to compete with China), but relative ones. So, we change 4 registers on 11 on MK for 48 and we receive 4 * 11 = 44 <48 and any benefit. But if we take into account the cost of installation and the picture changes 4 * (11 + 8) = 76> 1 * (48 + 10) = 58 (-18). And then we take into account that we removed 2 cases of dual TS 2 * (5 + 3) = 16 (-16) and reduced the number of resistors from 32 to 8 (-24), so taking into account the savings on the soldering of the indicator, we have 20 + 18 + 16 + 24 = 78. From the resulting savings, you will have to subtract two additional transistors 2 * (3 + 2) = 10, but you can add to it the generator binding 2 * (0 + 1) = 2, getting 78-10 + 2 = 70, more than 10% of the selling price.
But we should take into account the need to fill the program in MK before soldering and do not forget that this program still needs to be developed. The first part can be estimated at 2 minutes of the installer, which in our figures gives 6. Well, the development of the program will take less (but no more than) two hours of the programmer, which can be estimated at 60 * 1.13 * 1.42 * 1.2 / 168 * 2 = 1400, repulses the first 20 copies of the device. By careful development, you can also make the board one-way, and this is a price reduction from 36 to 18 for our sizes.
Conclusions: normal flight
In conclusion, we will try, “on the fingers,” to estimate the cost of such a module in a small series:
The board (285/8) 36, the indicator (165 + 12) 177, MK (48 + 10) 58, resistors (8 * 1) 8, transistors 4 * (7 + 2) 036, connectors 4 * (0.5+ 1.5) 8, capacitors 2 * (1 + 1) 2. The total cost of the module will be 325. Add overhead, the manufacturer's profit, and the selling price of 690 does not seem excessive. At least one copy for yourself, you definitely will not make it cheaper, although it will not work more expensive, so this post is not an abusive or advertising, but rather neutral.