HC 05 and Ardiuno Mega data received is garbage

I have been working on a android App based Project and i started in with Ardiuno nano. But as the project grew i had to swith to Ardiuno Mega.

I had no problems with the App and the data recived when it was in Nano. But now after i moved the same code and same appa and the same pins. The data is properly being sent to the App. Which means the values are transmitted at HC 05, however the data that is been received at HC05 was just a ?.
Its a garbage value. Can anyone let me know what might be the problem?

No code, no schematic, no help.

I moved your topic to an appropriate forum category @TGM.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

the mega has more 4 "Hardware Serial" ports, so if you were using SoftwareSerial on the Nano to deal with the HC-05 then you don't need to on the mega and can use Serial1, Serial2 or Serial3 for that.

if you were using Serial for the HC05 and you are using the Serial monitor at the same time, then that might be your problem

but as @SemperIdem said

While it would be a dumb way to go about it, the fact remains that Nano code and connections should work without change on a Mega.

One may therefore assume that something has changed, most likely slack wiring. Then see post #2.

I’ve found on occasion that the uno or nano are more permissive when it comes to having Serial connected to a device and using the Serial monitor at the same time. This was less true on the Mega (less permissive) for whatever reason I did not investigate as it’s the wrong way of going about it anyway

So my point was more about this - understanding the circuit

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.