Book Image

Arduino By Example

By : Adith Jagadish Boloor, Adith Jagdish Boloor
Book Image

Arduino By Example

By: Adith Jagadish Boloor, Adith Jagdish Boloor

Overview of this book

Table of Contents (18 chapters)
Arduino by Example
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 2. Digital Ruler

You've made it to chapter 2! Congrats! From now on things are going to get a bit complicated as we try to make the most of the powerful capabilities of the Arduino micro controller. In this chapter we are going to learn how to use a sensor and an LCD board to create a digital LCD ruler.

Put simply, we will use the ultrasound sensor to gauge the distance between the sensor and an object. We will use the Arduino and some math to convert the distance into meaningful data (cm, inches) and finally display this on the LCD.

  • Prerequisites

  • Using an ultrasound sensor

  • Hooking up an LCD to the Arduino

  • Displaying the sensor data on the LCD

  • Summary