8224;箩ƒ 臻2 #339;
Total Page:16
File Type:pdf, Size:1020Kb
ROLLING CODE KEYLESS ENTRY SYSTEM ᗂ Up to 16 keyfob transmitters ᗂ Two door-strike outputs ᗂ High security ᗂ Alarm system RECYCLE IT A low-cost large-display anemometer from recycled parts FAST CHARGER FOR NiMH BATTERIES A versatile, safe charger to suit any size cells PLUS $8.75 US $10.25 CAN BREADBOARDING PROJECTS AUGUST 2009 PRINTED IN THE UK Festive Lights Copyright Ó 2008, Wimborne Publishing Ltd (Sequoia House, 398a Ringwood Road, Ferndown, Dorset BH22 9AU, UK) and TechBites Interactive Inc., (PO Box 857, Madison, Alabama 35758, USA) All rights reserved. WARNING! The materials and works contained within EPE Online — which are made available by Wimborne Publishing Ltd and TechBites Interactive Inc — are copyrighted. You are permitted to make a backup copy of the downloaded file and one (1) hard copy of such materials and works for your personal use. International copyright laws, however, prohibit any further copying or reproduction of such materials and works, or any republication of any kind. TechBites Interactive Inc and Wimborne Publishing Ltd have used their best efforts in preparing these materials and works. However, TechBites Interactive Inc and Wimborne Publishing Ltd make no warranties of any kind, expressed or implied, with regard to the documentation or data contained herein, and specifically disclaim, without limitation, any implied warranties of merchantability and fitness for a particular purpose. Because of possible variances in the quality and condition of materials and workmanship used by readers, EPE Online, its publishers and agents disclaim any responsibility for the safe and proper functioning of reader-constructed projects based on or from information published in these materials and works. In no event shall TechBites Interactive Inc or Wimborne Publishing Ltd be responsible or liable for any loss of profit or any other commercial damages, including but not limited to special, incidental, consequential, or any other damages in connection with or arising out of furnishing, performance, or use of these materials and works. ISSN 0262 3617 PROJECTS THEORY NEWS COMMENT POPULAR FEATURES INCORPORATING ELECTRONICS TODAY INTERNATIONAL VOL. 38. No 8 August 2009 www.epemag.com Projects and Circuits ROLLING CODE KEYLESS ENTRY SYSTEM – PART 1 by John Clarke 10 Rolling code makes it super secure. Can respond to up to 16 keyfob transmitters SIMPLE DATA-LOGGING WEATHER STATION – PART 2 by Glenn Pure 24 Records rainfall and temperature, and operates completely unattended FAST CHARGER FOR NiMH BATTERIES by John Clarke 36 Can charge up to 15 identical NiMH or NiCad cells BREADBOARDING PROJECTS by Dr Malcolm Plant 56 Part 11 – Festive Lights INGENUITY UNLIMITED 62 Optical Motion Detector Series and Features TECHNO TALK by Mark Nelson 22 Diatomic power RECYCLE IT by Julian Edgar 48 A low-cost large-display anemometer INTERFACE by Robert Penfold 60 Calculated connection CIRCUIT SURGERY by Ian Bell 64 Filter circuits – Part 2 PIC N’ MIX by Mike Hibbett 68 PIC RS232 terminal NET WORK by Alan Winstanley 74 The more things change; A plateful of spam Regulars and Services EDITORIAL 7 NEWS – Barry Fox highlights technology’s leading edge 8 Plus everyday news from the world of electronics ELECTRONICS TEACH-IN 2 23 New book with Free CD-ROM – Using PIC Microcontrollers BACK ISSUES Did you miss these? 34 PIC PROJECTS CD-ROM 46 A plethora of handPICed projects PIC RESOURCES CD-ROM 47 EPE PIC Tutorial V2, plus PIC Toolkit Mk3 and a selection of PIC-related articles SUBSCRIBE TO EPE and save money 55 ELECTRONICS MANUALS 59 The Modern Electronics Manual and Electronic Service Manual on CD-ROM CD-ROMS FOR ELECTRONICS 70 A wide range of CD-ROMs for hobbyists, students and engineers READOUT Matt Pulzer addresses general points arising 73 DIRECT BOOK SERVICE 75 A wide range of technical books available by mail order, plus more CD-ROMs © Wimborne Publishing Ltd 2009. Copyright in all EPE PCB SERVICE 78 drawings, photographs and articles published in EVERYDAY PRACTICAL ELECTRONICS is fully ADVERTISERS INDEX 80 protected, and reproduction or imitations in whole or in part are expressly forbidden. Our September 2009 issue will be published on S# Thursday 13 August 2009, see page 80 for details. Everyday Practical Electronics, August 2009 1 $$0 0 "0;/69:0&600 % %% % 0<0%!0 0 "'0%%0,520%0 $ 050"'0%$%0 (0%0 $ 05 0-".050 00+$0 ,%-(&.&%.&&%.$(% 4 0$ 00 0 0"'0% 0-)001;.0 ,%-&-*0%0-!%"*$% %) 70+ 0% 0%$$0)%0 8 *0%60%! 0 8 =0 %%*$ 00%%0$ 600 ),%# +% $ % 0 00$ 0 0#00$$0 %$00 0/990 $ 0!30 ,%+ +% 30)$ 0%0 *$%6000*$!0% 600 ; " 4(++ 4( 44 0: 4!4! ' 4 '(4& ; ! +; ;&; -11; -,,; #; ;#1A 2;# ;-;%; 3;-';-;+ ;-; ;, +; ;&;- ; 2 - ;# ;-;+ ; -; ; L;&O; ; 1;-+; %; -11C; 1,;-;- ; ;;+ , ;- ;A #1- ;-'- ,-2,; 1; #;+2; C; 1 ,,C;# ; ; -,; C;3 +; -;#, C;; 1 ,;#; E ;-; / ; ; D;/@G=9/%;A;5.;<;24 ;;6;,-;-; A 0@: 4- 4"4$ 4/"0@-145A0<;24 4 C;);-2,;!# ;-+ >; A A9) 4& 4 '4/%AD@145A;<;24 " 4(++ 4B4* + 4( 44 %-1>; ; ;+>;# ;"-A#;- ; ( =4(('' '4/ A.3145.<;24>4 ('4 %;&; -11;I; ( #C;&,# ;,- ;-C;H4G;0;HHG;0; 4G11C; +D;HJ. C; / 00A145.<;24>4%4/ 300145D<;24 0 1; - ;+ ; / ; ; D;4H6G/%;A;560<;24 ;2# ;- ;; A 12, ; ; D;!4H6G;A;59;<;24 -84%4B4 ('44" 4(++ 4 - ; ;-; #; #-A 4 )!E! -,; C; -,;0 1>;#;-; 9: 4 ('44"'( 4">4 '(4 ' 4 "- ;-2,; ;&!C; ;#, ; -11 ;0-1,C;&A ;3 +;; A ,# ;-;H99J=;,-; ,,;-; 1#; ,, ;@; -,;,-;2 - C;8; +-C;!;+2 ; ;&; -;2; -11 ;#; ;HGGG; 1; ; # C;&;! (;- ; 0 1 ;-;+ ,,C;! +-; ; 1 ,; 1- ;- ;,-; ##; )!;,- ;0-C;H@. C; - ; -1; #; #; ; ; ,# C;; - ;6; A ,- ; -,; / ; ; D;4H6B/%;A;50;<;24 / ; ; D;/@G6@/%;A;5.;<;24 #;5 ;1 ; 12, ; ; D;!4H6B;A;52;<;24 12, ; ; D;.HHH;A;52;<;24 + ;->;7C;)#,; 4 4 ;-;'- ; ; ,;- ; -84%4C'':'(C4" 4(++ 4 ;-, - C; -11 ;' -; -,; )!;&; -11; ;-,,; ! ;5#; #;+;3 +; ->;1 A -,;1#,- ; ;2-; ,7C;! -,;-2,;-; F,-K; ' C; ;0-,; +;#,;1-( ; ;#,; ";-;$#;-;+; ;; ,,;- ; 2;#; ;481;, C;&,# ;,- ;-; -2,C;!#, ;+ ;2 0;- ; --;-# ;- ; ,;# ;+;-'C; H4G0HGG04G11C; +D;HJ. E8GG1C; 3 +;;! +-C;&; !;+2 ; ;#,,; - ,C;HJ. ;!); ; / ; ; D;4HG@/%;A;530<;24 ! (;- ;)!;,- ; ; ,C4 -,,;# D; ; ;!)668;<=CB8; 12, ; ; D;!4HG@;A;56;<;24 12, ; ; D;!4HJ@;A;50;<;24 4 12, ;+ ;&; (; ; D; "( 4 4ADF ( '4 '(4( 44 !4HJ@&;A;530<;24 %4* + 4" ( 4( 44 ,;HJ; 2 - ;,-;+ ; 4 8; -,; #;-A ,# ; - ;1 ; A ?" E4"4" 4(++ 4 ,;- ;@; -,; #A ,;# C;% ,; ;1 1-C; 3 ,,; -1;' #-,,;-,,;@; #;-,;,#;+ ; H81:;-C;HHJ;0;HJJ11C; ;6G; ; ; ; --, #; #;- ; !#,D;HJ. EGC8; 5&H8; + ;--, #; ##; / ; ; D;4H6J/%;A;52;<;24 -1 ,7;&;1 ,A + ;@;2 ; ,# C;;; 12, ; ; D;!4H6J;A;53;<;2; ,C;;3 +; A / ; ; D;/@G88/%;A;5.9<;24 4 +-C;,-(; ;-# ; ; ;#;-; 12, ; ; D;.HHG;A;530<;24 4!4 4( 4 '( 2#,(; -11 C; -,;&; (C; 4 ;%; ; 1; 12, ; ; D;!4HH=;A;5D;<;24 ''4 40: ( '4%4 + 4 -; >; '>; 12, ;+ ;&; (; ; D; !-A AAC;" ;# C; + A+-;- >;;# ; !4HH=&;A;500<;24 6;-,C; 1-; ; ;2# ,A ;1 ; ; ; 4 ,- ;,-; ##C;-; 1;; ;, C;-A !49;****4(++ 4 #; ;6G1C;); ;H8;%0K;-; -;-; ,- ; ;-; ); -,; ;- ;-; 2;,-;2; ;0;5( ; A H9;--; ,-;-;;-; ' ;- ; - - ;1 -,; 11; ,# ; ;%0;2#;1 ;-'- ,A #; ;4J;#12;-;2; ,- ;2; ,,A -1C;6;K; ,-; -2,;--,7C;6; - ;;KC;0D;; ;; ,-C;,,; --;+ ; ;;; ; ;-#C;&; (; ; ==0@811>;HJ. E91;5- 27C;%+ -, ;; ;-; -,; ##; ; ; ;-; ,# C;!#,D;H9. C; ; 1#C;!#,D;BAHJ.;;5 ; ; / ; ; D;4HJ4/%;A;5D6<;24 / ; ; D;4H@G/%;A;50;<;244 !)6687C;- ;D;880B811C; 12, ; ; D;!4HJ4;A;5.6<;24 12, ; ; D;!4H@G;A;52;<;24 / ; ; D;4H84/%;A;5.0<;24 4 12, ; ; D;!4H84;A;500<;24 " 44" 4(++4 + 4! + ( 4((4 4 4 ; 1; 1,;2 ; ! -,; ;6A-,;1A ! ' 4 (''4 4 ;2# ;-;&;- ;+ ; -#;, C;M; ;MC; # #,;, ;#; ;6; ! ; ';J>8GG;0;HH; ; ; ; 1?;&,# ;6B; ;%;#12;+ ; -;A2A;; --; ;, - ; JGG1:; 1;2 - C;3 ; 1;- ; -C; ;-,,; %# -,;-#-,>; -1A 2# ; ; # ;-; 1 ;"- +-;5+ ;; -; ;; +-;-, - ; ; A E# ; --C;;$#;6806811C; + ; -,,C; ; ; ;-; A ; 7>;3 ;4CHHN; -11 ; ; ; 1#; # ; - ;2#; ! +-;5 -1>;- >;. ;I;-7>; 2;C;&,# ; ;!H@JG; C; / ; ; D;4H68/%;A;5A;<;24 , ; --;-;2; +, - ; ;-;;' -; - ;H+ -2,;&H9@6;-; #;-;#; -; -,; ;- ;-' ; ; (C;&,# ;-; + ; ; ;56; - , ;0-1,; A 12, ; ; D;!4H68;A;5D3<;24 -,;!H@JG;! ;A;5.<;24 ( ,- ;-;H4G0HGG04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