Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Arduino Electronics Blueprints

You're reading from   Arduino Electronics Blueprints Make common electronic devices interact with an Arduino board to build amazing out-of-the-box projects

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher Packt
ISBN-13 9781784393601
Length 252 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Don Wilcher Don Wilcher
Author Profile Icon Don Wilcher
Don Wilcher
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. A Sound Effects Machine FREE CHAPTER 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 $19.99/month. Cancel anytime
Banner background image