Teensy 4.0 + WiFi

Description

The Adafruit Huzzah ESP8266 sets up a local wifi. A mobile phone or computer can connect to the wifi (password1).

Ever so often the Teensy constructs a message string. The message starts with $MSG, then includes readings, then a * and checksum.

The Teensy sends the message via Serial (115200 bps) to the Adafruit Huzzah ESP8266. The ESP8266 checks if the checksum is valid.

The Adafruit Huzzah ESP8266 updates its webpage 192.168.4.1/data.csv with the new data. This could be read by other applications.

The User on the mobile enters 192.168.4.1 (once) and the ESP8266 will send a HTML webpage. (shown below)

The brower shows a HTML table and runs a javascript script function every second.

The javascript loads data.csv and if the checksum is valid will update the table.

The User sees a table that updates every second with new data. Data transmissions with errors are ignored.

Photo/Video

Webpage HTML

Script on ESP8266

Script on Teensy 4.0