You are on page 1of 9

Basics of Arduino

Presented by: Theja Ram Pingali, 2018

Faculté de génie | Faculty of Engineering


uOttawa.ca
2

Introduction to the Arduino

• What is Arduino?
– It’s a platform for geeks to build cool electro-
mechanical (Mechatronic) stuff
• UNO! The development board:
– Microcontroller
– Programmer
– Power supply
– Input output ports
– Communication ports

uOttawa.ca
• What is a microcontroller?

Lot more in a smaller


package:
– Analog input output
ports
– Digital input output
ports

Note: The Arduino does not have an inbuilt Hard Drive,


but instead has three flash memory allocations to store
all programs and necessary variables. The above picture
is used only as a reference.

uOttawa.ca
The Arduino UNO

uOttawa.ca
Safety Precautions

• Before you power the Arduino


– Make sure VCC and GND are not shorting
(connected)
– Make sure all connections are secure
– If using LEDs, make sure to use a current limiting
resistor in series so as to not burn your LED and/or
the Arduino
– Do not connect mechanical actuators (motors)
directly to an Arduino port
• Exception: Servo motor
– Double check the polarities of all connections

uOttawa.ca
Installing the IDE

• Download the Arduino IDE (Integrated Development


Environment) from the Arduino webpage.
– Works on most OS(s) (Windows, MAC, Linux, etc.)
• Installing Drivers:
– Plug in your Arduino using the provided USB
– On Windows: Go to device manager -> right click on
‘Unknown Device’ (if any) -> Update Driver Software

uOttawa.ca
Getting Started – Blink!

• Check if Arduino UNO is selected and connected to the


correct COM Port
– Tools -> Board -> Arduino/Genuino Uno
– Tools -> Port -> select the available COM port

• Launch the Arduino -> File -> Examples -> Basics ->
Blink

uOttawa.ca
Blink! Run

Compile

uOttawa.ca
Resources

• Installing the Arduino IDE:


– https://learn.sparkfun.com/tutorials/installing-
arduino-ide
• The absolute beginners guide:
– http://forefront.io/a/beginners-guide-to-arduino/
• Foundation of Arduino
– https://www.arduino.cc/en/Tutorial/Foundations
• Arduino programming language reference:
– https://www.arduino.cc/reference/en/

uOttawa.ca

You might also like