Showing posts with label systems. Show all posts
Showing posts with label systems. Show all posts

Sunday, September 21, 2014

Efficient LED Blinking for Embedded Systems

Smart hardware design can simplify the embedded software and make it more reliable. Designers use blinking LED signals to indicate different status and for inbuilt testability. Making an LED array blink requires an individual software loop for each LED or an individual timer and specific software to serve it. This can be an issue in a system that uses low-level MCUs which provide limited resources.

Efficient

Fig. 1: Circuit for efficient LED blinking for embedded systems


The schema presented here solves this problem by adding a simple hardware comprising low-cost inverters with Schmitt trigger for blinking as many LEDs as required.

Circuit and working
Fig. 1 shows the schema for efficient LED blinking for embedded systems. It uses different arrangements to make five different LEDs (LED1 through LED5) blink at individual rates. The schema is built around 74HC14 (IC1) containing six inverters with Schmitt triggers at the inputs. The frequency of blinking is usually selected in the 0.2-20Hz range.


The combination of inverter N1, resistor R1 and capacitor C1 is used as a square wave generator to blink LED1. LED1 blinks when output OUT0 from the MCU is high and goes off when output OUT0 is low.

The combination of inverter N2, resistor R2 and capacitor C2 works as a second square wave generator that makes LED2 blink. LED2 blinks when output OUT1 of the MCU is low and glows constantly when the output is high due to reverse orientation of D2.


Sometimes an LED needs more current than that provided by a single inverter. In that case, two or more inverters can be connected in parallel. Such an arrangement is made using inverters N3 and N4, resistor R3 and capacitor C3. The direction of diode D3 determines the logic of control of LED3 as indicated in the previous arrangements.

If you want two LEDs blinking alternately, the setup is made using inverters N5 and N6 together with resistor R4 and capacitor C4.

When OUT3 is low, LED4 is ‘off’ and LED5 is ‘on.’ When OUT3 is high, LED4 and LED5 blink alternately. The frequency of blinking in all the cases depends on the value of the adjoining resistor and capacitor.


Fig. 2: An actual-size, single-side PCB for efficient LED blinking for embedded systems


Fig. 3: Component layout for the PCB


Construction and testing
An actual-size, single-side PCB for efficient LED blinking for embedded systems is shown in Fig. 2 and its component layout in Fig. 3. The PCB provided is only for learning purpose and can be enclosed in a suitable case.

To test the schema, measure input supply at TP1. It should be around 5V DC with respect to TP0. Now make OUT0 high and measure the frequency at TP2. It should be around 2.5 Hz. Similarly, measure the frequencies at test points TP3, TP4, TP5 and TP6 as shown in the test points table.



Sourced by: Efy: Author : Petre Tzv. Petrov 
ReadMore..

Thursday, August 28, 2014

Auto Sound Systems One Piece at a Time

Those who are in the market for auto sound systems are probably well aware of the many decisions that need to be made throughout the process. Gone are the days when you went in, pointed to a box and walked out with all the pieces, parts, and components you would ever need for a really kickin sound. The truth of the matter is that there are many pieces and parts that work together in order to create the ultimate sound system and everyone seems to have different requirements, styles, tastes, and budgets to work with.
Because of this, many manufacturers of auto sound systems have wised up to the fact that some people will buy the components they need to create the sound system of their dreams piece by piece as budgets allow. This is actually a very intelligent way for customers on a budget to buy the sound system they are hoping to some day have. As a result you will find that speakers, amplifiers, sub woofers, and the actual stereo are often sold separately and at very reasonable prices.


Most of us hate living within limited budgets but understand that often in life it is a necessary evil. Living on a budget is not such a terrible thing really. If we had everything we wanted, what on earth would there be to look forward to? At least that is what I keep telling myself. I, however, seem to be the queen of budget living and bargain hunting. I love little more in life than finding a great deal on an item Ive had my eye on for quite a while and hate little more than finding it cheaper once Ive purchased it. As such, I tend to invest a great deal of time researching any major purchase before taking the plunge. A good auto sound system by this I mean good quality, minimal features is going to run (total package and installation) at least $1,000 with many costing a good deal more than that.


That doesnt mean you need to have a thousand bucks lying around the house in order to begin building your auto sound system. You can buy a decent set of speakers for around $200-$260 if you desire. You can find sets at lower prices, but this is the price for a fairly decent set of speakers that should serve you well. Keep in mind that you could very easily spend a lot more than this on speakers if you arent careful. Living on a budget means you have to make some sacrifices along the way in order to have the things you want in life. Buy the speakers and have them installed (if you can do it or your know someone who can, this will save a lot of time and money).

Once you have the first component, whichever one that may be (that choice is entirely up to you and largely dependent on your personal tastes and which need replacing worse in the vehicle you own) you can begin saving towards the next. You should also consider asking friends and family (who would like to know what to get you for the holidays) to help you reach your smaller goals along the way. Most people are glad to help with specific items if they know what those items are. The point is that this isnt an all or nothing proposition. Take small steps towards your prize and you will find that you are constantly getting one step closer.

ReadMore..