0% found this document useful (0 votes)
53 views

EEE 202 Arduino Tutorial

arduino tutorial for lab 4

Uploaded by

ashyam3
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)
53 views

EEE 202 Arduino Tutorial

arduino tutorial for lab 4

Uploaded by

ashyam3
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/ 8

EEE 202 Arduino Introduction

Composed by UGTA, Dylan Bluth


What is Arduino?

● Power goes into the barrel jack

● Download code (and power) through usb port

* Don’t power through the barrel jack and USB at the same time*

● Line up circuit with corresponding pins


Arduino

● The six squares at the top from left to


right are verify, upload, new, open,
save, serial monitor

● The area below has the sketch name,


the coding area, and the message area
Set Up
Coding

● void setup() - every


arduino function has this.
It sets the initial state of
the system
● void loop() - Also
necessary for every
sketch. Runs after the
setup and is the main logic
for the circuit
Coding

● void flash() - makes flash() become an


action. Have to put in what the
function flash will output within this
● flash()- self made action. Takes an
input and gives a customized output
● digitalWrite(led, _) - Gives a pin a
specific voltage, high or low
● delay() - pauses the program for a
specified time
Coding

● pinMode(pin#, _) - specifies which pins act as inputs and which act as outputs
● int - associates an integer value with a variable name
● unsigned long - sets a variable and stores 32 bits
● Serial.begin() - how quickly information is stored in bits/s. (data rate)
● if{ else{ }} - sets conditions where if they are fulfilled runs the code between if and else and if not
after else
● Serial.print() - prints data to serial port
Coding

● lcd. - references the lcd screen used with the arduino


● LiquidCrystal - is a arduino library that is downloaded. Assigns the display variables
● begin - sets the size of the lcd screen. Slots for characters (line, column)
● print - sends the text to display
● Clear - clears the lcd screen
● setCursor - chooses the position on the lcd screen (line, column)

You might also like