Friday, November 15, 2013

As usual, all things begin with the specification. This project was under her at the thing fairly s

How UPS awoke to a new life Hello World
Sometimes it's a way for someone to be an idea out and no longer minded say that we do. This was also the desire fedex drop off to draw two AK net heated lamps (I'm not going to talk about what those two lamps were, because then the little kids in the other room out). AK narrator may be a bit of a false impression that the old UPS toodigi my room, and after a couple of track connecting the tin was the result you want to. Unfortunately, real life is not all that easy. To be honest, it does not have a UPS in this case at a particular importance. But now to the point.
As usual, all things begin with the specification. This project was under her at the thing fairly simple. Was just need two low-power load verifiably connected to the grid. This grid integration was to be controlled by the PC. Had been decided at the outset that the lamps off the relay and the PC interface is a good old RS232. Microcontroller, which eats you and RS232-headed relays Atmel ATMEGA88 was selected for two reasons. First of all, I was so successfully used by a number of regimes, and secondly, the controller was just not feasible for all. It should be noted that in this case we had the making fedex drop off of a prototype, which the hardware cost is of little importance. When it comes to the production of the outgoing case, it makes sense to embrace lasting contribution to the use of more affordable, but ebamugavaimaid solutions.
The first step was when this whole compote head a little bit to digest and make a diagram of the hardware. Lately I've fedex drop off been using this for making diagrams and PCB industrial grade softi as Altium Protel fedex drop off (DXP). If someone were to ask where to get, then the answer would be that God gave. The scheme itself fedex drop off fell out of a larger scheme, and can be found here or on the picture klõpsides:
The top was a blank space, and then came the power supply. Power supply part, I used to make a small plate to solder a transformer EI305 2878 (2,3 VA and 6V output). This transformer was chosen because that was supposed to be a planned power consumption of about 200mA, and a microcontroller to power was needed +5 V supply. Rectifying the voltage used for the simplest single-diode half-wave rectifier, whose output was smoothed with a 2200 uF electrolyte. This Kondek fedex drop off took off the relay coil power supply, because it does not have to be smoothed out, and a very precise place. Microcontroller and RS232 nivoomuunduri fedex drop off for the +5 V used to make the 78L05 voltage regulator fedex drop off (U2). To this end, the microcontroller TTL nivoodel work up UARTi use these tensions to be transformed according to the RS232 spekis fedex drop off intended. To put it simple TTL 0V to +12 V to +5 V TTL, and to-12V. Everything we used to MAX232 (U3) stone analogy. Connecting microcontroller fedex drop off itself is fairly trivial. Power supply, ground, reset the bull in the mains UARTi input / output, two digital output relays, fedex drop off and two LED control.
The relay to turn on the relay coil to let the size of about 100mA current. To do this, use a transistor switch (Q1, Q2). Since the relay inductance transistor disconnected dying magnetic field induces a high voltage circuit creates a growing tension electrical transistor breakthrough. To prevent this, the windings are connected in parallel to the relay protection diode (D2, D3), so that when the voltage goes over the chain of supply voltage, then the diode will lead to stress and growth stops. Relays SP CO 6 Vdc themselves were one-sided, and a maximum current fedex drop off of 10A, which was more than enough for this application.
Since the scheme was now, with all the pieces was TEVALO to subscribe. Since the circuit board itself was required to make known some of the components placed on the feet, then a change wrote microcontroller software ready.
ATmega microcontroller software development resources needed are all freely available and very good quality. How serious fedex drop off is now waiting for a friend of microcontrollers variety of interesting Asmi lanes, then unfortunately it disappointed this time. In this case, the keywords of Eclipse, GCC, make, and C. I would start it once more to talk about how the ATmega development environment for C adjust up and talk to you another time. This program, given the degree of complexity of the main function, we made while just one cycle, which is considered the beginning of the string, and the string stdio, depending on what relays to switch on or off. Reading string function did themselves on the ground that have the c library scanf does not support more complex fedex drop off functionality. I was required to read a string in line to be considered terminated when arriving \ r \ n symbol. Moreover, it should also be a string over the edge of the write buffer. fedex drop off As the attentive reader probably already noticed we are talking stdio-st and the most common use of the c library string. To allow this, the stdio input and output features to redefine the use of our microcontroller UART hardware. But the right of each code speaks mostly for itself, and you can see it from here.
For some time after, the

No comments:

Post a Comment