The purpose of Lab 1A is to set up and become familiar with the Arduino IDE and the Artemis board. This lab taught the following skills:
Programming the Artemis board
Using the onboard LED
Reading and writing serial messages over USB
Utilizing the onboard temperature sensor
Using the Microphone
Prelab Requirements
Before attending the lab, I completed the following steps:
Installed the latest version of the Arduino IDE
Added the SparkFun Apollo3 board manager to Arduino
Experimental Procedure
1. Setting Up the Artemis Board
I connected the Artemis Board to my computer and selected the correct Board and Port in the Arduino IDE.
Common Connection Issues and Fixes:
My Windows computer had to use the USB-C port in order for the board to read.
Needed to switch from the SVL bootloader to the Ambiq bootloader while troubleshooting with the TAs.
2. Running Basic Arduino Examples
First, I tested the LED Blink program:
The light blinks on and off each second. I adjusted the Baud rate to 9600 to prevent my computer from crashing.
Next, I tested serial communication:
Provided input to the serial monitor and observed the output. This feature is important for future debugging and communicating with the microcontroller. In the video, I sent 'test' and the serial monitor displayed 'test'.
Then, I tested the temperature sensor:
Held the chip between my fingers to observe temperature changes. The reading changed from being in the 70s to the 80s, showing that the temp sensor is working.
Finally, I tested the microphone:
Hummed next to the microphone to observe frequency variations. The sensor reading stabilized at 251 Hz.
Discussion
This lab helped familiarize me with the microcontroller's capabilities and the arduino platform. I'm looking forward applying the functions of the microcontroller in different ways later on in this course.