Saturday, May 29, 2021

TWO ELEMENT ARRAY

 Introduction 

In general, antenna array is the radiating system in which several antennas are spaced properly so as to get greater field strength at a far distance from the radiating system by combining radiations at point from all the antennas in the system. The individual element is generally called element of an antenna array.As the antennas may be used in various configurations such as straight line, circle, rectangle etc..

Various Types of Antenna Arrays

1. Broadside Array 
2. End fire Array
3. Collinear Array
4. Parasitic Array

Broadside Array

          The broadside array is the array of antennas in which all the elements are placed parallel to each other and the direction of maximum radiation is always perpendicular to the plane consisting elements.
A typical arrangement of a Broadside array is as shown in the Figure.


A broadside array consist number of identical antennas placed parallel to each other along a straight line. This straight line is perpendicular to the axis of individual antenna. It is known as axis of antenna array. Thus each element is perpendicular to the axis of antenna array. All the individual antennas are spaced equally along the axis of the antenna array. The spacing between any two elements is denoted by‗d‘. All the elements are fed with currents with equal magnitude and same phase. As the maximum point sources with equal amplitude and phase radiation is directed in broadside direction i.e. perpendicular to the line of axis of array, the radiation pattern for the broadside array is bidirectional.

End Fire Array

 The end fire array is very much similar to the broadside array from the point of view of arrangement. But the main difference is in the direction of maximum radiation. 



Collinear Array


As the name indicates, in the collinear array, the antennas are arranged co-axially i.e. the antennas are arranged end to end along a single line as shown in the Fig. 4.2.4 (a) and (b)


Two Point Sources with Currents Equal in Magnitude and Phase

Consider two point sources Al and A2 separated by distance d as shown in the Figure of two element array. Consider that both the point sources are supplied with currents equal in magnitude 
and phase.
Consider point P far away from the array. Let the distance between point P and point sources Al
and A2 be r1 and r2 respectively. As these radial distances are extremely large as compared with 
the distance of separation between two point sources i.e. d, we can assume,The radiation from the point source A2 will reach earlier at point P than that from 
point source Al because of the path difference. The extra distance is travelled by the radiated wave from point source Al than that by the wave radiated from point 
source A2.
Hence path difference is given by,



From the optics the phase angle is 2π times the path difference. Hence the phase angle is given 
by 
Phase angle = ψ =2π (Path difference)

Above equation represents total field intensity at point P, due to two point 
sources having currents of same amplitude and phase. The total amplitude of the 
field at point P is 2E0 while the phase shift is βdcos@/2.

The array factor is the ratio of the magnitude of the resultant field to the magnitude of the maximum field.


The array factor represents the relative value of the field as a function of ϕ. It defines the radiation 
pattern in a plane containing the line of the array.


Dipoles with Parasitic Elements


Let I1 be current in the driven element D. Similarly 12 be the current induced in the parasitic 
element P. The relation between voltages and currents can be written on the basis of circuit 
theory as,
V1 = Z11 I1 + Z12 I2
0 = Z21 I1 + Z22 I2

 that as parasitic element P is not excited, the applied voltage V2 is written zero. V1 is 
the applied voltage to the driven element D. The impedances Z11 and are the self-impedances 
of the driven element D and the parasitic element P. The impedances Z12 and Z21 is the 
mutual impedance between the two elements such that,
Z12 = Z21 =ZM

Array in free space with one parasitic element and one driven λ/2 dipole element.

The current 
The resistance is given by

The gain in field intensity as a function of θ is

When the λ/2 parasitic element is larger than its resonant length, it is inductive in nature. 
Then such parasitic element acts as reflector.
Similarly when the λ/2 parasitic element is shorter than its resonant length, it is capacitive in 
nature. Then such parasitic element acts as director.

Sunday, January 31, 2021

Design Stopwatch Using 8051 Microcontroller (AT89C51)

 Introduction

In the current digital age, microcontrollers have become an indispensible technological tool.Microcontrollers are single chip computers that are embedded into other systems, which can perform multiple complicated operations at the same time. In addition, microcontrollers have high integration of functionality, field programmability and are very easy to use. These features have helped microcontrollers to find a wide spectrum of applications, in the field of automobiles, video games, manufacturing industries and many others. Among all the microcontrollers in use today, the 8051 and its variations are considered the most popular.

A stopwatch is a timepiece that measures the amount of time between any two occurrences. Usually, at the first occurrence, the stopwatch is started while at the second it is stopped. To use it again, a reset option is also provided with the stopwatch. The total time elapsed can thus be obtained. A stopwatch is very commonly used in racing competitions and other gaming activities. The circuit given here is a digital stopwatch that displays time on four seven segment displays using 8051 microcontroller (AT89C51) .



COMPONENT LIST

  1. AT89C51 Microcontroller
  2. Piezo buzzer 
  3. Seven segment display
  4. Transistor (BC547)

CIRCUIT DIAGRAM


WORKING

The stopwatch keeps the track of time the same way as a simple digital clock does. It is basically an up time counter that starts from 00:00. The control options are provided by means of tactile switches which are active low. This circuit uses three such switches for following operations:

Switch 1 (S1) : Start               

Switch 2 (S2) : Stop                

Switch 3 (S3) : Reset              

 

Initially when Vcc supply is provided to the circuit, the stopwatch goes in reset mode with 00:00 display state on seven segments. The stopwatch starts running when S1 is pressed. The time is displayed on four seven segments (in common anode configuration) by using the concept of multiplexing. (Also refer Digital Clock) On pressing S2, the stopwatch stops and displays the total time elapsed since the start. It can be taken to reset mode at any instant by using S3.

The seven segments are interfaced to port P2 of the microcontroller AT89C51 through its data pins (a – h). The enable pins are connected to pins 1-4 of port P1 (P1^0 – P1^3). The switches S1-S3 are connected to pins 5-7 of port P1 (P1^4 – P1^6).


# SOURCE CODE #


###



//Program to make a stopwatch


#include<reg51.h>

#define msec 1

unsigned int sec1,sec2;

int sec1_1,sec1_2,sec2_1,sec2_2;


unsigned int digi_val[10]={0x40,0xF9,0x24,0x30,0x19,0x12,0x02,0xF8,0x00,0x10};

sbit dig_ctrl_1=P1^0; // Declare the control pins of seven segments

sbit dig_ctrl_2=P1^1;

sbit dig_ctrl_3=P1^2;

sbit dig_ctrl_4=P1^3;

sbit start_pin = P1^4; // Start pin to start the watch.

sbit stop_pin = P1^5; // Stop pin to stop the watch.

sbit reset_pin = P1^6; // Reset pin to reset the watch.

int s,t;


void mplex_delay(unsigned int time) // Function to provide a time delay of approximatelty one second using Timer 1

{

int i,j;

for (i=0;i<=time;i++)

  for(j=0;j<=50;j++);

}


void digi_out(unsigned int current_num)

{

    P2=digi_val[current_num];

     mplex_delay(msec);

}


void display(unsigned int dig1,unsigned int dig2) // Function to display the digits on seven segmnet. For more details refer seven segment multiplexing.

{

    sec1_2=dig1%10;

sec1_1=dig1/10;

sec2_2=dig2%10;

sec2_1=dig2/10;

TMOD=0x01; //Enable Timer 0

TL0=0xFF;

TH0=0xDB;

TR0=1; // Triger Timer 0

while(TF0==0)

{

  dig_ctrl_1 = 1;

  dig_ctrl_2 = dig_ctrl_3 = dig_ctrl_4 = 0;

  digi_out(sec1_1);

  dig_ctrl_2 = 1;

  dig_ctrl_1 = dig_ctrl_3 = dig_ctrl_4 = 0;

  digi_out(sec1_2);

  dig_ctrl_3 = 1;

  dig_ctrl_2 = dig_ctrl_1 = dig_ctrl_4 = 0;

  digi_out(sec2_1);

  dig_ctrl_4 = 1;

  dig_ctrl_2 = dig_ctrl_3 = dig_ctrl_1 = 0;

  digi_out(sec2_2);

}


TR0=0;

TF0=0;

}


void main()

{

while(1)

{

start: // Segment to start the stop watch

  start_pin = 1;

  stop_pin = 1;

  reset_pin = 1; 

  dig_ctrl_1 = 0;

  dig_ctrl_2 = 0;

  dig_ctrl_3 = 0;

  dig_ctrl_4 = 0;

  P2 = 0xFF;

  s = t = 0;

  while(start_pin == 1)// Check if start pin is pressed

  {

  display(0,0);

  }


stopwatch: // Segment to stop the watch

  for (sec1=s;sec1<=99;sec1++)

  {

   if (stop_pin == 0 ) //Check if stop pin is pressed

   break;

    for (sec2=t;sec2<=99; sec2++)

    {

    if (stop_pin == 0 ) //Check if stop pin is pressed

    break;

    t=0;

    display(sec1,sec2);

    }

  }

  stop_pin = 1;

  s = sec1;

  t = sec2;

 

  while ( start_pin != 0 && reset_pin != 0 ) //Check if start pin or reset pins are not pressed

  {

  display(sec1,sec2);

  }

 

  if (start_pin == 0) //Check if start pin is pressed

  {

  goto stopwatch;

  }

  else

  {

   if (reset_pin == 0 ) //Check if reset pin is pressed

   {

   s = t = 0;

   goto start;

   }

  }

}

}


###

SIMULATION





APPLICATION OF STOPWATCH

  1. Stopwatch is highly accurate since it gives a wide rage of measurements.
  2.  For example the milliseconds as compared to normal clocks which measures up to second only. 
  3. Thiss circuit can be used as indicator at quiz competition.




TWO ELEMENT ARRAY

  Introduction   In general, antenna array is the radiating system in which several antennas are spaced properly so a s to get greater field...