Skip to main content

Analog RefernceReference (AREF) pin on Arduino MKR1000 not working?

Has anyone successfully used the AREF pin on MKR1000?

I'm trying to use an EXTERNAL voltage reference (I need 1.5V instead of the default 5V) with:

analogReference(EXTERNAL)

butBut when I compile I receive the following error message:

MKR_001:161: error: invalid conversion from 'int' to 'eAnalogReference {aka _eAnalogReference}' [-fpermissive]

In the documentation (for analogReference) I found the following:

DEFAULT: the default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards)
INTERNAL: an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328 and 2.56 volts on the ATmega8 (not available on the Arduino Mega)
INTERNAL1V1: a built-in 1.1V reference (Arduino Mega only)
INTERNAL2V56: a built-in 2.56V reference (Arduino Mega only)
EXTERNAL: the voltage applied to the AREF pin (0 to 5V only) is used as the reference.

Thanks, Corrado

Analog Refernce (AREF) pin on Arduino MKR1000 not working?

Has anyone successfully used the AREF pin on MKR1000?

I'm trying to use an EXTERNAL voltage reference (I need 1.5V instead of the default 5V) with:

analogReference(EXTERNAL)

but when I compile I receive the following error message:

MKR_001:161: error: invalid conversion from 'int' to 'eAnalogReference {aka _eAnalogReference}' [-fpermissive]

In the documentation (for analogReference) I found the following:

DEFAULT: the default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards)
INTERNAL: an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328 and 2.56 volts on the ATmega8 (not available on the Arduino Mega)
INTERNAL1V1: a built-in 1.1V reference (Arduino Mega only)
INTERNAL2V56: a built-in 2.56V reference (Arduino Mega only)
EXTERNAL: the voltage applied to the AREF pin (0 to 5V only) is used as the reference.

Thanks, Corrado

Analog Reference (AREF) pin on Arduino MKR1000 not working?

Has anyone successfully used the AREF pin on MKR1000?

I'm trying to use an EXTERNAL voltage reference (I need 1.5V instead of the default 5V) with:

analogReference(EXTERNAL)

But when I compile I receive the following error message:

MKR_001:161: error: invalid conversion from 'int' to 'eAnalogReference {aka _eAnalogReference}' [-fpermissive]

In the documentation (for analogReference) I found the following:

DEFAULT: the default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards)
INTERNAL: an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328 and 2.56 volts on the ATmega8 (not available on the Arduino Mega)
INTERNAL1V1: a built-in 1.1V reference (Arduino Mega only)
INTERNAL2V56: a built-in 2.56V reference (Arduino Mega only)
EXTERNAL: the voltage applied to the AREF pin (0 to 5V only) is used as the reference.

Thanks, Corrado

Improved formatting and some spelling and title
Source Link

Has anyone successfully used the AREF pin on MKR1000MKR1000?

I'm trying to use an EXTERNAL voltage reference (I need 1.5V instead of the default 5V) with:

analogReference(EXTERNAL)

but when I compile I receive the following error message:

MKR_001:161: error: invalid conversion from 'int' to 'eAnalogReference {aka _eAnalogReference}' [-fpermissive]

MKR_001:161: error: invalid conversion from 'int' to 'eAnalogReference {aka _eAnalogReference}' [-fpermissive]

In the documentation (for analogReference) I found the following:

DEFAULT: the default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards)

INTERNAL: an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328 and 2.56 volts on the ATmega8 (not available on the Arduino Mega)

INTERNAL1V1: a built-in 1.1V reference (Arduino Mega only)

INTERNAL2V56: a built-in 2.56V reference (Arduino Mega only)

EXTERNAL: the voltage applied to the AREF pin (0 to 5V only) is used as the reference.

DEFAULT: the default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards)
INTERNAL: an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328 and 2.56 volts on the ATmega8 (not available on the Arduino Mega)
INTERNAL1V1: a built-in 1.1V reference (Arduino Mega only)
INTERNAL2V56: a built-in 2.56V reference (Arduino Mega only)
EXTERNAL: the voltage applied to the AREF pin (0 to 5V only) is used as the reference.

Thanks, Corrado

Has anyone successfully used the AREF pin on MKR1000?

I'm trying to use an EXTERNAL voltage reference (I need 1.5V instead of the default 5V) with:

analogReference(EXTERNAL)

but when I compile I receive the following error message:

MKR_001:161: error: invalid conversion from 'int' to 'eAnalogReference {aka _eAnalogReference}' [-fpermissive]

In the documentation (for analogReference) I found the following:

DEFAULT: the default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards)

INTERNAL: an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328 and 2.56 volts on the ATmega8 (not available on the Arduino Mega)

INTERNAL1V1: a built-in 1.1V reference (Arduino Mega only)

INTERNAL2V56: a built-in 2.56V reference (Arduino Mega only)

EXTERNAL: the voltage applied to the AREF pin (0 to 5V only) is used as the reference.

Thanks, Corrado

Has anyone successfully used the AREF pin on MKR1000?

I'm trying to use an EXTERNAL voltage reference (I need 1.5V instead of the default 5V) with:

analogReference(EXTERNAL)

but when I compile I receive the following error message:

MKR_001:161: error: invalid conversion from 'int' to 'eAnalogReference {aka _eAnalogReference}' [-fpermissive]

In the documentation (for analogReference) I found the following:

DEFAULT: the default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards)
INTERNAL: an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328 and 2.56 volts on the ATmega8 (not available on the Arduino Mega)
INTERNAL1V1: a built-in 1.1V reference (Arduino Mega only)
INTERNAL2V56: a built-in 2.56V reference (Arduino Mega only)
EXTERNAL: the voltage applied to the AREF pin (0 to 5V only) is used as the reference.

Thanks, Corrado

Post Reopened by aaa, jfpoilpret, KIIV, rebatoma, duck
added 785 characters in body
Source Link
Corrado
  • 113
  • 3

hasHas anyone successfully used the AREF pin on MKR1000? I'm

I'm trying to use an EXTERNAL voltage reference (I need 1.5V instead of the default 5V) with:

analogReference(EXTERNAL)

but it seems notwhen I compile I receive the following error message:

MKR_001:161: error: invalid conversion from 'int' to work'eAnalogReference {aka _eAnalogReference}' [-fpermissive]

In the documentation (for analogReference) I found the following:

DEFAULT: the default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards)

INTERNAL: an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328 and 2.56 volts on the ATmega8 (not available on the Arduino Mega)

INTERNAL1V1: a built-in 1.1V reference (Arduino Mega only)

INTERNAL2V56: a built-in 2.56V reference (Arduino Mega only)

EXTERNAL: the voltage applied to the AREF pin (0 to 5V only) is used as the reference.

Thanks, Corrado

has anyone successfully used the AREF pin on MKR1000? I'm trying to use an EXTERNAL voltage reference but it seems not to work.

Thanks, Corrado

Has anyone successfully used the AREF pin on MKR1000?

I'm trying to use an EXTERNAL voltage reference (I need 1.5V instead of the default 5V) with:

analogReference(EXTERNAL)

but when I compile I receive the following error message:

MKR_001:161: error: invalid conversion from 'int' to 'eAnalogReference {aka _eAnalogReference}' [-fpermissive]

In the documentation (for analogReference) I found the following:

DEFAULT: the default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards)

INTERNAL: an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328 and 2.56 volts on the ATmega8 (not available on the Arduino Mega)

INTERNAL1V1: a built-in 1.1V reference (Arduino Mega only)

INTERNAL2V56: a built-in 2.56V reference (Arduino Mega only)

EXTERNAL: the voltage applied to the AREF pin (0 to 5V only) is used as the reference.

Thanks, Corrado

Post Closed as "Needs details or clarity" by Dat Ha, jfpoilpret, rebatoma, duck, KIIV
Source Link
Corrado
  • 113
  • 3
Loading