Abstract
As discussed in Chapter 1, LEDs have a voltage drop of approximately 2 volts across their internal junction, and the voltage can vary depending on the size, color of the LED, and forward current. We will use an analog input on the Arduino and measure the exact value of the voltage drop. Because the microcontroller is digital, the analog information must be converted into the binary system to be processed. In general, when we go from analog to digital we use a device called an analog-to-digital converter (ADC). Going the other way, coming from the digital realm to the analog world, we use a digital-to-analog converter (DAC). For us to measure an analog voltage, as opposed to a logic level, the Arduino ADC will convert the voltage to a binary number between 0 and 1,023.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Bob Dukish
About this chapter
Cite this chapter
Dukish, B. (2018). Electronic Projects. In: Coding the Arduino. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3510-2_8
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3510-2_8
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3509-6
Online ISBN: 978-1-4842-3510-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)