Adafruit GPS and adafruit BMP180

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Mousquetaire
 
Posts: 2
Joined: Mon Mar 02, 2015 5:06 pm

Adafruit GPS and adafruit BMP180

Post by Mousquetaire »

Hi,
first I would like to congratulate adafruit team. I try to follow as much as I can all the online material you are proposing, and I'm really impressed by the energy you are putting in all of your projects...
I'm a real beginner withe the arduino. I'd like to put together you BMP180 sensor and GPS rev3. Each are perfectly working separately and I have managed to log data on an sd card. But when I try to combine both it's not working as soon as I add the Wire.h library into the code dedicated to the GPS : just one line, and things turn bad.
Attached an example which works just fine without the first lin
Any suggestion from your side will be very much appreciated !
Merci !
Alfredo
Attachments
shield_sdlog_plus_wire.txt
(6.25 KiB) Downloaded 119 times

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit GPS and adafruit BMP180

Post by adafruit_support_mike »

That's a problem we tracked down a while ago.

This post has a complete description of what's going wrong: http://forums.adafruit.com/viewtopic.ph ... 76#p213690

User avatar
jboyton
 
Posts: 101
Joined: Tue Sep 16, 2014 2:52 pm

Re: Adafruit GPS and adafruit BMP180

Post by jboyton »

I checked the memory usage of your sketch. Without Wire.h is uses 1665 bytes; with Wire.h it uses 1872 bytes. If you have an Arduino Uno you only have 2048 bytes of RAM, so that means with Wire.h there is only 176 bytes left. The SD library will not work unless there is about 300 bytes available.

That thread suggests getting a processor with more RAM. That's the easiest way. But it is possible to make it work on an Uno if you're willing to spend the time and effort.

User avatar
Mousquetaire
 
Posts: 2
Joined: Mon Mar 02, 2015 5:06 pm

Re: Adafruit GPS and adafruit BMP180

Post by Mousquetaire »

Thank you mike and jboyton, I will try with an arduino mega!

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”