The goal of our first lab was to set up and become familiar with the Arduino IDE and the Artemis board.
Through running some example programs on the board, we practiced programming the board, using the board LED, reading/writing
serial messages over USB, and using the onboard temperature sensor and Pulse Density Microphone.
In this first example, the onboard LED is programmed to blink on and off at a regular interval.
Next, I test the UART serial communication of the board. The board first sends a message to my laptop, and then I type "quack!" into the serial monitor. The board echos my input, validating its ability to read and write to the serial port.
I then test the temperature sensor on the board by exposing it to cold and warm temperatures.
The room temperature reading is close to 32300. When I put the board in the freezer, the temperature reading decreases
gradually to 31400. Then, when my classmate Zin places her hand on the board to warm it, the temperature reading increases to 33000.
Lastly, I use the board's microphone and FFT function to detect the maximum amplitude frequency input. When the board picks up the 666Hz frequency
I am generating, it calculates the frequency of the input waveform using Fourier transform and outputs a reading of 675Hz.