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?
Motor Shield and LCD Compatability
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88091
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor Shield and LCD Compatability
Which motor shield are you using?
- btreichel
- Posts: 79
- Joined: Tue Jul 25, 2017 3:00 pm
Re: Motor Shield and LCD Compatability
version 2.3, new last week. Needed a picture for other purposes, attaching.
- adafruit_support_bill
- Posts: 88091
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor Shield and LCD Compatability
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.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?
Please be positive and constructive with your questions and comments.