Thanks for the recommendations. Unfortunately, I couldn’t get to you until now.
I am really trying to understand why you started your bluetooth experience with an AT adventure and have an ongoing focus on AT mode?
These modules should work out of the package. Did someone previously use the module, and you are trying to get it back to defaults. Are you trying to change some operational parameters?
When I first connected the Bluetooth my mobile phone couldn’t find the module, so I read on the internet that with AT mode I can set up my HC-05. Hoping this will solve my problems I tried to bring it in AT mode and run AT+ORGL to restore default configurations.
I don’t know if I affected the module while trying to connect it for the first time or “playing” with it… but it didn’t work out of the package. (it was a brand new one)
Yes, I’m trying to bring it to the defaults or set it up so I can connect with my phone.
NoYou don’t need any AT commands to do that. Indeed to use bluetooth, you may never need any AT commands, ever.Wrong. Transmitters transmit to receivers, and receivers receive from transmitters
Note also that it is a good idea to use a 1k/2k divider in Arduino Tx line. Also, since you are using a Mega, you will be better off using Serial1 pins 18,19.
Thanks for the pieces of advice. I’ll give it a shot later this day and come back with the result.
Why do you parallel-connect the BT module to the USB<>Serial pins, while you have three unused serial pins available.
Use serial1 (pin 18,19), or any of the other hardware serial pins.
EN can be left unconnected.
The RX pin needs to be level-shifted with a voltage divider (1k:2k2).
Thank you, Leo! As I mentioned I’ll try this later this day.
This is the tutorial I followed and he is using an Arduino Uno, so I hope pins 18,19 will solve my problem.
IMPORTANT EDIT: it seems to be an hm-10 according to this post (I want to mention that it was named HC-05 on the shop & it has zs-040 on it’s back)