Monday, March 9, 2015

Code lock system

Code lock system:Simple project
 
 
When you make on the buttons 1,3and 6 the lock will open the relay will be driven and you can drive your load whichever is connected to the relay circuit.
Its implemented and tested in PROTEUS simulation software.
Have a fun with this simple lock system.

Friday, November 28, 2014

AM generation using MATLAB!!!

                                AM generation code for MATLAB!

%AM generation
t=0:0.001:1;
m=input('Enter modulation Index');
ms=5*sin(2*pi*5*t); %Message signal
cs=5*sin(2*pi*50*t); %Carrier signal
Am=(5+m*ms).*sin(2*pi*100*t);%AM signal
subplot(3,1,1);
plot(t,ms);
xlabel('Time');
ylabel('Amplitude');
title('Message signal');
subplot(3,1,2);
plot(t,cs);
xlabel('Time');
ylabel('Amplitude');
title('Carrier signal');
subplot(3,1,3);
plot(t,Am);
xlabel('Time');
ylabel('Amplitude');
title('AM signal');

Output:
Enter modulation Index 1


Generation of FM using MATLAB!!!

FM generation code for MATLAB!

%FM generation
t=0:0.001:1;
m=input('Enter modulation Index');
ms=5*sin(2*pi*5*t); %Message signal
cs=5*sin(2*pi*100*t); %Carrier signal
Fm=10*sin(2*pi*50*t+(m.*sin(2*pi*5*t)));%FM signal
subplot(3,1,1);
plot(t,ms);
xlabel('Time');
ylabel('Amplitude');
title('Message signal');
subplot(3,1,2);
plot(t,cs);
xlabel('Time');
ylabel('Amplitude');
title('Carrier signal');
subplot(3,1,3);
plot(t,Fm);
xlabel('Time');
ylabel('Amplitude');
title('FM signal');

Output:Enter modulation Index 5








Wednesday, November 26, 2014

Generation of ASK using MATLAB!!!

Code for generation of ASK using MATLAB!

x=input('input binary message sequence');
N=length(x);
t=0.001:0.001:N;
for i=1:1:N;
   m((i-1)*1000+1:i*1000)=x(i);
end
c1=2*sin(2*pi*5*t);
 y=m.*c1;
 subplot(3,1,1);
 plot(t,m);
 xlabel('Time');
 ylabel('Amplitude');
 Title('Bit sequence');
 subplot(3,1,2);
 plot(t,c1);
 xlabel('Time');
 ylabel('Amplitude');
 Title('Carrier');
 subplot(3,1,3);
 plot(t,y);
 xlabel('Time');
 ylabel('Amplitude');
 Title('ASK signal');

Output:[1 1 0 1 0 1 1 0 ]



        

Generation of PSK using MATLAB!!!

Code for generating PSK signal using MATLAB!!!

x=input('input binary message sequence');
N=length(x);
x(x==0)=-1;
t=0.001:0.001:N;
for i=1:1:N;
   m((i-1)*1000+1:i*1000)=x(i);
end
c1=2*sin(2*pi*5*t);
 y=m.*c1;
 subplot(3,1,1);
 plot(t,m);
 xlabel('Time');
 ylabel('Amplitude');
 Title('Bit sequence');
 subplot(3,1,2);
 plot(t,c1);
 xlabel('Time');
 ylabel('Amplitude');
 Title('Carrier');
 subplot(3,1,3);
 plot(t,y);
 xlabel('Time');
 ylabel('Amplitude');
 Title('PSK signal');
Output:Input sequence [1 1 0 1 0 1 1 0]


         

Generation of FSK signal using MATLAB!!!

Code for generating FSK signal using MATLAB!

x=input('input binary message sequence');
N=length(x);
t=0.001:0.001:N;
for i=1:1:N;
   m((i-1)*1000+1:i*1000)=x(i);
end
f1=10;
f2=5;
c1=2*sin(2*pi*f1*t);
 y1=m.*c1;
 for j=1:N
     if x(j)==1
         x(j)=0;
     else
         x(j)=1;
     end
     m1((j-1)*1000+1:j*1000)=x(j);
 end
 c2=2*sin(2*pi*f2*t);
 y2=m1.*c2;
 y=y1+y2;
 subplot(3,1,1);
 plot(t,m);
 xlabel('Time');
 ylabel('Amplitude');
 Title('Bit sequence');
 subplot(3,1,2);
 plot(t,c1);
 xlabel('Time');
 ylabel('Amplitude');
 Title('Carrier');
 subplot(3,1,3);
 plot(t,y);
 xlabel('Time');
 ylabel('Amplitude');
 Title('Fsk signal');
Output:
 Input sequence [1 0 0 1 1 1 0]
       

Tuesday, November 25, 2014

Microprocessor 8085 programs...

The Microprocessor 8085 programs are available on the following sites with good explanation.
These programs will help you for cracking different competitions related to microprocessor.. 
1.8085projects.info/page/free-programs-for-8085-microprocessor.html
2.www.eazynotes.com/pages/microprocessor/8085-programs.html
3.www.technicalsymposium.com/microprocessor_lab.pdf 

Some useful parameters

Dielectric constant  Metals have infinite Dielectric constant  As usually metals permittivity is very large than of free space hence its Die...