Prep 6: Week 6 Prep

Arduino-Java Communication

Last week we focused on sending data from the PC to the Arduino. This week we’re flipping that around: we’ll be sending data from the Arduino to the PC. We will also introduce protocols, which provide a consistent form of communication between the Arduino and the PC (actually, between any two processors).

We will again be using the Java Simple Serial Connector (jSSC) library for serial communications. A local copy of the JavaDoc for the library can be found here.


Read Chapter 12 in the course text.

Note, this chapter is only in draft form, meaning there is lots of information that is helpful to you in completing this week’s activities, but don’t consider it complete by any means.

Data Representation, Protocols, and Observability

Video Description
Data Elements It is important to understand how data is represented on the Arduino side and the Java side, so this video offers a comparison.
Protocol Design You’re now ready to think about designing and implementing protocols to ensure consistent communications from the arduino to Java.
Observability How do we know that our protocol is working as intended? Let’s watch it in action!