Arduino Projects For Dummies
Format: PDF / Kindle (mobi) / ePub
Discover all the amazing things you can do with Arduino
Arduino is a programmable circuit board that is being used by everyone from scientists, programmers, and hardware hackers to artists, designers, hobbyists, and engineers in order to add interactivity to objects and projects and experiment with programming and electronics. This easy-to-understand book is an ideal place to start if you are interested in learning more about Arduino's vast capabilities. Featuring an array of cool projects, this Arduino beginner guide walks you through every step of each of the featured projects so that you can acquire a clear understanding of the different aspects of the Arduino board.
- Introduces Arduino basics to provide you with a solid foundation of understanding before you tackle your first project
- Features a variety of fun projects that show you how to do everything from automating your garden's watering system to constructing a keypad entry system, installing a tweeting cat flap, building a robot car, and much more
- Provides an easy, hands-on approach to learning more about electronics, programming, and interaction design for Makers of all ages
Arduino Projects For Dummies is your guide to turning everyday electronics and plain old projects into incredible innovations.
Get Connected! To find out more about Brock Craft and his recent Arduino creations, visit www.facebook.com/ArduinoProjectsForDummies
up. Make sure you have a battery in the RTC or it won’t work correctly and you won’t be able to program it. With the battery inserted, it’s time to wire up the RTC to your Arduino so that you can program it with the correct time. Refer to Figure 7-3 to make the following connections: 1. Create a ground rail and a power rail on your breadboard by connecting your Arduino’s +5V and GND pins to the long columns of pins on the sides of the breadboard. 2. Connect the ground pin (GND)
the kit. You can download the library from the Downloads tab on this book's companion website (www.wiley.com/go/arduinoprojectsfordummies) or from Adafruit Industries' website. Arduino libraries are bundles of code that contain related procedures. See Chapter 3 for details on how to install and use libraries. After you have installed the RTC library, notice that there is a new item called RTClib in your Examples menu. Load the one called Examples→RTClib→ds1307. This sketch conveniently
that determine which digital pins the Arduino uses to communicate with the LCD. After creating those objects, the setup() function gets things going. The I2C, RTCLib, and the lcd all have to be enabled, which is done by the begin() function for each one. The lcd.begin() function takes two parameters, the number of columns and the number of rows, which on your display are 16 and 2. After this has been set, you can write messages to the screen simply by using the lcd.print() function:
code in this chapter won’t work with one of these modules, but once you understand the code, it is pretty easy for you to modify it to do so. The display is driven by the Maxim 7219 or 7221 display driver (72xx, for short). This integrated circuit (or IC ) makes it very easy to control up to eight digits. It handles addressing each segment, storing the state of each digit, and even controlling the brightness through pulse-width modulation (PWM). Conveniently, you send commands using the
Workspace and Tools In This Chapter Setting up the project building workspace Choosing the right tools for the job Selecting your Arduino or Arduino kit Setting up your Arduino Getting your workspace ready is the first step in building your Arduino project. You can do the first couple of projects in this book just about anywhere, but for anything a little more involved, you want to create a dedicated work area that has your necessary tools at hand. In this