Go Down

Topic: Bluetooth HC05 and Arduino MEGA communication error (Read 428 times) previous topic - next topic

QyKiske

Hello everyone,

Arduino newbies here...I'm currently working on a project that needs me to control my build using the android app. The communication will be made via the bluetooth module HC05 to my Arduino MEGA. The problem i'm having right now is that i can't receive the information sent from my android app. I tried using the Arduino UNO to run the same program and it works but not on the MEGA.

So i was wondering what could have been the reason? Could it be the pin numbers, different libraries, or is it something else?

Thank you and have a nice day

groundFungus

#1
Jun 04, 2018, 12:41 pm Last Edit: Jun 04, 2018, 12:42 pm by groundFungus
It is hard tho tell you what you have done wrong when we have no idea what you have done.  A schematic and the code that works on the Uno and a schematic and the code that does not work on the Mega could give us the information to help you.

xl97

Without a wiring diagram to know what you actually did..

my guess is that you used an alternate (hardware) serial port?  UNO only has 1 (hardware) one.. Mega has several.

If you used software serial.. then make sure you use the same pins I guess??


QyKiske

Yes, exactly. I have to use the Serial1, Serial2 or Serial3 when using the MEGA. It was just a tiny problem. My bad, i should have done a little bit more research and studying.

Nevetheless, thank you for your time and i'm sorry for your trouble.
Time to go to work.

Have a great day guys.

Go Up