Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arduino Electronics Blueprints

You're reading from  Arduino Electronics Blueprints

Product type Book
Published in Jul 2015
Publisher Packt
ISBN-13 9781784393601
Pages 252 pages
Edition 1st Edition
Languages

Table of Contents (17) Chapters

Arduino Electronics Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. A Sound Effects Machine 2. Programmable DC Motor Controller with an LCD 3. A Talking Logic Probe 4. Human Machine Interface 5. IR Remote Control Tester 6. A Simple Chat Device with LCD 7. Bluetooth Low Energy Controller 8. Capacitive Touch Sensing 9. Arduino-SNAP Circuit AM Radio 10. Arduino Scrolling Marquee Index

A Do It Yourself Design Challenge!


Industrial control panels usually have indicators to provide visual feedback on key electromechanics and circuits of a robotic system. An LED can be added to the Capacitor Touch controller to provide hand detection plate visual feedback. The LED turns on when a hand touches the sensor and turns off when it is removed. You can use the onboard LED wired to pin D13 of the Arduino or add an external component. Here are the lines of code to accomplish the task:

int sensorStatus = 0;    // variable to store the servo position
int ledPin = 13; // the number of the LED pin (add this line of code)
void setup() { 
  // initialize the sensor pin as an input:
  pinMode(sensorPin, INPUT); 
  pinMode (ledPin, OUTPUT); (add this line of code)

if (sensorStatus == HIGH) {
  // turn ON LED
  digitalWrite (ledPin, HIGH); (add this line of code)

}

The modified Arduino code for the LED indicator function is shown later. Save the code changes with a different name to reflect...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}