Course 2
Course 2
Arduino Uno
Arduino Uno ("Uno" means one in Italian) is an ATMEL microcontroller board based on the
ATmega328P (datasheet). It has 14 digital input/output pins (of which 6 can be used as PWM
outputs), 6 analog inputs, a 16 MHz ceramic resonator (CSTCE16M0V53-R0), a USB connection, a
power jack, an ICSP header and a reset button.
Tech specs
MICROCONTROLLER ATmega328P
OPERATING VOLTAGE 5V
by bootloader
SRAM 2 KB (ATmega328P)
EEPROM 1 KB (ATmega328P)
LED_BUILTIN 13
LENGTH 68.6 mm
WIDTH 53.4 mm
WEIGHT 25 g
Breadboard:
A Breadboard is a helpful tool to build circuits without any soldering. Certain contacts are connected with
each other. Therefore, it is possible to connect many cables with each other without soldering or screwing
them together. The image below shows in color, which contacts are connected.
Arduino IDE
Arduino IDE is a multi-platform (Mac, Windows and Linux) open-source software used to create, compile and
send programs (Sketch) to the Arduino Board. The IDE can be downloaded from the following address:
http://arduino.cc.
Button toolbar
Serial monitor
Code Editor
Debug Window
Button 1: verify (compile) Sketch for possible errors.
1. Declaration Section
This section used for declare variables, constants, Pin Numbers and to
include Libraries (C++ header files).
1. Setup Section
This function will only run once after each power up or reset of the
Arduino board.
1. Loop Section
First select the right Arduino board from the menu toolbar: Tools > Board > Arduino AVR Boards >
Arduino UNO, then select the right serial port as: Tools > Port > COMx. After that the code can be
uploaded using the upload button.
What is Proteus?
Proteus Design Suite (designed by Labcenter Electronics Ltd.) is a software tool set, mainly used for creating
schematics, simulating Electronics, Embedded Circuits, Microcontrollers, and designing PCB (Print Circuit
Board) Layouts.
About Proteus
1) It is a software suite containing schematic, simulation as well as PCB designing.
2) ISIS is the software used to draw schematics and simulate the circuits in real time. The simulation allows
human access during run time, thus providing real time simulation.
3) ARES is used for PCB designing. It has the feature of viewing output in 3D view of the designed PCB
along with components.
Proteus ISIS Interface
File/Project commands
Design tools
Main Mode
Editing commands
Overview Display commands
window
Gadget Mode
Editing
window
Object
selector
Graphic Mode
Animation panel
After installing Arduino libraries, open the Proteus software then click on to start a new project
a window form will shows up, select the name of the project then click on next > next > next > finish.
Now, to insert the circuit components click on P the pickdevice in the Object Selector area.
The following window will appears, then on the keywords field search for Arduino, select SIMULINO
UNO double click to add it to the Object Selector.
Using the same steps to add Resistor and LED Green components.
Using the mouse left click select the component from Object Selector list and add to the Editing
Window.
Click on then select the Ground from the Object Selector, left click on the Ground to add to
Editing window. Use the mouse to create connections (wires) between the components.
Click on the compile button to verify the code. Save the code into *.INO file, then on the Arduino
IDE navigate to Sketch > Export compiled Binary to extract the *.HEX that will be used for simulation
on the Proteus environment.
Go back to the Proteus Simulator, double click on the Arduino board then select the Program File
field and click on to select the extracted Arduino code *.Hex file. Then click on the ok Button.
To run the simulation click on in the animation panel.
Implementation part
Blink the Arduino Built-In LED
Connect the Arduino board through a USB cable to the computer. Then open the Arduino IDE,
navigate to File > Examples > Basics > Blink. Then use upload Button to send the code to the Arduino
Board.
Connect the Arduino board to the computer then open up the Arduino IDE, compile the code used
in the simulation then use the upload button to send it to Arduino.