Skip to the content.

Lab 1

The first part of this lab consisted of uploading the blink example code to the Artemis Nano and observing the behavior. Below is a video demonstrating that this was completed successfully. This example code set the onboard LED as an output in the setup loop. It then repeatedly set the LED high, waited, set the LED low, waited, and then set the LED high again starting the sequence over and causing the LED to blink repeatedly.

Part 2: Serial

The next part of this lab again consisted of uploading example code to the Artemis Nano. This time we uploaded the serial example and demonstrated data being sent to and from the Artemis Nano over the cable. This was analyzed on the serial monitor provided by the Arduino IDE. A video of this is shown below. When something is typed into the terminal and sent to the Artemis Nano, it echoes it back.

Part 3: Temperature Sensor

The next part of the lab consisted of uploading the analog read example code to the Artemis Nano. In this example, the Artemis Nano reported on data that it captured from its onboard temperature sensor. This was then displayed in the serial monitor.

Part 4: Loudest Frequency

For this part of the lab I uploaded example code. This code used the pulse density microphone on the Artemis board to print out values representing the loudest frequency present in real-time. It utilized an FFT to accomplish this. In the example below, I whistle towards the board and the values, which are being printed on the serial monitor, change significantly.

In this part of the lab, I was tasked with lighting up the onboard LED when I whistled at the Artemis and turning it off otherwise. I did this by modifying the “loudest frequency” example code. I first set the onboard LED to an output in the setup loop. I then looked at the serial monitor during the loudest frequency example. I saw that when I was not whistling, the loudest frequency value was consistenly below 1500. However, when I whistled the values jumped above 1500. Because of this I thought that this would be an appropriate threshold value to determine whehter or not I was whistling. I then set the LED based on how the loudest frequency value compared to this threshold value. The pseudo code is as follows:

if loudestFrequency>1500:
  turn the LED on
else:
  turn the LED off