1.

Can the analogRead() function be used from any digital pin?(a) No, it cannot(b) Yes, it can, but only on certain Arduino Boards(c) Yes, it can(d) Yes, it can, but only through certain pinsI had been asked this question in class test.Question is from Analog Input Output in division Arduino Programming of Arduino

Answer»

The correct ANSWER is (d) Yes, it can, but only through certain pins

The BEST explanation: The pins in the Arduino Boards are all digital by default. The analog functionality is an addon to the BOARD with the HELP of an ADC (Analog to Digital Convertor) Circuit which is only connected to a certain number of digital pins, so therefore not all pins can SUPPORT analog communications.



Discussion

No Comment Found

Related InterviewSolutions