Author
Topic: Balanduino app communication protocol (Read 668 times)

Hello, I run a robotics after school programme, and an very impressed with your balanduino robot.In addition we have been using the joystick tab in the balanduino app to control robots we have created ourselves - its an excellent app and works really well.However we are also wishing to use the PID and GRAPH tabs of your app as well.We are able to read the messages from the app fine (i.e. joystick and PID adjust vales), but have not been successful in sending data to the PID (to fill the Current Values section) and the GRAPH tabs.We have studied the balanduino code in detail, and our understanding of the message flows are shown below:

Message initiator Message sent from App Message sent from Balanduino Comments

Joystick tag CS; -------------> joystick in center position - works fine CJ,xxx,yyy; -------------> joystick in other positions - works fine

Graph tagdata sent from robot <------------- V,xxx,xxx,xxx/n sent every 50ms - but graph not populated

Just wondering if you could give me some pointers as to why the PID Current Values section of the PID tag, and the Graph tag does not respond to the data messages we are sending. Note the BT card in he robot is set up for 9600 baud.

Thanks for that.I tried your suggestion, it works fine from a serial terminal on my PC.However sending the same string from the arduino through a HC-05 BT card (using the arduino HW UART, pin 0 and 1) doesn't seem to work - however sometimes when the BT connection is first established the string sent from the arduino/HC05 will be detected, but only once and only somethimes.I have tried a HC-05 from two different suppliers - no difference.All very strange.Have you come across anything similar in the past ?