I’m trying to make a servo move up and down 10 degrees depending on the bluetooth on data recieved delineated string value sent from the Serial terminal app on my phone.
The servo will move on the , values, but will not move in the reverse direction or show the arrow on the LEDs using any other string value.
If anyone can look at my code and suggest what might be causing this? ChatGPT doesn;t seem to have an answer.
Hi Brenden,
Sorry this is a bit late… I think that only one bluetooth on data received block will work. The same applies to serial on data received.
The block specifies what separates commands. To do different things, send a command followed by the delimeter, like “U,” or “D,”. The receiver code can read the string up to the delimeter.