Lab 1A¶
Objective¶
The goal of Lab 1A was to build familiarity with the Artemis redboard Nano and Arduino IDE. I was tasked with performing simple operations like toggling the onboard LED, reading/writing over serial, and utilizing the onboard analog temperature sensor and microphone.
Prelab¶
I began by installing Arduino IDE and adding the Sparkfun Apollo 3 to the board manager using the provided json link.
Tasks¶
Blink
Blink turns the onboard LED on and off.
Serial
Serial is used to test the functionality of the serial monitor by verifying the ability to print as well as receive user input.
analogRead
analogRead is responsible for displaying temperature measured by the on board analog temperature sensor, when I hold on to the board, there is an observable rise in temperature.
MicrophoneOutput Microphone output prints the loudest frequency to the serial monitor. When I whistle near the board there is an observable rise in the frequency being displayed.
Additonal tasks for 5000-level students¶
We were tasked with having the onboard LED turn on when the musical “C” note was being played. Because middle “C” is about 261Hz, I included an if statement in the MicrophoneOutput example that turns the LED on when the loudest frequency is at or around 261Hz.