Firmware is a specific class of software that provides low-level control for a device’s specific hardware.
The firmware of Nayad works as the complete operating system of the device, performing all control, monitoring and data manipulation functions.
Once Nayad is programmed, the firmware will be kept in non-volatile memory devices such as Flash memory or EEPROM. Firmware upgrade requires the EEPROM or flash memory to be reprogrammed.
Get pH firmware Get DO firmware
Nayad firmware has two main basic functions, setup
and loop
, and extra functions for its customization:
This function is usually called at the beginning of the sketch and is used to initialize variables, pin modes, etc. It runs only once after each boot or when Nayad is restarted.
void setup() {
Serial.begin(115200);
}
After the setup
function is done, the loop function runs continuously.
void loop() {
}
Using additional functions is a way to make writing code easier. In Nayad we use the following functions:
Details of using these functions specifically in this experiment are found in Program Details