Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

CHAPTER 4: Adding Complexity to the Robot: Working with LCDs

C H A P T E R  4

Adding Complexity to the Robot: Working with LCDs

If motors give your robot life, LCDs give your robot character. In this chapter, we will be working toward the goal of adding another piece of hardware to the previous chapter's robot. In a hypothetical professional scenario, the customer might like to have a color LCD that displays in plain English which direction the robot is moving. Let's assume that customer wants you to use the SparkFun color LCD shield for the prototype. But because the motor and color LCD shields share some of the same pins (a conflict that arises often), we'll need to create a workaround for that issue.

To do so, we'll first need to take a look at the LiquidCrystal library and the ColorLCDShield library. We will also take a look at the setup of a monochrome LCD. After that, we will go through four monochrome and color LCD projects: displaying multiple sensor values on a monochrome LCD, creating a menu on a monochrome LCD, creating a slot machine on the color LCD from SparkFun, using a keypad to communicate with the SparkFun color LCD.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint