Arduino Workshop: A hands-on introduction with 65 projects by John Boxall
Author:John Boxall
Language: eng
Format: epub
Tags: TECHNOLOGY & ENGINEERING / Robotics
ISBN: 9781593275259
Publisher: No Starch Press
Published: 2013-05-02T16:00:00+00:00
switch(xx) { case 1: // do something as the value of xx is 1 break; // finish and move on with sketch case 2: // do something as the value of xx is 2 break; case 3: // do something as the value of xx is 3 break; default: // do something if xx is not 1, 2 or 3 // default is optional }
The optional default: section at the end of this code segment lets you choose to run some code when true comparisons no longer exist in the switch-case statement.
Project #33: Creating a Keypad-Controlled Lock
In this project, we’ll create the beginning part of a keypad-controlled lock. We’ll use the basic setup described in the sketch in Example 9-1, but we’ll also include a secret code that will need to be entered on the keypad. The Serial Monitor will tell the user who types a code into the keypad whether the code is correct or not.
The sketch will call different functions, depending on whether the sixdigit secret code is correct. The secret code is stored in the sketch but is not displayed to the user. To activate and deactivate the lock, the user must press * and then the secret number, followed by #.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Whiskies Galore by Ian Buxton(41459)
Introduction to Aircraft Design (Cambridge Aerospace Series) by John P. Fielding(32830)
Small Unmanned Fixed-wing Aircraft Design by Andrew J. Keane Andras Sobester James P. Scanlan & András Sóbester & James P. Scanlan(32514)
Craft Beer for the Homebrewer by Michael Agnew(17883)
Turbulence by E. J. Noyes(7622)
The Complete Stick Figure Physics Tutorials by Allen Sarah(7073)
Kaplan MCAT General Chemistry Review by Kaplan(6508)
The Thirst by Nesbo Jo(6374)
Bad Blood by John Carreyrou(6224)
Modelling of Convective Heat and Mass Transfer in Rotating Flows by Igor V. Shevchuk(6187)
Learning SQL by Alan Beaulieu(5965)
Weapons of Math Destruction by Cathy O'Neil(5726)
Man-made Catastrophes and Risk Information Concealment by Dmitry Chernov & Didier Sornette(5523)
Digital Minimalism by Cal Newport;(5275)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5109)
iGen by Jean M. Twenge(5098)
Secrets of Antigravity Propulsion: Tesla, UFOs, and Classified Aerospace Technology by Ph.D. Paul A. Laviolette(4815)
Design of Trajectory Optimization Approach for Space Maneuver Vehicle Skip Entry Problems by Runqi Chai & Al Savvaris & Antonios Tsourdos & Senchun Chai(4785)
Electronic Devices & Circuits by Jacob Millman & Christos C. Halkias(4664)
