Lab 1

Section 1-a: The Artemis board

  1. Installed Arduino IDE, and Added Sparkfun Apollo3 board support pack V1.1.2
  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
  3. Running “Example: Blink it Up”:
  4. Running “Example2_Serial”:
  5. 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
  6. Running “Example1_MicrophoneOutput”:
  7. 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.


  8. Added Snipet of Code



    Running code with the wire attached


    Running code with only the battery attached