Lab 1
Section 1-a: The Artemis board
- Installed Arduino IDE, and Added Sparkfun Apollo3 board support pack V1.1.2
- Initially, the compilation was taking a very long time but after excluding the folder C:\Program Files\Arduino from the antivirus scans, the compilation time reduced considerably
- Running “Example: Blink it Up”:
- Running “Example2_Serial”:
- Running “Example4_analogRead.”: Grabbed the entire board inside my hand to increase the temperature, and it took a considerate amount of time for the temperature to rise
- Running “Example1_MicrophoneOutput”:
- As shown below, the yellow LED is turned on when the battery is connected. To program the board so it turns on when someone whistles, I used the general structure from "Example1_MicrophoneOutput" (6), and I wrote in a few lines of code, as shown below, to read the file, acquire the sensor readings, and put it through a conditional statement with some chosen threshold (1200). This value was chosen by experimenting, in general with random noise the frequency is ~300 and the whistling jumps it up to ~1400, therefore, a value of 1200 provides a safe comparison to determine if the LED should turn on or not. Finally, to turn on the LED, the code from "Example: Blink it up" (3) was implemented.
Running code with the wire attached
Running code with only the battery attached