Lab 1 Part 1

Return home. Next lab.

ECE 4160

One and Two

I connected the Artemis to my computer and I was able to get it all working with the IDE. Following this, I was able to get the blink demo working, shown in the video below.

Three

In the same way I was able to just run the blink example, I was able to compile and run the serial example. In the screenshot below, it is clear that the Artemis is able to print output to the serial monitor.

images/Sami.jpg

Four

As with the previous examples, I was able to compile and run this one. Based on the video below, when I place my thumb on the chip package the temperature raises from around 77 to around 86. Shoutout to the faint Duolingo Korean in the background.

Five

Again, this last example was simply just compiling and running the code in the Arduino IDE. To demonstrate this code working, I whistled into the Artemis’s microphone to show that the loudest frequency changed significantly when I whistled. This is evident in the video below.

ECE 5160

One

For 5160 students, we had to try to combine the microphone code and the LED code to be able to turn the LED on when the microphone detects a certain frequency of an A note, which is around 440 Hz. I was able to achieve this by using the return value of the printLoudest(); function, which is the loudest frequency (in other words, the frequency that is predominantly being heard from the environment). If this value is within about 10 Hz on either side of 440 Hz (accounting for error), we can be fairly confident that we are hearing an A note and we can turn on the LED. Otherwise, we can turn off the LED. Below is a snippet of the code that did this.

// Check if the frequency matches A
uint32_t frequencyForChecking = printLoudest();
if( frequencyForChecking >=430 && frequencyForChecking < 449 ) {
  digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
}
else {
  digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
}

And to show this in action, here is a video of this being run on the Artemis.

Return home. Next lab.