ebook img

30 Arduino™ Projects for the Evil Genius - myp-tech PDF

208 Pages·2011·8.17 MB·English
by  
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview 30 Arduino™ Projects for the Evil Genius - myp-tech

30 Arduino™ Projects for the Evil Genius™ Evil Genius™ Series Bike, Scooter, and Chopper Projects for the Evil Genius Bionics for the Evil Genius: 25 Build-it-Yourself Projects Electronic Circuits for the Evil Genius, Second Edition: 64 Lessons with Projects Electronic Gadgets for the Evil Genius: 28 Build-it-Yourself Projects Electronic Sensors for the Evil Genius: 54 Electrifying Projects 50 Awesome Auto Projects for the Evil Genius 50 Green Projects for the Evil Genius 50 Model Rocket Projects for the Evil Genius 51 High-Tech Practical Jokes for the Evil Genius 46 Science Fair Projects for the Evil Genius Fuel Cell Projects for the Evil Genius Holography Projects for the Evil Genius Mechatronics for the Evil Genius: 25 Build-it-Yourself Projects Mind Performance Projects for the Evil Genius: 19 Brain-Bending Bio Hacks MORE Electronic Gadgets for the Evil Genius: 40 NEW Build-it-Yourself Projects 101 Spy Gadgets for the Evil Genius 101 Outer Space Projects for the Evil Genius 123 PIC® Microcontroller Experiments for the Evil Genius 123 Robotics Experiments for the Evil Genius 125 Physics Projects for the Evil Genius PC Mods for the Evil Genius: 25 Custom Builds to Turbocharge Your Computer PICAXE Microcontroller Projects for the Evil Genius Programming Video Games for the Evil Genius Recycling Projects for the Evil Genius Solar Energy Projects for the Evil Genius Telephone Projects for the Evil Genius 30 Arduino Projects for the Evil Genius 22 Radio and Receiver Projects for the Evil Genius 25 Home Automation Projects for the Evil Genius 30 Arduino™ Projects for the Evil Genius™ Simon Monk New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher. ISBN: 978-0-07-174134-7 MHID: 0-07-174134-8 The material in this eBook also appears in the print version of this title: ISBN: 978-0-07-174133-0, MHID: 0-07-174133-X. All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the benefi t of the trademark owner, with no intention of infringement of the trademark. Where such designa- tions appear in this book, they have been printed with initial caps. McGraw-Hill eBooks are available at special quantity discounts to use as premiums and sales promotions, or for use in corporate training programs. To contact a representative please e-mail us at [email protected]. Trademarks: McGraw-Hill, the McGraw-Hill Publishing logo, Evil Genius™, and related trade dress are trademarks or registered trademarks of The McGraw-Hill companies and/or its affi liates in the United States and other countries and may not be used without written permission. All other trade- marks are the property of their respective owners. The McGraw-Hill Companies is not associated with any product or vendor mentioned in this book. Information has been obtained by McGraw-Hill from sources believed to be reliable. However, because of the possibility of human or mechanical error by our sources, McGraw-Hill, or others, McGraw-Hill does not guarantee the accuracy, adequacy, or completeness of any information and is not responsible for any errors or omissions or the results obtained from the use of such information. TERMS OF USE This is a copyrighted work and The McGraw-Hill Companies, Inc. (“McGrawHill”) and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hill’s prior consent. You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right to use the work may be terminated if you fail to comply with these terms. THE WORK IS PROVIDED “AS IS.” McGRAW-HILL AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUDING ANY IN- FORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FIT- NESS FOR A PARTICULAR PURPOSE. McGraw-Hill and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free. Neither McGraw-Hill nor its licensors shall be liable to you or anyone else for any inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting therefrom. McGraw-Hill has no responsibility for the content of any information accessed through the work. Under no circumstances shall McGraw-Hill and/or its licensors be liable for any indirect, incidental, special, punitive, consequential or similar damages that result from the use of or inability to use the work, even if any of them has been advised of the possibility of such damages. This limitation of liability shall apply to any claim or cause whatsoever whether such claim or cause arises in contract, tort or otherwise. To my late father, Hugh Monk, from whom I inherited a love for electronics. He would have had so much fun with all this. About the Author Simon Monk has a bachelor’s degree in cybernetics and computer science and a doctorate in software engineering. He has been an active electronics hobbyist since his school days, and is an occasional author in hobby electronics magazines. Contents Acknowledgments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi 1 Quickstart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Powering Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Installing the Software. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Configuring Your Arduino Environment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Downloading the Project Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Project 1 Flashing LED. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Breadboard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2 A Tour of Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Microcontrollers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 What’s on an Arduino Board?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 The Arduino Family. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 The C Language. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3 LED Projects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Project 2 Morse Code S.O.S. Flasher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Loops. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Arrays. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Project 3 Morse Code Translator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Project 4 High-Brightness Morse Code Translator. . . . . . . . . . . . . . . . . . . . . . . . 35 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 4 More LED Projects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Digital Inputs and Outputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Project 5 Model Traffic Signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Project 6 Strobe Light . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Project 7 S.A.D. Light. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 Project 8 High-Powered Strobe Light. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 Random Number Generation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Project 9 LED Dice. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 5 Sensor Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Project 10 Keypad Security Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Rotary Encoders. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Project 11 Model Traffic Signal Using a Rotary Encoder . . . . . . . . . . . . . . . . . . 68 Sensing Light. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Project 12 Pulse Rate Monitor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 vii

Description:
Bike, Scooter, and Chopper Projects for the Evil Genius. Bionics for the sublicense the work or any part of it without McGraw-Hill's prior consent. You may use
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.