# MKRIoTCarrier not Powering using Battery

**URL:** <https://forum.arduino.cc/t/mkriotcarrier-not-powering-using-battery/1184814>\
**Category:** MKR Shields\
**Created:** [November 2, 2023, 10:50am UTC](https://forum.arduino.cc/t/mkriotcarrier-not-powering-using-battery/1184814 "2023-11-02T10:50:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fastsalad](https://avatars.discourse-cdn.com/v4/letter/f/df788c/32.png) [@fastsalad](https://forum.arduino.cc/u/fastsalad)\
**Post date:** [November 2, 2023, 10:50am UTC](https://forum.arduino.cc/t/mkriotcarrier-not-powering-using-battery/1184814/1 "2023-11-02T10:50:11Z")

</div>

Hi everyone,

I am trying to use the MKR Wan 1310 together with MKRIoTCarrier. First of all, the IoTCarrier will not run on Battery Power (Yes the cable is connected) Second, i can't seem to get the MKRWan Library to work even just the include (#include \<Arduino\_MRKIoTCarrier.h\>) throws Error messages:

```arduino
Bibliothek Arduino_MKRIoTCarrier wurde als vorkompiliert angegeben:
Benutze vorkompilierte Bibliothek in C:\Users\a00539363\OneDrive - ONEVIRTUALOFFICE\Documents\Arduino\libraries\Arduino_MKRIoTCarrier\src\cortex-m0plus
C:\Users\a00539363\OneDrive - ONEVIRTUALOFFICE\Documents\Arduino\libraries\Arduino_MKRIoTCarrier\src\Arduino_MKRIoTCarrier.cpp: In member function 'int MKRIoTCarrier::begin()':
C:\Users\a00539363\OneDrive - ONEVIRTUALOFFICE\Documents\Arduino\libraries\Arduino_MKRIoTCarrier\src\Arduino_MKRIoTCarrier.cpp:34:11: error: 'AREF_PIN' was not declared in this scope
   pinMode(AREF_PIN,INPUT_PULLUP);
           ^ ~~~~~~~
C:\Users\a00539363\OneDrive - ONEVIRTUALOFFICE\Documents\Arduino\libraries\Arduino_MKRIoTCarrier\src\Arduino_MKRIoTCarrier.cpp:34:11: note: suggested alternative: 'SCK_PIN'
   pinMode(AREF_PIN,INPUT_PULLUP);
           ^ ~~~~~~~
           SCK_PIN

exit status 1

Compilation error: exit status 1

```

I would be very thankful if someone could help me out here 😃. Thanks!

---

<div class="post-metadata">

**Author:** ![Dozie](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/dozie/32/239024_2.png) [@Dozie](https://forum.arduino.cc/u/Dozie)\
**Post date:** [November 2, 2023, 2:37pm UTC](https://forum.arduino.cc/t/mkriotcarrier-not-powering-using-battery/1184814/2 "2023-11-02T14:37:27Z")

</div>

Depending on the version of the carrier you have, try different versions of the "Arduino\_MKRIoTCarrier" library from version 1.0.2 upwards.

---

<div class="post-metadata">

**Author:** ![fastsalad](https://avatars.discourse-cdn.com/v4/letter/f/df788c/32.png) [@fastsalad](https://forum.arduino.cc/u/fastsalad)\
**Post date:** [November 2, 2023, 2:52pm UTC](https://forum.arduino.cc/t/mkriotcarrier-not-powering-using-battery/1184814/3 "2023-11-02T14:52:22Z")

</div>

Hello,

Thanks for your answer. I have since fixed the issue myself. For anyone stumbling about this post: The issue was, that the Definitions in the library are only written for The MKR Wi-Fi (at least that's what I understood) Anyway just do whats listed here: [MKR IOT Carrier + MKRWAN 1310](https://forum.arduino.cc/t/mkr-iot-carrier-mkrwan-1310/1141605) and you are good to go.

But there is still the issue, that the carrier will not run on battery power. As I have said, i plugged the cable in but it remains off. over cable it works fine.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [April 30, 2024, 2:53pm UTC](https://forum.arduino.cc/t/mkriotcarrier-not-powering-using-battery/1184814/4 "2024-04-30T14:53:03Z")

</div>

Closed on April 30, 2024, 2:53pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
