# Arduino Pro mini GPS tracker

**URL:** <https://www.thethingsnetwork.org/forum/t/arduino-pro-mini-gps-tracker/54130>\
**Category:** End Devices (Nodes)\
**Created:** [December 29, 2021, 10:08am UTC](https://www.thethingsnetwork.org/forum/t/arduino-pro-mini-gps-tracker/54130 "2021-12-29T10:08:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![reivis](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/reivis/32/35697_2.png) [@reivis](https://www.thethingsnetwork.org/forum/u/reivis)\
**Post date:** [December 29, 2021, 10:08am UTC](https://www.thethingsnetwork.org/forum/t/arduino-pro-mini-gps-tracker/54130/1 "2021-12-29T10:08:38Z")

</div>

Hi there,

I have made the follow project from [https://www.thethingsnetwork.org/labs/story/lorawan-gsp-tracker](https://www.thethingsnetwork.org/labs/story/lorawan-gsp-tracker)  
Everything was going fine but when I upload the code with Arduino IDE I got the follow error:

Sketch uses 29324 bytes (95%) of program storage space. Maximum is 30720 bytes.data section exceeds available space in board

Global variables use 2193 bytes (107%) of dynamic memory, leaving -145 bytes for local variables. Maximum is 2048 bytes.

I have contacted the autor of this project but got no answere so far.  
Somebody can help me out please.

Regards  
Reinier

---

<div class="post-metadata">

**Author:** ![Jeff-UK](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jeff-uk/32/35697_2.png) [@Jeff-UK](https://www.thethingsnetwork.org/forum/u/Jeff-UK)\
**Post date:** [December 29, 2021, 10:47am UTC](https://www.thethingsnetwork.org/forum/t/arduino-pro-mini-gps-tracker/54130/2 "2021-12-29T10:47:43Z")

</div>

It’s a 4 year old story from nearer 5 year implementation using old firmware that is no longer maintained. The dev tools have evolved, the underlying TTN infrastructure has evolved and improved and TL:DR it’s likely not a great place to start such a development unless very familiar with paring and optimising LMIC & application code. 1st step would likely be move on to a current and supported version of LMIC… atleast 4.0 pref 4.1…MCCI lib. Or look at LMIC-node implementation as alternate start (haven’t checked if your board supported/viable) but some of the experts will know (calling @bluejedi @descartes)…

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [December 29, 2021, 11:50am UTC](https://www.thethingsnetwork.org/forum/t/arduino-pro-mini-gps-tracker/54130/3 "2021-12-29T11:50:35Z")

</div>

> [@Jeff-UK](#):
>
> it’s likely not a great place to start such a development unless very familiar with paring and optimising LMIC & application code

Where the _it_ refers to Pro Mini and ATmega328.

> [@Jeff-UK](#):
>
> Or look at LMIC-node implementation as alternate start (haven’t checked if your board supported/viable)

Unfortunately LMIC-node when using MCCI LMIC suffers from the ATmega328’s limited memory and won’t fit on it. Therefore for Pro Mini LMIC-node uses ‘Classic LMIC’ the now deprecated predecessor of MCCI LMIC instead.  
So while LMIC-node works with and supports the Pro Mini, it will use the older deprecated Classic LMIC library to make it fit on the Pro Mini.

For new developments better use some of the more recent 32-bit microcontrollers.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [December 29, 2021, 12:50pm UTC](https://www.thethingsnetwork.org/forum/t/arduino-pro-mini-gps-tracker/54130/4 "2021-12-29T12:50:25Z")

</div>

> [@bluejedi](#):
>
> So while LMIC-node works with and supports the Pro Mini, it will use the older deprecated Classic LMIC library to make it fit on the Pro Mini.

Which is great, as long as the actual application you are writing is small or amazingly efficient and a GPS tracker is unlikely to be small and making it amazingly efficient is going to require you to forego the standard GPS libraries so you can parse the data stream as it comes in as holding a whole line in memory is going to hurt.

If you ONLY wanted to read a temp/humidity sensor, that would be feasible but less ideal as the classic LMIC that does fit is only just TTS v3 friendly.

So all in all, best get yourself another board - if you need it small, I hear the Teensy’s are good.

---

<div class="post-metadata">

**Author:** ![clv](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/clv/32/46568_2.png) [@clv](https://www.thethingsnetwork.org/forum/u/clv)\
**Post date:** [January 1, 2022, 1:45pm UTC](https://www.thethingsnetwork.org/forum/t/arduino-pro-mini-gps-tracker/54130/5 "2022-01-01T13:45:43Z")

</div>

> [@reivis](#):
>
> Sketch uses 29324 bytes (95%) of program storage space.

I think this board [https://www.tindie.com/products/lps/lorawan-megabrick/](https://www.tindie.com/products/lps/lorawan-megabrick/) Its great for LMIC. Not tested with LMIC yet.
