Skip to content

Commit 5f0f1f9

Browse files
committed
___ _______ _____ ______ ____ __ ___ __ ___ _____ ______ __ ____ __ ___ _________ ___ ____________.
1 parent e0b9471 commit 5f0f1f9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

content/learn/02.microcontrollers/02.analog-input/analog-input.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A description of the analog input pins on an Arduino chip (ATmega8, ATmega168, A
1111

1212
The ATmega controllers used for the Arduino contain an onboard 6 channel (8 channels on the Mini and Nano, 16 on the Mega) analog-to-digital (A/D) converter. The converter has 10 bit resolution, returning integers from 0 to 1023. While the main function of the analog pins for most Arduino users is to read analog sensors, the analog pins also have all the functionality of general purpose input/output (GPIO) pins (the same as digital pins 0 - 13).
1313

14-
Consequently, if a user needs more general purpose input output pins, and all the analog pins are not in use, the analog pins may be used for GPIO.
14+
Consequently, if a user needs more general purpose input output pins, and all the analog pins are not in use, the analog pins may be used for GPIO (____ ___ _________ __ ______ ____ __ ___ __ __ ______ ____ ___ ___ _________ ___ __________, _____ ___ ______ ______).
1515

1616
## Pin mapping
1717

@@ -37,4 +37,12 @@ Be aware however that turning on a pull-up will affect the values reported by an
3737
The analogRead command will not work correctly if a pin has been previously set to an output, so if this is the case, set it back to an input before using analogRead. Similarly if the pin has been set to HIGH as an output, the pull-up resistor will be set, when switched back to an input.
3838

3939
The ATmega datasheet also cautions against switching analog pins in close temporal proximity to making A/D readings (analogRead) on other analog pins. This can cause electrical noise and introduce jitter in the analog system.
40-
It may be desirable, after manipulating analog pins (in digital mode), to add a short delay before using analogRead() to read other analog pins.
40+
It may be desirable, after manipulating analog pins (in digital mode), to add a short delay before using analogRead() to read other analog pins.
41+
42+
__ __________ _________, ______ ____ __ ___ __ __ ___ _________ ___ __________ ___ ______ ______, ___ ______ __ ____ ___ ____. ____ _______ ___ _________ ______:
43+
44+
* _______ ____
45+
* _______ ____ __ (____ _________, _______ ____ __ ___ __ ___ __ _______ ___ ___ ___ ________)
46+
* _______ ___ ____
47+
* _______ __ (______ ______ __ ___ __ ___ _________ __ ___)
48+
* _______ ___

0 commit comments

Comments
 (0)