Motor Shield and LCD Compatability

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
btreichel
 
Posts: 79
Joined: Tue Jul 25, 2017 3:00 pm

Motor Shield and LCD Compatability

Post by btreichel »

The program resets with servos attached to the motor shield when I change the code from

const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

to

const int rs = 12, en = 11, d4 = 10, d5 = 9, d6 = 8, d7 = 7;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

Does that have something to do with pwm's being in the 9 -10 range?

Work around (other than don't do that) Are those pins not usable as di/do with servo's attached?

User avatar
adafruit_support_bill
 
Posts: 88091
Joined: Sat Feb 07, 2009 10:11 am

Re: Motor Shield and LCD Compatability

Post by adafruit_support_bill »

Which motor shield are you using?

User avatar
btreichel
 
Posts: 79
Joined: Tue Jul 25, 2017 3:00 pm

Re: Motor Shield and LCD Compatability

Post by btreichel »

motor 2.3.jpg
motor 2.3.jpg (151.87 KiB) Viewed 230 times
version 2.3, new last week. Needed a picture for other purposes, attaching.

User avatar
adafruit_support_bill
 
Posts: 88091
Joined: Sat Feb 07, 2009 10:11 am

Re: Motor Shield and LCD Compatability

Post by adafruit_support_bill »

const int rs = 12, en = 11, d4 = 10, d5 = 9, d6 = 8, d7 = 7;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

Does that have something to do with pwm's being in the 9 -10 range?
Yes. The servo headers on the V2 motor shield are connected to pins D9 and D10, so you will have a conflict with that configuration.

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

Return to “Arduino Shields from Adafruit”