Movi With Bluetooth

I’ve been having trouble with my Movi and my mega 2560. Specifically with serial communication.
I have an HC-05 on Serial pins (0,1) and my movi on serial3.
The Movi works perfectly with all my code, but the HC-05 does not. When a comment all of Movi’s code the HC-05 works fine. I’m not sure what’s going on. I’m using
MOVI camaro(true, &Serial3);
to create my object and
Serial3.begin(9600);
to start the serial for it.
Serial.begin(9600);
Serial.print(“Arduino is Ready”);
is used for the Hc-05, but with all my Movi code include it doesn’t work. All serial data for this connection is frozen.
When I comment out this i nmy setup()
// camaro.init();
// camaro.callSign(“Arduino”);
// camaro.addSentence(“How were you made”);//37
// camaro.train();
// camaro.setVoiceGender(true); //Sets voice to female
// camaro.responses(false); //turns of response for noise
// camaro.say(“Camaro is ready.”);
and this in the void loop()
// signed int res = camaro.poll();
Serial communication for the HC-05 starts working perfectly.
Any help would be extremely helpful. The forum is saying I have a no internet connection, so I thought to try this.

Did you rewire MOVI such that RX/TX corresponds to pin 14/15 instead off 10/11?
See: https://www.arduino.cc/reference/en/language/functions/communication/serial/
and: https://www.audeme.com/uploads/4/3/9/9/43997575/movi_11usermanual111.pdf
(page 10)

Gerald

I did. The Movi works fine it’s just the hc05 that doesn’t work when my Movi code is present. It’s like the serial communication for mega 2560 doesn’t work with both devices at the same time.

This is odd especially because both are Hardware Serial ports.

Maybe check if this example works with your board?
https://www.arduino.cc/en/Tutorial/MultiSerialMega

Gerald

Thanks for the help fractor, the forum actually helped me understand Hardware serial a little better. I assigned my bluetooth module to Serial1 and the movi to serial3. I also changed the baud rate of the hc 05 to 38400 and it works perfectly fine now. Both devices cooperate nicely and I’m able to use voice commands and bluetooth commands for my project. Thank you once again.
Here’s how my serial codes are now
Serial.begin(9600);
Serial.print(“Arduino is Ready”);
Serial1.begin(38400);
Serial3.begin(9600);
the movi object is still created with
MOVI camaro(true, &Serial3);
and the mega 2560 works perfectly now.

1 Like