Serial (Asynchronous)

When we use the USB cable to listen or talk to our Arduino’s and microcontrollers we are using asynchronous serial. MOST of the time we leave out the asynchronous part of the label. There are synchronous versions of serial as well — we will address those elsewhere.

The following posts explore different aspects of asynchronous ( basic ) serial communication.

2in3out – 2out3in

https://vimeo.com/676798712 00:00 system overview01:15 circuit overview05:12 Arduino code09:00 p5js code10:25 p5 Serial Control11:25 in browser messages13:00 p5js send messages15:33 p5js listen21:46 limit to one send per color change

more...

First Serial Bridge — Pot to Dot

https://vimeo.com/676798964 00:00 intro 00:24 Arduino to p5js 02:05 Code sample overview 03:00 Arduino workspace in Atom 04:22 Circuit 05:05 Arduino code development 07:50 Test Arduino code 08:55 p5 serial control bridge 11:25 p5js code -- into browser 20:05 Port list...

more...

Mouse Brightness

https://vimeo.com/676799478 On screen mouse position is used to control the brightness of a physical LED. 00:00 intro 00:21 overview - slides 01:40 protocol — making sentences 09:40 scissors and glue Arduino libraries 10:20 over view of code samples 10:50 Arduino...

more...

Serial .write or .print

https://vimeo.com/676799681 00:00 intro 00:17 circuit 00:51 Arduino code 03:10 DEMO 04:30 int output 06:00 char output

more...

Serial Demo – 2024

In this tutorial we will look at a quick demonstration of a serial bridge between an esp32 and a p5js sketch. Because web browsers are sandboxed and do not generally permit direct serial messages (this is changing in 2024 --but...

more...

Simple Serial Input

https://vimeo.com/676799346 Get code from github. Time stamps are linked on Vimeo: 00:00 intro 03:54 - Serial.available() 10:54 look inside the buffer 16:20 control an LED

more...

Simple Serial with oLed Screens

One difficult challenge in working with serial is being able to debug (or see) the data that arrives at a microcontroller via serial. Serial connects are simple and powerful --but on the microcontroller side they can be VERY hard to...

more...