String based Commands for Arduino - Java communication using USB Serial COM Port

preview_player
Показать описание
The Value of the Poti is send to a Java Application and then back to the Arduino to move the Servo. Shure this could be done easier by just using the Arduino, but I wanted to test the communication over the USB Serial Port.
In this example I'm using Strings to transfer the data, which is the best way if you need to adress more than one sensor or servo. Because of the de- and encoding of the Strings this might not be the fastest way, but you can build very complex data protocols.
Check out my tutorial to learn more about that stuff:
Рекомендации по теме