Skip to the content.

Introduction

The purpose of Lab 1 was to install Arduino and start experimenting with the Artemis Nano's features by flashing four different code examples to the board. The first program is a hello world program of sorts, as it blinks the built-in LED on the board. The second program takes inputs into the serial monitor and echoes it back as the output. The third program reads the temperature sensor of the chip and prints it to the serial monitor. Finally, the fourth program listens to input into the built-in microphone, takes an FFT of it, and prints the frequency with the highest magnitude.

Demos

Program 1: Blink.ino

Program 2: Example4_Serial.ino

In this example, the board takes data from the Message field in the serial monitor as input and echoes it back as the output. Below is a screenshot of the serial monitor after I entered the following inputs: test, 1, 2, 2+3, clear, exit(), and okay!.

Image of serial monitor after Example4_Serial.ino demo

Program 3: Example2_AnalogRead.ino

The original code printed raw temperature data along with some voltage data, but I modified it slightly to print the temperature in °F (which was stored in a variable already but not used) to make it more comprehensible. As can be seen in the video, by holding my thumb over the processor, the temperature increased by a few degrees.

Program 4: Example1_MicrophoneOutput.ino

For this program, I played a 440Hz sine wave and took a screen recording of the Serial Monitor as the computer sound was listened to by the microphone.