Blogger news

Tuesday, 1 July 2014

Electronic Bicycle Lock


In the general lock that we use in our day to day life isn’t capable to alarm us when a thief tries to damage the lock and takes away the instrument. The electronic bicycle lock described here is a worthwhile alternative for bicycle owners who want to make their bicycles ‘intelligent’ at reasonable cost. One of the benefits of building it my-self is that the circuit can be used for virtually any make of bicycles.  I think it will be help full for you...



Required instrument:
                                i.            Resister (1kΩ, 2.2kΩ, 270kΩ, 470kΩ)
                              ii.            Capacitor (100uF, 470uF)
                            iii.            Zener Diode (3.1V- 0.5W)
                            iv.            Battery (9V)
                              v.            standard RCA sockets ×2
                            vi.            PCB
                          vii.            tone generator UM3561
                        viii.            Led
                            ix.            Speaker (8Ω-0.5W)
                              x.            Key lock switch


 Circuit diagram:



Friday, 27 June 2014

Microcontroller code for dot matrix

ORG 00H
MOV P3,#00000000B     
MOV P1,#00000000B
        
MAIN: MOV P3,#00000000B
      MOV P1,#11111110B
        LCALL DELAY
      MOV P3,#11101111B
      MOV P1,#00000001B
         LCALL DELAY
      MOV P3,#11110111B
      MOV P1,#11111011B
         LCALL DELAY
      MOV P3,#11111011B
      MOV P1,#11110111B
         LCALL DELAY
      MOV P3,#11111101B
      MOV P1,#11101111B
         LCALL DELAY
      MOV P3,#11111110B
      MOV P1,#11011111B
         LCALL DELAY
      MOV P3,#11111001B
      MOV P1,#11011111B
         LCALL DELAY
      MOV P3,#11110111B
      MOV P1,#10111111B
        LCALL DELAY
      MOV P3,#11011111B
      MOV P1,#11111101B
        LCALL DELAY
      MOV P3,#10111111B
      MOV P1,#11110011B
     LCALL DELAY
      MOV P3,#11011111B
      MOV P1,#11101111B
      LCALL DELAY
      SJMP MAIN   
  
    
DELAY: MOV R6,#200d    
HERE: DJNZ R6,HERE

;               ACALL DE1
;               DE1: MOV R2,#2d    
;               HERE1: DJNZ R2,HERE1
      RET
END

Thursday, 26 June 2014

FM and AM modulation using MATLAB code

clc
close all;
clear all;
t=0:0.0001:1;
fm=input('enter the msg frequency');
am=input('enter the msg amplitude');
fc=input('enter carrier signal frequency');
ac=input('enter amplitude of carrier signal');
m=am*cos(2*pi*fm*t);
c=cos(2*pi*fc*t);
x=m.*c;
mod=x+(ac.*c);




%plot
subplot(4,1,1),plot(t,m);
xlabel('time');
ylabel('amplitude');
legend('Message signal m(t)');
title('message');


subplot(4,1,2),plot(t,c);
xlabel('time');
ylabel('amplitude');
legend('Carrier signal c(t)');
title('carrier');

subplot(4,1,3),plot(t,mod);
xlabel('time');
ylabel('amplitude');
legend('Amplitude modulated signal s(t)');
title('mod');


%fm signal

b=(fc-fm)/fm;

modfm=ac.*cos(2*pi*fc.*t + b*sin(2*pi*fm.*t));
subplot(4,1,4)
plot(t,modfm);
xlabel('time---(sec)');
ylabel('amp');
legend('Frequency modulated signal s(t)');
title('FM signal')


%Input and Output:

%enter the msg frequency10
%enter the msg amplitude5
%enter carrier signal frequency100
%enter amplitude of carrier signal5

Wednesday, 25 June 2014

Wave genaretor using MATLAB code

function wave_generator_multiplier=wave_mul(b,g)
cc=length(b);
t=1:1:cc*cc*g;
y=0;
s=1;
z=0
for p=1:g
    for i=1:cc
        for j=1:cc
             as=b(1,i);
             if(as==1)
                     c(1,z+y+j)=1;
             else
                 c(1,z+y+j)=0;
             end
        end
        y=i*cc;
    end
    z=p*cc*cc-cc;
end
plot(t,c);