Or manually re-routing the conflicting pins, by bending the pins on the above shield (LCD) so they don't plug on the shield below (the motor shield), and connect to other Arduino pins, using wires...And then change the line accordingly:
LiquidCrystal lcd(8, 9, newpin1, newpin2, 6, 7);
Or if you don't want to bend pins, use lot of wires to connect the LCD like a breakout board rather than a shield.
Maybe I'm wrong and there may be other methods, I'm beginner too. Hope it helps
PS: And don't forget that the motor 2 is using pin 6 and 7 too!
That's why I was hoping that i was missing something. I hoped not to get the tools out.
only use/need one motor so I have a 2 pin problem.
I will see if anyone has a better idea before I break out the wire cutters and I appreciate you help.
cheers
Bob
Anyway, on further investigation it looks like the romeo has 4 jumpers which assign 4,5,6,7 tp the motor control so if I disconnect the offending pins and jump spare PWM pins as mentioned above I should be in business. I'll try and see.
I think you can take out two jumpers (D4 and D5) and hardwire them to other digital pins. D4 is for direction control, so any digital pin will do, but for speed you need to pick any other free PWM capable pin.
And you should also consider swapping D6 with some other PWM signal that is free and uses the same frequency divider as the other one, and change it to at least ...was 32kHz? You get quieter motor control under full speed, and more torque as well...?
This seems to be newer version of Romeo than ours, older can't take shields.
Links would be nice, but somehow I managed to find these parts... PaulS...
PaulS, I appreciate the definitions and I apologize for not adding them to the post. I made an erroneous assumption that the boards I was using were well known and unique and that this board would be full of people using them and I expected a reply from someone who had the same setup, problem and solution.
This too I will learn.
Nothing like a little sarcasm to start the day.
Thanks for taking the time.
Did you read my post, and did you find the point I was trying to show?
It is possible that I explained it a bit messy way, but it should work. All you need to do is to change pin assignments on your code.
Works for me, should works for you as well.
I like Romeo, it includes many nice features for a start, as the first board, it just takes time to get use to its hardwired parts.
Kari,
I did read it and I understood your point. It led me to conclude that you are right. All I have to do is remove the jumper that routs the pins 4,5 to the motor and jump 2,3 to replace them and assign these in the code. There are a set of header pins on the LCD board conveniently placed to make this easy.
All working fine as "spcomputin" suggested with a slight jumper fix.
Thanks y'all for the help.