ECE4960-2022

Course on "Fast Robots", offered Spring 2022 in the ECE dept at Cornell University

This project is maintained by CEI-lab

Cornell University: ECE 4960/5960

Return to main page

Lab 1: The Artemis board

Objective

The purpose of this lab is for you to setup and become familiar with the Arduino IDE and the Artemis board. After this lab, you should be able to program your board, blink the LED, read/write serial messages over USB, display the output from the onboard temperature sensor, and measure the loudest frequency recorded by the Pulse Density Microphone.

Parts Required

Prelab

Check out the Artemis description, features, and helpful forums here:

  1. SparkFun RedBoard Artemis Nano. Note that this is a 3V board, NOT 5V, but 3V. Please. Remember. 3V. Inputs. Only.
  2. Setup instructions
  3. Artemis forums

Instructions

  1. Download and install the Arduino IDE.

    Update 25 Jan, 2022: Use the latest versions of ArduinoIDE and Sparkfun Appollo3 support software. Update them if necessary. If you have any issues, please contact the TA team.

  2. Hook the Artemis board up to your computer, and follow the instructions from the second link above (“Introduction” and “Arduino Installation”).
    1. Note that the USB cable needs to be pushed in farther than you would expect, because of the way the data pins connect.
    2. If you are running Windows and the first compilation takes a long time, try adding “C:\Program Files\Arduino” (or the particular project folder) to the antivirus exclusions.
  3. From the setup instructions linked above, follow the instructions in “Example: Blink it Up”
    1. Record a brief video, documenting that it works. Note: you may need to slow the baud rate down for it to work.
  4. In File->Examples->Artemis Examples, run Example2_Serial.
    1. Record a brief video documenting that your Serial port works. Note: to view the output and provide input open the serial monitor in the upper right hand corner of the script window.
  5. In File->Examples->Artemis Examples, run Example4_analogRead.
    1. Try blowing on or touching the chip to change its temperature. It may take a while to transfer your heat.
  6. In File->Examples->PDM, run Example1_MicrophoneOutput.
    1. Try whistling or speaking to change the highest frequency.

Additional tasks for students in ECE 5960

  1. Program the board to turn on the LED when you whistle, and off otherwise.

Write-up

To demonstrate that you’ve successfully completed the lab, please upload a brief lab report (<600 words), with pseudo-code/code snippets (not included in the word count), photos, and/or videos documenting all steps work and what you did to make it happen.