Jacob Lashin's 4960 Project: Lab 1

Objectives


Materials


Blinking the Onboard LED

The purpose of blinking the LED was to show the Artemis board was setup properly and the LED works properly. Below is a video showing such.


Serial Monitor

The purpose of printing to the serial monitor was to ensure the serial port was working as expected. In the video below, I ran the provided code, and sent "hello world!" to the board and the board echoed it back to the serial monitor as expected.


Reading Temperature

By reading the temperature, I effectively showed that the ADC and analogRead were working. In the video below, I showed this by warming the chip up with my hand from 76°F to 92°F.


Testing the Microphone

In the video below, I ensured the microphone was working by playing a 5000Hz frequency and the serial monitor displayed a fairly accurate 4978Hz.


Recognizing a Whistle

The goal of this task was for the onboard LED to turn on when the microphone detected a whistle. I ran the testing microphone code to see what frequency my whistle was, and I determined it to be around 1900Hz. I simply modified this file by adding a few lines of code in the setup and loop bodies to achieve the desired functionality. Below is the pseudo-code and accompanying video.

            
            if (whistle heard) {
              turn on LED; }
            else {
              turn off LED; }