Rx and Tx use D10 and D11. Is it possible to change to other pins on the Arduino, such as D2 and D3? I have designed a shield for controlling relays and would rather not hack my board to allow D10 and D11 to pass through.
I think i found my own answer by going over the manual. I can pull jumpers 2 and 3 and rewire Rx and Tx to what digital pin I want. It seems I also will need to reassign Rx and Tx by changing the statements in MOVIshield.h. Correct? Or should I use the LowLevelinterface? I think in my case, I will leave things the way they are and make changes to my relay shield.
Dylan said May 29, 2016 18:36:29
While changing MOVIShield.h would work, the cleaner way is to use the constructor that is provided that allows you to override the default Rx and Tx pins:
// Construct a MOVI object with different communication pins and optional serial monitor interaction. This constructor only works on AVR architecture CPU (e.g Arduino Uno, Mega, Leonardo. NOT Due, Zero, Edison)
MOVI(bool debugonoff, int rx, int tx);
firstname.lastname@example.org said May 17, 2017 15:25:00
I've read through the user manual, the support forum and the library code. Could someone please confirm which MOVI shield jumpers go with RX vs TX?
The User Manual states:
"To rewire MOVI’s communication to different pins, open Jumper 2 and Jumper 3 and
connect the left side of MOVI's TX jumper (Jumper 2) and the left side of MOVI's RX
jumper (Jumper 3) to two other connectors on the Arduino headers using jumper wires.
The left side is the pin that is further away from the Arduino headers and the microphone
(MIC1) and closer to the button."
Is J2=TX and J3=RX?
I want to reassign TX to mega R3 pin 30, and reassign RX to mega R3 pin 31 using the constructor: MOVI(bool debugonoff, int rx, int tx);
If I jump J2->30 and J3->31, is the correct constructor call: MOVI movi(false, 31, 30)
"Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX: 10, 11, 12, 13, 14, 15, 50, 51, 52, 53, A8 (62), A9 (63), A10 (64), A11 (65), A12 (66), A13 (67), A14 (68), A15 (69)."