Abstract
So far in our discussion of programming the Arduino microcontroller, we have generally glossed over the physical interactions of turning things on and off and sensing the world around us that make programming microcontrollers so much fun. Now it’s time to fix that. Programming a microcontroller can be rather unique because of its ability to easily turn on and off motors, lights, and other actuators, as well as read from switches and sensors. This is possible on the Arduino Uno by using its 20 input and output (I/O) pins, each having different functions that can be configured in software-including input, output, analog to digital conversion (ADC), and analog output, more accurately called pulse width modulation (PWM)). This chapter will take as its focus the various digital input and output functions available and how to interface the needed hardware to make them work.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2011 Brian Evans
About this chapter
Cite this chapter
Evans, B. (2011). Digital Ins and Outs. In: Beginning Arduino Programming. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-3778-5_5
Download citation
DOI: https://doi.org/10.1007/978-1-4302-3778-5_5
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-3777-8
Online ISBN: 978-1-4302-3778-5
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)