Just starting my first Arduino project - Remote control boat (How to make a smartphone controlled boat || Arduino Uno || HC-05 || Beginnertopro.in).
I have downloaded code from the internet and uploaded it to the arduino but the motors do not turn. So much for plug and play.
I have configured the buttons on the android remote control software to send F, B, L, R, and S as appropriate.
The problem I have is I do not see how to troubleshoot to make sure that the arduino is in fact receiving the correct input from the remote.
I tried connecting a computer serial port (RX) to the Arduino (Serial TX) port, using Putty to receive the data from the arduino and I do not get anything)
I am not a C programmer but do have some experience with VB and they way I read the code below the arduino should send "Forward Move" out on its serial TX port when it receives the "F".
if(Serial.available() > 0) // Send data only when you receive data:
data = Serial.read(); //Read the incoming data & store into data
Serial.print(data); //Print Value inside data in Serial monitor
I get nothing out of the arduino. If I connect my computer serial port in parralel with the arduino serial port RX and the HC-05 Bluetooth Module putty does display data but it is not F, B, L, R, and S respectively.
With my past experience with serial communicaitos it looks like there is a data rate mismatch between the computer and the arduino/BT Module. From what I have found the default data rate for the HC-05 is 38400. I have tried that as well as 9600 and 19200 and get similar results but different characters displayed in putty so I thought that maybe I cannot connect both the PC serail port and the arduino to the HC-05 but thought I would ask here.