Baud rate on HM-10 is 115200bps, so that is not problem. I've connected with my phone and I don't see any data from Arduino Nano, but if I send command from phone(eg. AT+VERS) I get V703. AT respondes with AT+OK.
Where is the problem?
Have you done a search for "arduino HM-10"? When I do I see that there are libraries that are used. The code you posted does not interact, as I can see, with a HM-10.
Idahowalker:
Have you done a search for "arduino HM-10"? When I do I see that there are libraries that are used. The code you posted does not interact, as I can see, with a HM-10.
There is no need for library. Most examples use Software serial so they can use Serial for printing code on PC. I don't need that. I need to send data from Arduino to phone via hardware serial.
You need to make your connections RX-TX, TX-RX to communicate between the Arduino and the HM-10. The reason is that RX stands for "receive" and TX stands for "transmit".
pert:
You need to make your connections RX-TX, TX-RX to communicate between the Arduino and the HM-10. The reason is that RX stands for "receive" and TX stands for "transmit".
I know that. Its connected RX from Arduino to TX from HM-10. TX from Arduino to RX from HM-10(via 1k/2k voltage divider). I see data from Serial on PC(when I connect Arduino Nano with USB cable). But HM-10 doesn't transmit(or even recive) data when using external power supply instead of USB cable.
Now I guess it is only possible to use Hardware Serial for sending data to PC.
Lol
Just found where the problem was.
Back in days when I've used Nano boards, I bend VIN and TX pins. Because of breadboard I had to cut it. I forgot for that. My bad. Sorry guys.