Ghica
unread,Jan 26, 2017, 4:03:17 AM1/26/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MIT App Inventor Forum
Joystick: fine, but do you need to send these values to the BT device too?
Baudrate: this depends on what your device can handle. And, because you are waiting a second in each loop iteration, it does not make sense.
Which brings me back to App Inventor: thinking about it, yes, you need a clock and you should only send data to your BT device to every clock tick. Also, the time interval should be higher that the delay in you loop on the BT device. Why? Because your device will not be able to keep up with all the messages and choke.
(Do not even think of building a delay in APp Inventor, that will crash your app. Why? Search the forum)
Now, before you are making too many changes:
Make sure the values you send are right and make sure that your device operates in the right way, because I doubt that too. Why? Because as far as I can see in your last .ino snippet you never send anything to the servo.
Cheers, Ghica.