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?
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.
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
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