Quad Alphanumeric Vs Data Logging Shield – Fight!

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
designCPU
 
Posts: 41
Joined: Sun Aug 24, 2014 2:24 pm

Quad Alphanumeric Vs Data Logging Shield – Fight!

Post by designCPU »

More problems. There seems to be some kind of issue between my R3 Uno, Data Logging Shield, V2 Motor Shield, and Quad Alphanumeric Display. I should note that my previous setup didn't have the SD shield or code for data logging, and everything worked fine. When I introduce the Data Logging Shield into the mix, my program doesn't get beyond the setup block. I thought it might be a conflict caused by chip select pin 10 on the SD shield, but when I omit the code initializing the quad-alphanumeric display, the motor and SD card shields play nice. I think I've isolated the offending lines of code:

Code: Select all

#include <Wire.h>
#include "Adafruit_LEDBackpack.h"
#include "Adafruit_GFX.h"
#include <SD.h>
#include <Adafruit_MotorShield.h>

…
Adafruit_MotorShield AFMS = Adafruit_MotorShield();
Adafruit_DCMotor *m1 = AFMS.getMotor(1);
Adafruit_DCMotor *m2 = AFMS.getMotor(2);
Adafruit_DCMotor *m3 = AFMS.getMotor(3);
Adafruit_DCMotor *m4 = AFMS.getMotor(4);
  

void setup() {
	Serial.begin(9600);  
	pinMode(10, OUTPUT);
	…

	if (SD.begin(10)) {
		Serial.println("SD CARD INITIALIZATION DONE.");  
	} else {
		Serial.println("SD CARD INITIALIZATION FAILED!");
  	}
	…
	Adafruit_AlphaNum4 alpha4 = Adafruit_AlphaNum4();
	alpha4.begin(0x71);  // pass in the address
	alpha4.writeDigitRaw(3, 0x0);
	alpha4.writeDigitRaw(0, 0xFFFF);
	alpha4.writeDisplay();
	delay(150);
	...
	AFMS.begin();
	…
}

...

If it's an incompatibility between the included libraries, maybe I'm just out of luck. I've tried re-ordering things, and nothing resolves the issue. Any ideas??

User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: Quad Alphanumeric Vs Data Logging Shield – Fight!

Post by Franklin97355 »

You posted this question in your other thread. Please follow up there.

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

Return to “Arduino Shields from Adafruit”