<aside> 💡 Continue Working on the Mid-Term Project [Detail on Week 6 Blog Page!]

</aside>

Asynchronous Serial Communication: The Basics

Serial communication - Most common forms of communication between computers. These notes explain the basics of getting two computers talking to each other using Asynchronous Serial communication.

What Do the Serial Voltage Changes Mean?

Both devices also have to agree on the order of the bits. Usually the sender sends the highest bit (or most significant bit) first in time, and the lowest (or least significant bit) last in time.

For the data transmission above, a high voltage indicates a bit value of 1, and a low voltage indicates a voltage of 0. This is known as true logic. Some serial protocols use inverted logic, meaning that a high voltage indicates a logic 0, and a low voltage indicates a logic 1.

Serial Buffers and Control of the Port

Serial Buffer - have an area in memory where they store incoming data from the serial ports.

Serial ports can only be controlled by one program at a time.

//—————————————————————————————————————————————-

Lab: Serial IMU Output to p5.js Using p5.webserial

Interpreting Serial Data

Serial communication protocols define the structure of communication between devices. These notes explain how serial data is interpreted by computers

ASCII and Binary

**Serial.write() command -**Every value you send can range from 0 to 255, the full range that can fit in a byte.  A protocol like this is often called a binary protocol, because there’s no other meaning to each byte’s value other than the value of the number itself.

ASCII code = American Standard Code for Information Interchange.

Labs:

Asynchronous Serial Communications.

Asynchronous Serial Communications.

Asynchronous Serial Communications

Asynchronous Serial Communications