Saturday, 6 December 2014

Why use Aluminium for mechanicals?

Have you come across mechanical designs for your projects, then definitely you know that aluminium is the most preferred material for such. There are various reasons  for using aluminium and have a glance at the list below:
  • Good thermal conductor
  • Good electrical conductor
  • Can be shaped easily as per requirement
  • Weighs less, density (mass per volume) is less
  • Durable, soft
  • Resist corrosion
  • Non-magnetic
  • Aluminium is the most abundant metal of all.
  • Gets less affected by environment factors like air and water
  • Doesn't effect the environment, can be recycled
  • Less chances of ignition
The conductivity of Aluminium is 50% of copper but still used widely because of cost factor compared to copper.

Very familiar Applications:
  • Have you seen light poles in your area, they are made of aluminium
  • Electrical grid lines
  • Your kitchen cooking utensils
  • Heat sinks for electronic components and mother boards
  • Bus/car/Rail/Aircraft bodies are made of aluminium
  • Railway tracks
  • Cool drink tins
Note: Aluminium may not be used directly in any application and it is compounds (aluminium + other metals) that are used.

Sunday, 2 November 2014

Understanding RS232 interface/signalling - Part 1

Serial port commonly to as RS232 communication is the most widely used interface in embedded systems. Whether it be micro-controller, processor, FPGA the basic interface and the slowest interface that is used is serial port. RS232 communication complies to requirements of EIA/TIA-232 and V.24/V.28 standards. the two main terminologies we come across in these standards are DTE and DCE.

DTE is nothing but an equipment which transmits or receives digital data. This equipment processes the data and converts it into relevant form the users. One of the best examples of DTE is Personal computer (PC). The other examples include printers, fax machines, etc.

DCE is nothing but a simple level converter kind of circuit to make the DTE compatible with communication equipment. Sometimes DCE is a part of DTE and doesn't exist independently. Modems existing in the market are an example of DCE.

The following figure shows the connectivity between DTE and DCE in it's simplest form.


Note: RS232 full form --> Recommended standard-232

Thursday, 30 October 2014

Using crystals in embedded applications - Part 5

What is series resonance and parallel resonance in crystals?

Series resonance crystal does not have any reactive components like capacitor. Parallel resonance crystal is used where there are reactive components involved. Series resonance crystals are resistive in nature where as parallel resonant crystals combine the phase shift properties of reactive components to determine the oscillator frequency. The following circuits explain the difference.

Parallel Resonant circuit

Series Resonant circuit 

In a parallel resonant circuit, load capacitance is a critical specification.Load capacitance is the capacitance which is seen across the terminals of crystal. When we use this crystal in the application, this load capacitance must match the load capacitance requirements of the device to which crystal is connected. 

A same crystal can act as series as well as parallel resonant. When used in an application, the first resonance at which crystal oscillates is the series resonance and later when reactive component like capacitor is added it oscillates at different frequency which is called parallel resonance. So, from this point if i want to use a parallel resonant crystal and we use a series resonant crystal my crystal operates at a higher frequency than desired. In turn, if a parallel resonant crystal is used in place of series resonant requirement, the parallel resonant crystal operates at a lower frequency than specified.

What is the bandwidth of crystal?

The difference between series resonant frequency and parallel resonant frequency is called the bandwidth of the crystal. Lower the bandwidth higher the stability of the crystal. As per the quality factor definition, (Centre Frequency/bandwidth), lower the bandwidth higher the quality of the crystal. So, for your application choose a crystal by checking at the quality factor curve.

What is the crystal equivalent circuit?


In the above circuit,
Co = Holder capacitance (capacitance contributed by leads extending outside the crystal)
L1 = Motional inductance
C1 = Motional Capacitance
R1 = Series resistance

The common term used in crystal specification is hermetically sealed package. What does that mean?

Hermetically sealed meant air tight enclosure with only provision for external connectivity. In our crystals case, the electrodes are extended out.

What is the difference between AT cut and AT strip crystals?

AT cut is the cylindrical version of the crystal and AT cut is the stripped version of cylindrical crystals for miniature crystals.

What constraints can affect the crystal performance?
  • Assume that we connected a crystal in our application, the drive provided to the crystal should not exceed the specifications of crystal. If drive provided exceeds the rating, the crystal life time gets reduced.
  • Temperature at which the crystal is operated
  • Improper load capacitance can vary the crystal frequency from the desired value
What are the fundamental and overtone specification of a crystal?

Fundamental frequency is specified for lower frequency crystals (around 8 MHz, 24 MHz, etc) where as overtone is odd multiple of fundamental frequency. Overtone crystals are not preferred for micro-controller applications.

Tuesday, 28 October 2014

Using crystals in embedded applications - Part 4

Ceramic resonator (vs) Quartz Crystal (vs) RC Oscillator (vs) Silicon Oscillator:
  • Ceramic resonator and quartz crystal are mechanical resonant devices where as oscillator works on electrical phase shift principle (where R-C are the phase shift circuit).
  • Power consumption of Ceramic is more than quartz crystal. 
  • Ceramic resonators have good rise time than quartz crystals.
  • Ceramic resonator and quartz crystal operate on the same principle as the electrical signal applied to them causes mechanical vibrations. 
  • Ceramic resonators are more rugged than crystal.
  • Quartz crystals are very stable and maintain their frequency under extreme conditions. Quartz crystal may not drift from it's frequency even when the PCB stray capacitance is high. Also, at quick varying temperatures, the quartz crystal remains stable.
  • Ceramic resonators are made of ceramic material which are not as stable as quartz. These are piezoelectric in nature.
  • Comparatively, Quartz costs more than ceramic resonators. 
  • Ceramic requires much higher load capacitance required to quartz crystal.
  • An oscillator is addition of feedback to the crystal along with amplification such that oscillations happen. Take the case of micro-controller, on the external clock pins we add a crystal and combined with internal circuitry it forms a oscillator.
  • Oscillator is immune to EMI and humid conditions as they come packaged with all components for frequency generation.
  • Temperature co-efficient which is a important material property is low for crystals and resonators.
  • Ceramic resonators are available in miniature packages also.
  • Ceramic resonator can sometimes be of compound material which helps change the characteristics of the crystal as per the material.
  • The main disadvantages of oscillators is package size and cost and sensitive to vibration,  

Note: Some micro-controllers have internal capacitors, in this case, there is no need to have external capacitors.

Considering the disadvantages of ceramic resonator compared to Quartz, where do they find application?

Check the age old radio circuits you find resonators. Also, they are used in cost critical application and applications where stability is not important criteria.

What is the main selection criteria for any clock input?

Accuracy is the important criteria. Depending on the application for which the circuit is used, clock must be chosen properly. For example, applications like USB, SATA, PCIe requires a very stable clock with less deviation from the desired frequency.

Note: There are R-C oscillators internal to some ics which have very less stability but is a very cheap implementation. Micro-controller internal RC oscillator is an example.

Sunday, 14 September 2014

Using Wi-Fi modules - Part 1

Using wireless technology for connecting to external world is the trend. Gone are the days where people used those Ethernet cables which didn't allow people to move around while browsing and other activities. Now it is very common that you see more tablets, smartphones, mini PCs and even desktops connected using wireless technologies. PCs use wired Ethernet and Wi-Fi for connectivity whereas smartphones rely on Wi-Fi and GPRS connectivity. So, Wi-Fi is one of the common mode of connectivity whether it be any media. So, when you are planning to use Wi-Fi module in your application it is always important you make a right choice of the module you are using.

To those starters, you have to know that a Wi-Fi is enabled in your device using a transceiver chip which has an antenna connected to it. The antenna acts as a transducer and helps in communicating to external world.

What need to be looked at when you are choosing a W-Fi module?
  • Encryption type in the module
    • WEP, WPA, WPA2 types
  • Wi-Fi standard
    • IEEE802.11a/b/g/n
  • Supports point-to-point or access point connectivity
  • Cost perspective
  • Range
  • In-built antenna present or not
  • TLS (Transport layer security) support
  • Form Factor
  • Can have a web server or not? (HTTPS support)
  • Interfacing to controller (UART/SPI/SDIO)
  • Operating temperature
  • Physical contact of the Wi-Fi module with the mother board
  • Certifications
  • Power consumption
  • Customer support of the vendor
  • Module dimensions

Saturday, 13 September 2014

Basics: Why Active low signals used?

Are you working on digital circuits? Then you must be using control signals in your design and must be hearing about terminologies like ACTIVE LOW, ACTIVE HIGH. We sometimes just follow the design recommendations and never think of the need to do it. Let us analyse the need for Active Low in our designs.

What is active low?
A general criteria while using any control signals (like Enable) is to make it HIGH from LOW state. But in some cases, like the chip select and reset it is in reverse, the signal will be initially HIGH and when it is turned LOW, it means that particular signal is asserted (when asserted, it changes the connected chip functionality as desired, can say connected chip changes state). Control signals which are used in this manner are termed Active Low. The terminology itself tells that signal is termed active when it is LOW.

How is Active LOW signal differentiated from Active HIGH signal?
The representation of the signal (as per the Active HIGH or Active LOW ) in the datasheet of that particular chip is different. Active LOW is represented by having a dash on top of the signal name. Chip Select if active low is represented as (CS).

Reasons for using Active LOW only:
  • Let us assume that you want to choose a device between n-channel MOSFET and p-channel MOSFET for your application. One would always prefer going for n-channel as electrons are the majority carriers in this type of device and have the highest mobility then holes. In this case, when the transistor is ON, the output is driven low. So, a normal condition is that output is high and when transistor in on output is low. This is one of the factor which makes implementation of active low state easy. Same mobility case applies to BJT also where NPN is preferred compared to PNP.
  • Active LOW always helps eliminate indeterminate states due to improper supply voltages. 
  • A genuine reason is that it is easier to pull down a signal than pulling it up. 
  • Under a Active low condition, it is always easy to use wired-or condition and apply common reset to several chips. So, fanout can be increased. Control signal count can be reduced.
  • For critical signals like Reset, it is always important that a state is maintained properly, if they are made active high, any noisy transitions may cause improper reset in the circuit. So, a state of high initially and then making it low to reset the chip can be the best option. 
  • Consider the sourcing capability for example of a micro controller which doesn't go beyond 10 mA. If you want to source more you may have to use an external driver. In these cases, it is always preferable that we use Active LOW. For digital circuits, sink current capability is more than source current.

Saturday, 23 August 2014

Wireless Charging - The emerging trend

Many of us use a wall mount charger for charging out multimedia devices like smartphones, tablets, music devices, etc. These devices have a socket into which the external charger goes in. It is always recommended that you use a suggested charger for a specific device. What if you don't have to use this wired charger and charge your mobile hassle free? Yes, this is what wireless charging is. Just place your mobile on a charging pad and your mobile gets charged, as simple as that.

Wireless charging is based on the principle of magnetic induction. Magnetic induction meant there will be two coils in which the first coil (transmitter) has a current flowing through it which causes magnetic flux. when the second coil (receiver) is placed near to first coil the magnetic flux induces current in the second coil. So, a charging pad on which you place the mobile will have a coil in which flux will be developed. When you place your mobile right next to the charging pad, which has a second coil , it induces current and hence battery charges. Basically, it is the electromagnetic field that plays a role here.

An alternative to magnetic induction is resonant charging. In this the receiver need not be next to the transmitter. Both of them work on the principle of resonance. In this way of charging power is transmitted wireless at a 6.78 MHz rate. In this case, the resonance helps charging.

What are the various wireless charging standards?
  • A4WP (Alliance for wireless power)
  • PMA (Power Matter Allaince)
  • WPC (Wireless power consortium)

WPC developed Qi standard which is the most popular now and is in use. Qi is basically the magnetic induction type of charging. Regulatory approvals are in place for this standard.
A4WP developed resonant type charging. Regulatory approvals not in place.

What are the challenges from the designer point of view?

Let us take a smartphone designer, who wants to implement wireless charging in his device. The challenge for him is to select a chipset which is used as receiver. The chip has to support the desired standard. Also, the charging control circuitry to be implemented to connect to unit to be charged (battery). Chip sets are also available in the market which supports various charging standards. Coupling factor is of primary importance. A higher coupling factor leads to faster charging rate.

What are the various vendors for wireless charging chips?
  • IDT
  • Broadcom
  • NXP
  • Texas Instruments
  • Freescale
  • STMicroelectronics
What are the various domains wireless charging is expected to get exposed to?
  • Smartphone charging where the charge pads can be mounted outdoors at public places like bus stops, cafeterias.
  • Electric vehicles charging (Battery)
What are the differences between Inductive charging and resonant charging?
  • For inductive charging, the receiver must be in the close proximity of transmitter (receiver and transmitter separated by centimeter distance) where as for resonant charging this is not the case.
  • Coupling factor is high in inductive charging
  • Size of the coils is more in inductive charging than resonant charging
  • Cost is also high for inductive charging than resonant charging
  • Efficiency is high in inductive charging
  • Heat is more in inductive charging