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
- 1 x SparkFun RedBoard Artemis Nano
- 1 x USB C-to-C or A-to-C cable
Prelab
Check out the Artemis description, features, and helpful forums here:
- SparkFun RedBoard Artemis Nano. Note that this is a 3V board, NOT 5V, but 3V. Please. Remember. 3V. Inputs. Only.
- Setup instructions
- Artemis forums
Instructions
- 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.
- Hook the Artemis board up to your computer, and follow the instructions from the second link above (“Introduction” and “Arduino Installation”).
- Note that the USB cable needs to be pushed in farther than you would expect, because of the way the data pins connect.
- 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.
- From the setup instructions linked above, follow the instructions in “Example: Blink it Up”
- Record a brief video, documenting that it works.
Note: you may need to slow the baud rate down for it to work.
- In File->Examples->Artemis Examples, run Example2_Serial.
- 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.
- In File->Examples->Artemis Examples, run Example4_analogRead.
- Try blowing on or touching the chip to change its temperature. It may take a while to transfer your heat.
- In File->Examples->PDM, run Example1_MicrophoneOutput.
- Try whistling or speaking to change the highest frequency.
Additional tasks for students in ECE 5960
- 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.