library ssd1306 and SD together problems...

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

Moderators: adafruit_support_bill, adafruit

library ssd1306 and SD together problems...

Postby buton » Fri May 25, 2012 1:05 pm

I have my display ssd1306 tied to pins 9 through 5... it works pretty good with the adafruit library by itself..

i have the Microsd breakout board working with teh SD adafruit library working pretty good by itself..

Somehow when i tie this two libraries together to display some reading by serial port and the display it goes all wrong.. i get nothing on the serial port in my computer and y get weird stuff on the display... looks like the serial port reading from the SD is going through the display...


Any ideas if this two libraries can work Together?...
buton
 
Posts: 52
Joined: Fri May 11, 2012 7:06 am

Re: library ssd1306 and SD together problems...

Postby pburgess » Fri May 25, 2012 1:32 pm

Possibly running up against a RAM limitation. I'd suggest simplifying your test case...rather than have the display, SD and Serial libraries all going at once, make up a test program that picks any two, e.g. SD and display, or Serial and display, and see if that case works. If so, then there's a good chance that all three libraries is just too much for the Arduino to handle...but there are still some drastic measures we can try at that point.
User avatar
pburgess
 
Posts: 1406
Joined: Sun Oct 26, 2008 1:29 am

Re: library ssd1306 and SD together problems...

Postby buton » Fri May 25, 2012 2:26 pm

the funny thing is that i was able to use the display.. serial port.. and MS5541 sensor which is SPI.. but for some reason with the SD library it goes crazy..
buton
 
Posts: 52
Joined: Fri May 11, 2012 7:06 am

Re: library ssd1306 and SD together problems...

Postby buton » Fri May 25, 2012 3:18 pm

its weird with the library from the nokia display PCD8544 reading the sd card works pretty good...
buton
 
Posts: 52
Joined: Fri May 11, 2012 7:06 am

Re: library ssd1306 and SD together problems...

Postby pburgess » Fri May 25, 2012 4:01 pm

The SD library uses gobs of RAM. Did the test involving the PCD8544 and SD card also use the Serial port? It might be the combination of all three that pushes things over the edge.
User avatar
pburgess
 
Posts: 1406
Joined: Sun Oct 26, 2008 1:29 am

Re: library ssd1306 and SD together problems...

Postby buton » Fri Jun 01, 2012 9:41 am

yes too much ram

i saw you wrote a library for only characters.. could you share it?
buton
 
Posts: 52
Joined: Fri May 11, 2012 7:06 am

Re: library ssd1306 and SD together problems...

Postby pburgess » Fri Jun 01, 2012 12:46 pm

buton wrote:yes too much ram
i saw you wrote a library for only characters.. could you share it?


This isn't ringing a bell. Maybe it was someone else's library?

Also, while this would reduce program size (flash memory), this wouldn't do anything to help with RAM usage. Are you using the 128x32 or 128x64 display? The latter especially uses a ton of RAM, on top of the ton required by the SD library...I'm doubtful these two could fit in the constraints of a stock Arduino.
User avatar
pburgess
 
Posts: 1406
Joined: Sun Oct 26, 2008 1:29 am


Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: No registered users and 6 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]