0% found this document useful (0 votes)
11 views2 pages

CMPE3815 Lab0 Orientation

Lab assignment for arduino programming class at University of Vermont Electrical Engineering Dept.

Uploaded by

ajbarsic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

CMPE3815 Lab0 Orientation

Lab assignment for arduino programming class at University of Vermont Electrical Engineering Dept.

Uploaded by

ajbarsic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Lab Exercise 0: Orientation

Instructor: Dr. Barsic


University of Vermont, Department of Electrical Engineering
CMPE 3815: Microcontroller Systems

Student Info  Where can I set my coffee in lab?


Include this info in your write-up (no write-up for this
week, but always include this in future reports).
 Your Name
 Lab Partner Task 1. Assemble your hardware kit

Exchange contact info with your lab partner so you can  Collect the items in for your kit (see the
make plans to meet outside of class, and/or to let them checklist above)
know if you are running late to lab, etc.  Label your kit with your name

Abstract
In this lab, we will gather our hardware kits and
Task 2. Install the Arduino IDE and upload
prepare our software. We will upload an example an example sketch to your board
“sketch” to our boards, and also run that code in an
online simulator.  Download the arduino IDE (integrated
development environment). This is the
A. Necessary Elements software that will allow you to upload code
and interact with your microcontroller.
◦ Go to www.arduino.cc/en/software and
A.1. Hardware List download the package for your operating
system.
The required hardware components are:
 Download the example sketch
 Box
“test_sketch_blinky.ino” from brightspace.
 Arduino board
Save it to a folder with the same name,
 3D-printed base
“test_sketch_blinky”.
 USB cable for programming/communication
 Upload that sketch onto your board
 9V battery and 9V-to-barrel-jack cable
◦ Open the sketch in the Arduino IDE
 Breadboard (half size)
◦ Select the board, “tools > board > Arduino
 Wiring kit
AVR boards > Arduino Uno”
 Baggie of resistors
◦ Select the port, “tools > port > [the port
 Baggie of LEDs, buttons, and pots
name]”. Your port name will be
These components are all in your kit.
something like /dev/ttyUSB0.
▪ To figure it out, unplug your arduino
A.2. Noteworthy functions and look at the list of ports. Then,
plug in your arduino and look at the
You will make use of the following functions or list again. The new one is the port
programming techniques/approaches: name for your board. You can double
 pinMode check by going to “tools > get board
 digitalWrite
info”. A dialog box should come up
 delay
with board info.
Task 0. Lab Safety and Rules
Were you able to successfully install the IDE and
Answer these questions: upload code to your board? What does this sketch do?
 Where is the fire extinguisher? Briefly summarize any issues or difficulties you had.

1/2
Task 3. Practice with an online simulator Task 4. Bonus Task [optional]
Wokwi is a free online arduino simulator. You can Without changing the software, wire up an LED
write/debug code and also build prototype circuits. This (with a series current-limiting resistor) that will turn on
is a useful tool for code development, and also for at the same time as the on-board LED. Consult the
making circuit diagrams. Arduino Language Reference to see which pin is shared
Go to wokwi.com. Click on “Arduino”, scroll with the built-in LED. https://docs.arduino.cc/language-
down to “start from scratch,” and select “Arduino reference/en/variables/constants/ledbuiltin/
Uno.” Paste the code from “test_sketch_blinky.ino” and Next [again without changing the software], come
hit the green arrow button to start simulating it. up with a second circuit (LED and resistor) that is the
inverse of the other LED. In other words, we want this
Were you able to successfully simulate the code in LED to be ON when the other LED is OFF, and vice
Wokwi? Record any issues or interesting observations. versa.

You are welcome to do this task either with


hardware or in Wokwi.

2/2

You might also like