Skip to main content

Electronic Projects

  • Chapter
  • First Online:
Coding the Arduino
  • 3507 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Bob Dukish

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics