Microprocessor Code

Pseudocode

The following pseudocode was generated in the design process for the embedded controller software routine. The code was split, following Arduino programming practice, into a start-up and loop routine.

The startup routine initializes the Arduino I/O as well as heats the reservoirs to the appropriate temperatures using an on-off control scheme.

Arduino start-up routine pseudocode

The loop code is designed to run infinitely on the Arduino Uno. This is also the location of both the Digital Logic Controller, the Temperature Controller, and the automatic safety shut-off logic.

Arduino loop pseudocode

This code served as a basic outline for the development of the Arduino code later developed and tested on the board itself. Although the code has seen many changes, the core operating principles remain the same.

Arduino Code Features

While device construction is delayed by TCNJ’s COVID-19 Policies (see https://emergency.tcnj.edu/covid-19/ ) the documentation of the design project is being refined. Please check back in a few days.

Updated 4/1/2020


Complete Arduino Code Available on Github