# Visualizing resultant forces

**URL:** <https://discourse.processing.org/t/visualizing-resultant-forces/12423>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [July 1, 2019, 12:40pm UTC](https://discourse.processing.org/t/visualizing-resultant-forces/12423 "2019-07-01T12:40:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [July 1, 2019, 1:27pm UTC](https://discourse.processing.org/t/visualizing-resultant-forces/12423/2 "2019-07-01T13:27:43Z")

</div>

> [@Using two different readStringUntil "characters"](https://discourse.processing.org/t/using-two-different-readstringuntil-characters/10769/23):
>
> Now that it seems all’s been sorted out, how about some optimization? The range [-10 to 10] is so small (5-bit) that it comfortably fits in a byte (8-bit). So, rather than send those 2 small values as TSV, w/ lotsa extra separator characters, we can simply send 2 bytes only using Serial.write(): [https://www.Arduino.cc/reference/en/language/functions/communication/serial/write/](https://www.Arduino.cc/reference/en/language/functions/communication/serial/write/) We just need to create a char array of length = 2: signed char xy[2]; #define BAUDS 115200 #define DELAY 10 #define…

---

_[View the full topic](https://discourse.processing.org/t/visualizing-resultant-forces/12423)._
