Chitika

Sunday, December 27, 2015

Microwave Troubleshooting - Some Essential Techniques

Microwave Oven is an essential part of modern days kitchen not only in developed countries but also in many developing countries.Like many other electrical home appliances,microwave ovens are also liable to develop some minor or major faults over the period of time as they are used in routine.In this article some techniques to repair a faulty microwave oven are presented.

Components and Items Required for Troubleshooting :

For troubleshooting a microwave oven you may need the following components and tools:
Figure 1 : A Typical Microwave Oven

Thursday, December 10, 2015

Converting Binary Array to Integer Value in Labview

Sometimes its is required to convert binary array into integer value in Labview or sometimes it is required to convert individual binary bits acquired from parallel data lines of output from Analog-to-Digital Converter into integer value that may be used for further processing or mathematical manipulations.Here is a simple Code for implementing this idea in Labview:
Figure 1 : The Front Panel
The Front Panel of this code implementation in Labview is shown in Figure 1.The Front Panel shows to ways of converting to number one from Boolean Array and the other from individual Boolean Bits combined through Build Array function.

Monday, July 13, 2015

Simple Check-sum Calculation in Labview

Sometimes you need to calculate the check-sum of the data sent or received over the serial communication or some other communication link to establish the integrity of the received data.While transmitting data calculated check-sum value,usually a byte is appended at the end of desired data before the terminating byte value,that you can chose at will to mark the end of the transmitted data string or data stream.
There are many ways to calculate check-sum in such cases,but I will discuss simple method of calculating check-sum.Simply add contents of consecutive data bytes,starting from the bytes indicating the start of data string,and ignore the overflown data till all of the bytes have been added to calculate the final check-sum byte.This check-sum byte is appended at the end of desired data before the data string terminating byte.
Here is the simple Labview code,shown below,to calculate the check-sum of a data string that is transmitted over the serial link to the micro-controller which again calculates the check-sum using above mentioned technique.If the check-sum calculated by the micro-controller matches with the relieved check-sum then the data received is supposed to be error free and intact.
The following image shows both the block diagram and front panel of this Labview Code:

Tuesday, July 7, 2015

Conversion of Hexdecimal String to Decimal Values in Labview

It is sometimes required to convert a hexa decimal string, received over serial port or through some other communication link etc., to decimal values either for further processing or for display of data.
The following Labview code converts a string containing hexa decimal data (also displayed in hexa decimal format in the string) to decimal format.
 This is a simple code and contains following key VIs and functions:
  • Hexadecimal String (with Hex display option selected from the front panel )
  • String to Byte Array Conversion Function
  • Index Array Function
  • Join Numbers Function
A screenshot of front panel and block diagram of this Labview program is shown in figure above.It is a simple but quite useful Labview code.

Tuesday, May 26, 2015

A Technical Primer on Uninterruptible Power Supply (UPS) and about its Wiring and Installation Guide for Home Backup Electrical Power

An Uninterruptible Power Supply (UPS) is a battery powered electronic device that continues to supply electricity to the load for a certain period of time during utility power failure or when there are fluctuations in line voltage outside the normal operating limits.Uninterrupted Power Supply (UPS) is being widely used in many countries as a backup electrical power source for homes where there is acute shortage of electricity and frequent power outages is a commonplace.In such areas,UPS serves a good source of backup power for homes to run a few bulbs and fans in event of power outage.As soon as the grid power goes out,UPS automatically starts supplying backup power to those appliances which have been wired to power through UPS.The amount of charge stored in battery connected with UPS depends upon the power rating of UPS in KVA,its Charging Current and storage capacity of the battery in Ah (Ampere Hour).
Typical application of a UPS to serve as a PC backup power source.Large and permanently wired device may be used to supply backup power to entire home,servers or other equipment.
When you need to choose your backup power source,the main things to decide are : 
  1. The amount of electrical power you may need during blackout when grid power is down.
  2. The length of time for which you need backup power.
  3. Your budget.
  4. Topology or Internal Design of UPS that dictates how UPS will operate in various environments.
To choose your backup power source,you need to properly size your system.While sizing your system,you need to add 10-20 percent margin for system derating and prevention of false tripping of its circuit breaker.Note, since many appliances have surge current exceeding their steady state current, you need to make sure your backup system has sufficient surge capacity to accommodate all the loads at start up. This is especially important for automatic home generators. If you choose a manually activated system, you can always turn off your loads before starting the backup source and then turn them back on sequentially.Home Battery Backup is suitable only for short term outages. A battery needs a source of electricity to recharge. 
Derating is a technique usually employed in electrical power and electronic devices,wherein the devices are operated at less than their maximum rated power dissipation,taking into account the case/body temperature, the ambient temperature and the type of cooling mechanism used.
Derating increases the margin of safety between part design limits and applied stresses, thereby providing extra protection for the part. By applying derating in an electrical or electronic component, its degradation rate is reduced. The reliability and life expectancy are improved.Intuitively, if a component or system is operated under its design limit, it will be more reliable than if it is operated at or above the design limit.
The salient features of UPS & Battery based Backup Power Source are :
  • Lowest cost as compared with other home power backup sources.
  • Easy to use.
  • Not much professional skill is required for installation.
  • Emergency Power is supplied only to the devices that are plugged into the UPS.
  • Powers critical appliances via extension cords. May be permanently connected to the house wiring via a transfer switch
  • Typical power for residential use: 5-10 kW
  • Auto start systems have response time 16-36 ms
  • No maintenance required
  • Quiet
  • May be installed indoor
  • Low power consumption at no load (consumes power according to the actual load demand)
  • Limited run time (typically 2 to 12 hours) depending on the battery tank capacity
  • Look for a sealed deep cycle battery and a temperature compensated charger with a trickle mode to avoid battery overheating
The generic standard for UPS Backup Power Supply Systems is IEC 62040 Series.UPS is also sometimes marketed as Home Battery Backup System.Technically speaking to make a Power Supply Uninterruptible,you need an energy storage backup battery,an AC-DC Charger,a DC-AC Inverter. There.There are three main types of UPS:
  • Standby or Offline UPS
  • Line - Interactive UPS
  • Online UPS
A brief description these three types of UPS is given below.

Standby UPS (SPS) : It includes a transfer relay.It switches the load to primary battery-powered Inverter when AC is out of range.Typical load transfer time ranges from 2ms to 10ms depending upon the amount of time it takes to detect the lost utility power and turn on the inverter.This leads to momentary disruption in current supply to the load which accounts for the time taken to switch to the battery-powered inverter.That is why in purely technical terms quoting it as uninterruptible is misleading.Today PC includes internal Switching Mode Power Supply Unit (SMS PSU) which supplies certain hold up time or ride through time.Typically SMS PSU of a PC should provide hold up time of at least 16ms at rated load.This hold up time corresponds to one cycle of 60Hz AC input (1/60 = 16.667 x 10^-3).This hold up time is greater than transfer time of  UPS so PC is usually remains powered up continuously while transition from mains to UPS.
Standby UPS Inverter operates in standby mode and starts up only when main power source fails so it has highest efficiency (95-98%) and it is very reliable.Above all it is cheapest of all other backup power sources.That's why it is in high demand as a short term backup power source in event of main power outage.
Line Interactive UPS (SPS) : It  allows for a faster response to failure than Standby UPS.It is fitted with circuitry to filter out noise and spikes and provides a smooth and regulated AC output voltage by means of a filtering circuitry and tap-changing transformer.In this UPS topology a bi-directional inverter/charger is always connected to the output and utilizes a portion of the AC power to keep the battery fully charged.In event of utility input AC failure the transfer switch disconnects the AC input from utility and the load is fed from the bettery/inverter.The key advantage of this UPS Topology is that the inverter/converter unit is always connected to the output.Its typical efficiency ranges from 90 to 96%.It is the most common design in range from 0.5 to 5KVA as backup power source for Servers and Networks.
Online UPS (SPS) : It includes a transfer relay.It switches the load to primary battery-powered 

Standard 220 volt electric power is a pure sine wave, this is what comes out of your normal wall socket and what all electric devices are designed to work optimally with.A sine wave  AC Voltage passes through Zero Volts twice per cycle.Not clearly noticeable to a naked human eye,a simple incandescent light bulb connected to utility mains actually flickers 100 to 120 times (for 50 or 60Hz AC) as the AC Voltage crosses zero to change polarity.

Sunday, March 22, 2015

Brushed DC Motor Speed & Direction Control Using H-Bridge Circuit & PWM

An H-Bridge is a circuit that you can use to control the direction and speed of a Brushed DC Motor.The H-Bridge that is being discussed in this blog post can work with input voltage between 6-15V  for 2A current load. 30W power is enough for small to medium size motors.Though it is not the most efficient H-bridge but it is good for a simple motor control circuits.

Sunday, March 15, 2015

What is an FSM?

A state machine, which is more precisely defined as a finite state machine,
consists of a set of states and a transition function that maps to the next state.
Finite state machines have many variations. The two most common finite
state machines are the Mealy machine and the Moore machine. A Mealy
machine performs an action for each transition. A Moore machine performs
a specific action for each state in the state transition diagram. The state
machine design pattern template in LabVIEW implements any algorithm

Use state machines in applications where distinguishable states exist. Each
state can lead to one or multiple states or end the process flow. A state
machine relies on user input or in-state calculation to determine which state
to go to next. Many applications require an initialization state, followed by
a default state, where many different actions can be performed. The actions
performed can depend on previous and current inputs and states. A
shutdown state is commonly used to perform clean up actions.

described by a Moore machine.
An FSM is a digital sequential circuit that can follow a number of predefined states under the
control of one or more inputs.Note that some FSMs have a clock input and are called synchronous FSMs, i.e. those that do not belong to a type of FSM called asynchronous FSMs.A synchronous FSM can move between states only if a clock pulse occurs.Block diagram of an FSM based application is shown in the Figure 1 below :
Figure 1 : Block diagram of an FSM-based application.
Each state of the FSM needs to be identifiable. This is achieved by using a number of
internal (to the FSM block) flip-flops. An FSM with four states would require two flip-flops,
since two flip-flops can store 22 ¼ 4 state numbers.Each state has a unique state number, and states are usually assigned numbers as s0 (state 0), s1, s2, and s3 (for the four-state example). The rule here is
Number of states ¼ 2Number of flip flops;
for which
Number of flip flops ¼ log10
ðNumber of statesÞ
log10
ð2Þ :
So anFSMwith 13 states would require 24 flip-flops (i.e. 16 states, of which 13 are used in the
FSM); that is:
Number of flip flops ¼ log10
ð13Þ
log10
ð2Þ
¼ 3:7:
This must be rounded up to the nearest integer, i.e. 4.

As well as containing flip-flops to define the individual states of theFSMuniquely, there is
also combinational logic that defines the outside-world outputs. In addition, the outsideworld

inputs connect to combinational logic to supply the flip-flops inputs.

Thursday, March 5, 2015

Labview Program to Plot numerical data written to and Read from a Text File

This is a simple Labview Program to write numerical data,that may come from any sensor or instrument interfaced with PC,to a text file and then read that data to plot that data on a waveform chart.In this code,to simulate the generation of numerical data a random number generator function has been used which writes data to text file and upon reading that written data plots that data on a waveform chart.Labview 2012 has been used for development of this Labview code.There are two tabs on the front panel one writing data to text file and the other one is for reading data from text file.
The screenshots of the Front Panel are shown in Figure 1 & Figure 2 below:
Figure 1

Sunday, March 1, 2015

Proteus VSM Simulation for Reading Active High Push Button Input for PIC18F4520

This is a simple Proteus VSM Simulation for reading Active High Push Button Inputs for PIC18F4520 8-bit Microcontrller.Screengabs of this simulation Circuit drawn in Proteus VSM both when simulation is not running and when simulation is running are shown in Figures 1 & 2 respectively.The C code for this simulation has been written in CCS for PICC Compiler.The download link for this complete Project including C Code is given below.
Figure 1

Saturday, July 19, 2014

Producer Consumer Model - Data-based Example


Some Useful Information on Fuses used in Vehicles

Fuses or fusible links are provided in vehicles to avoid fire hazard in event of short circuiting in electrical system of your vehicle.Here are some useful tips on fuses or fusible links in vehicle:
  1. You can check for a burnt fusible link with help of a multimeter or using a custom-build continuity tester.Alternatively a fuse can also be checked for it health by careful visual inspection.
  2. If a fusible link burns out, there is a short or some other problem in the circuit. Carefully determine the cause and correct it before replacing the fusible link.
  3. The fusible link will burn out within 15 seconds if a higher than specified current flows through the circuit.