Professional Documents
Culture Documents
Slide Bengkel RBT DAY 2
Slide Bengkel RBT DAY 2
1. Variables
As the foundation of any computer programming
language, variables act as “containers” that “hold”
information. These containers then store this information for
later use.
2. Data Structure
Data Structures are a specialized means of organizing and
storing data in computers in such a way that we can perform
operations on the stored data more efficiently.
3. Control Structure
A control structure analyzes variables and selects a direction in
which to go determined from the given parameters. For example,
when a computer program is running, the code is being read by the
computer line by line from top to bottom and (for the most
part) left to right.
4. Syntax
Just like in the English language, computer programming follows
a syntax or a set of rules that define particular layouts of letters
and symbols. Proper syntax ensures the computer reads and
interprets code accurately.
5. Tools
In the physical world, tools allow workers to perform tasks that
would otherwise be extremely difficult (think of how a hammer
helps drive a nail into a piece of wood and what this job would be
like without tools). Similarly, a tool in computer programming is a
piece of software that helps programmers write code much faster.
Overview of Embedded System
• Processor & ASICs: Processors assess the data to measure the output and store
it to the memory.
• Actuator: An actuator compares the output given by the D-A Converter to the
actual output stored and stores the approved output.
Example of Embedded System
• Digital Watches
• Electronic Calculator
What is Arduino?
• Arduino is an open-source electronics platform based on easy-to-use hardware and
software.
• You can tell your board what to do by sending a set of instructions to the microcontroller
on the board.
3 Things About Arduino
1) Arduino Hardware
• Physical component of Arduino which are Arduino
Boards
• It is printed circuit board and it is got some electronic
components on it
• There are many type of Arduino Boards such as
Arduino Nano, Uno and Mega
• There all have microcontroller on them
• The microcontroller is what enables us to read those
different Inputs, and control those different Outputs
3 Things About Arduino
2) Arduino Software
• Arduino IDE (Integrated Development Environment)
• Software Application downloaded onto your
computer and then use it to program the Arduino
boards
• Free software
• Arduino IDE is where you write your code before
upload into the Arduino boards
3 Things About Arduino
3) Arduino Code
• The code that you write inside the Arduino IDE is
ultimately what gets loaded onto the
microcontroller that’s on these Arduino boards.
• The Arduino code that you write is called a sketch.
• Arduino code itself is basically a derivative of the C
and C++ programming languages, but with some
Arduino-specific functions and structure.
Arduino Uno Board Pinout
Arduino Uno
Pin Category
Installing
Arduino IDE
•STEP 1: Download Arduino
IDE Software
•STEP 5: Know the Function of each Symbol in the Arduino IDE Toolbar
7 segment Code
Project 1 Schematic
Project 1(Sketch1):
Digital Output-LED
ON without Variable
•This sketch will light up LED
connected to Digital Pin 13
continuously without using
variable
Project 1(Sketch2):
Digital Output-LED
ON with Variable
•This sketch will light up LED
connected to Digital Pin 13
continuously by using variable
Project 1(Sketch3):
Digital Output-LED
OFF with Variable
•This sketch will turn OFF the
LED connected to Digital Pin 13
continuously by using variable
Project 1(Sketch4):
LED Blinking With
Time Delay
•This sketch Turns an LED ON
for one second, then OFF for
one second, repeatedly.
Project 2(Sketch5): Digital Output + Digital Input
•LED blinking with push button (Pull Down Connection)