
Dasar-dasar Arduino
➤
➤ Pemrograman Arduino
➤
➤
➤
➤
DASAR ARDUINO
π» Tab, Banyak File dan Kompilasi
π» Mengunggah
π» Perpustakaan
π» Perangkat Keras Pihak Ketiga
π» Serial Monitor
π» Dukungan Bahasa
π» Memasang Core Tambahan
π» Menginstal Perpustakaan Arduino Tambahan
π» Mengunggah
π» Perpustakaan
π» Perangkat Keras Pihak Ketiga
π» Serial Monitor
π» Dukungan Bahasa
π» Memasang Core Tambahan
π» Menginstal Perpustakaan Arduino Tambahan
MIKROKONTROLER
PROGRAMMING
➤ Fungsi
π»Digital I/O
⏬ digitalRead()
⏬ digitalWrite()
⏬ pinMode()
π» Analog I/O
⏬ analogRead()
⏬ analogReference()
⏬ analogWrite()
π» Zero, Due & MKR Family
⏬ analogReadResolution()
⏬ analogWriteResolution()
π» Advanced I/O
⏬ noTone()
⏬ Pulsein()
⏬ pulseInLong()
⏬ shiftIn()
⏬ shiftOut()
⏬ tone()
π» Time
⏬ delay()
⏬ delayMicroseconds()
⏬ micros()
⏬ milis()
π» Math
⏬ abs()
⏬ constrain()
π» Trigonometry
⏬ cos()
⏬ sin()
⏬ tan()
π» Character
⏬ isAlpha()
⏬ isAlphaNumeric()
⏬ isAscii()
⏬ isControl()
⏬ isDigit()
⏬ isGraph()
⏬ isHexadecimalDigit()
⏬ isLowerCase()
⏬ isPrintable()
⏬ isPunct()
⏬ isSpace
⏬ isUpperCase()
⏬ isWhitespace()
π» Random Numbers
⏬ random()
⏬ randomSeed()
π» Bits and Bytes
⏬ but()
⏬ bitClear()
⏬ bitRead()
⏬ bitSet()
⏬ bitWrite()
⏬ highByte()
⏬ lowByte()
π» External Interrupts
⏬ attachInterrupt()
⏬ detachInterrupt()
π» Interrupts
⏬ interrupts()
⏬ nointerrupts()
π» Communication
⏬ Serial
⏬ Stream
π» USB
⏬ Keyboard
⏬ Mouse
➤ Variabel
π» Constants
⏬ Floating Point Constants
⏬ Integer Constants
⏬ HIGH | LOW
⏬ INPUT | OUTPUT | INPUT_PULLUP
⏬ LED_BUILTIN
⏬ true | False
π» Conversion
⏬ byte()
⏬ char()
⏬ float()
⏬ int()
⏬ long()
⏬ word()
π» Data Types
⏬ String()
⏬ array
⏬ bool
⏬ boolean
⏬ byte
⏬ char
⏬ double
⏬ float
⏬ int
⏬ long
⏬ short
⏬ size_t
⏬ string
⏬ unsigned char
⏬ unsigned int
⏬ unsigned long
⏬ void
⏬ word
π» Variable Scope & Qualifiers
⏬ const
⏬ scope
⏬ static
⏬ volatile
π» Utilities
⏬ PROGMEM
⏬ sizeof()
π» STRUCTURE
⏬ Sketch
⏬ loop()
⏬ setup()
π» Control Structure
⏬ break
⏬ continue
⏬ do...while
⏬ else
⏬ for
⏬ goto
⏬ if
⏬ return
⏬ switch...case
⏬ while
π» Further Syntax
⏬ #define(define)
⏬ #include (include)
⏬ /* */ (block comment)
⏬ // (single line comment)
⏬ ; (semicolon)
⏬ {} (curly braces)
π» Arithmetic Operator
⏬ % (remainder)
⏬ = (multiplication)
⏬ + (addition)
⏬ - (subtraction)
⏬ / (division)
⏬ = (assignment operator)
π» Comparison Operator
⏬ != (not equal to)
⏬ < (less than)
⏬ <= (less than or equal to)
⏬ == (equal to)
⏬ > (greater than)
⏬ >= (greater than or equal to)
π» Boolean Operator
⏬ ! (logical not)
⏬ && (logical and)
⏬ || (logical or)
π» Pointer Access Operators
⏬ & (reference operator)
⏬ * (deference operator)
π» Bitwise Operator
⏬ & (bitwise and)
⏬ << (bitshift left)
⏬ >> (bitshift right)
⏬ ^ (bitwise xor)
⏬ | (bitwise or)
⏬ ~ (bitwise not)
π» Compound Operator
⏬ %= (compound remainder)
⏬ &= (compound bitwise and)
⏬ ++ (increment)
⏬ += (compound addition)
⏬ --(decrement)
⏬ -=(compound subtraction)
⏬ /= (compound division)
⏬ ^= (compound bitwise xor)
➤ Libraries
➤ Cores
➤ Vidor HLD basics
π»Digital I/O
⏬ digitalRead()
⏬ digitalWrite()
⏬ pinMode()
π» Analog I/O
⏬ analogRead()
⏬ analogReference()
⏬ analogWrite()
π» Zero, Due & MKR Family
⏬ analogReadResolution()
⏬ analogWriteResolution()
π» Advanced I/O
⏬ noTone()
⏬ Pulsein()
⏬ pulseInLong()
⏬ shiftIn()
⏬ shiftOut()
⏬ tone()
π» Time
⏬ delay()
⏬ delayMicroseconds()
⏬ micros()
⏬ milis()
π» Math
⏬ abs()
⏬ constrain()
π» Trigonometry
⏬ cos()
⏬ sin()
⏬ tan()
π» Character
⏬ isAlpha()
⏬ isAlphaNumeric()
⏬ isAscii()
⏬ isControl()
⏬ isDigit()
⏬ isGraph()
⏬ isHexadecimalDigit()
⏬ isLowerCase()
⏬ isPrintable()
⏬ isPunct()
⏬ isSpace
⏬ isUpperCase()
⏬ isWhitespace()
π» Random Numbers
⏬ random()
⏬ randomSeed()
π» Bits and Bytes
⏬ but()
⏬ bitClear()
⏬ bitRead()
⏬ bitSet()
⏬ bitWrite()
⏬ highByte()
⏬ lowByte()
π» External Interrupts
⏬ attachInterrupt()
⏬ detachInterrupt()
π» Interrupts
⏬ interrupts()
⏬ nointerrupts()
π» Communication
⏬ Serial
⏬ Stream
π» USB
⏬ Keyboard
⏬ Mouse
➤ Variabel
π» Constants
⏬ Floating Point Constants
⏬ Integer Constants
⏬ HIGH | LOW
⏬ INPUT | OUTPUT | INPUT_PULLUP
⏬ LED_BUILTIN
⏬ true | False
π» Conversion
⏬ byte()
⏬ char()
⏬ float()
⏬ int()
⏬ long()
⏬ word()
π» Data Types
⏬ String()
⏬ array
⏬ bool
⏬ boolean
⏬ byte
⏬ char
⏬ double
⏬ float
⏬ int
⏬ long
⏬ short
⏬ size_t
⏬ string
⏬ unsigned char
⏬ unsigned int
⏬ unsigned long
⏬ void
⏬ word
π» Variable Scope & Qualifiers
⏬ const
⏬ scope
⏬ static
⏬ volatile
π» Utilities
⏬ PROGMEM
⏬ sizeof()
π» STRUCTURE
⏬ Sketch
⏬ loop()
⏬ setup()
π» Control Structure
⏬ break
⏬ continue
⏬ do...while
⏬ else
⏬ for
⏬ goto
⏬ if
⏬ return
⏬ switch...case
⏬ while
π» Further Syntax
⏬ #define(define)
⏬ #include (include)
⏬ /* */ (block comment)
⏬ // (single line comment)
⏬ ; (semicolon)
⏬ {} (curly braces)
π» Arithmetic Operator
⏬ % (remainder)
⏬ = (multiplication)
⏬ + (addition)
⏬ - (subtraction)
⏬ / (division)
⏬ = (assignment operator)
π» Comparison Operator
⏬ != (not equal to)
⏬ < (less than)
⏬ <= (less than or equal to)
⏬ == (equal to)
⏬ > (greater than)
⏬ >= (greater than or equal to)
π» Boolean Operator
⏬ ! (logical not)
⏬ && (logical and)
⏬ || (logical or)
π» Pointer Access Operators
⏬ & (reference operator)
⏬ * (deference operator)
π» Bitwise Operator
⏬ & (bitwise and)
⏬ << (bitshift left)
⏬ >> (bitshift right)
⏬ ^ (bitwise xor)
⏬ | (bitwise or)
⏬ ~ (bitwise not)
π» Compound Operator
⏬ %= (compound remainder)
⏬ &= (compound bitwise and)
⏬ ++ (increment)
⏬ += (compound addition)
⏬ --(decrement)
⏬ -=(compound subtraction)
⏬ /= (compound division)
⏬ ^= (compound bitwise xor)
➤ Libraries
➤ Cores
➤ Vidor HLD basics
PANDUAN LAINNYA
TUTORIAL
Built-In Examples
1. Basics
⏬Analog Read Serial
⏬Bare Minimum
⏬Blink
⏬Digital Read Serial
⏬Fade
⏬Read Analog Voltage
2. Digital
⏬Blink Without Delay
⏬Button
⏬Debounce
⏬Digital Input Pullup
⏬State Change Detection
⏬Tone Keyboard
⏬Tone Melody
⏬one Multiple
⏬Tone Pitch Follower
3. Analog
⏬Analog In Out Serial
⏬Analog Input
⏬Analog Write Mega
⏬Calibration
⏬Fading
⏬Smoothing
4. Communication
⏬ASCIITable
⏬Dimmer
⏬Graph
⏬Midi
⏬Multi Serial Mega
⏬Physical Pixel
⏬Read ASCII String
⏬Serial Call Response
⏬Serial Call Response ASCII
⏬Serial Event
⏬Serial Passthrough
⏬Virtual Color Mixer:
5. Control Structures
⏬Arrays
⏬For Loop Iteration
⏬If Statement Conditional
⏬Switch Case
⏬Switch Case 2
⏬While Statement Conditional
6. Sensor
⏬ADXL3xx
⏬Knock
⏬Memsic2125
⏬Ping
7. Display
⏬Bar Graph
⏬RowColumnScanning
8. Strings
⏬Character Analysis
⏬String Addition Operator
⏬String Append Operator
⏬String Case Changes
⏬String Characters
⏬String Comparison Operators
⏬String Constructors
⏬String Index Of
⏬String Length & String Length Trim
⏬String Replace
⏬String Start With Ends With
⏬String Substring
⏬String To Int
9. USB
Keyboard
⏬Keyboard Logout
⏬Keyboard Message
⏬Keyboard Reprogram
⏬Keyboard Serial
⏬Keyboard Mouse Control
Mouse
⏬Button Mouse Control
⏬Joystick Mouse Contol
10. Starterkit & Basickit
11. Arduino ISP
1. Basics
⏬Analog Read Serial
⏬Bare Minimum
⏬Blink
⏬Digital Read Serial
⏬Fade
⏬Read Analog Voltage
2. Digital
⏬Blink Without Delay
⏬Button
⏬Debounce
⏬Digital Input Pullup
⏬State Change Detection
⏬Tone Keyboard
⏬Tone Melody
⏬one Multiple
⏬Tone Pitch Follower
3. Analog
⏬Analog In Out Serial
⏬Analog Input
⏬Analog Write Mega
⏬Calibration
⏬Fading
⏬Smoothing
4. Communication
⏬ASCIITable
⏬Dimmer
⏬Graph
⏬Midi
⏬Multi Serial Mega
⏬Physical Pixel
⏬Read ASCII String
⏬Serial Call Response
⏬Serial Call Response ASCII
⏬Serial Event
⏬Serial Passthrough
⏬Virtual Color Mixer:
5. Control Structures
⏬Arrays
⏬For Loop Iteration
⏬If Statement Conditional
⏬Switch Case
⏬Switch Case 2
⏬While Statement Conditional
6. Sensor
⏬ADXL3xx
⏬Knock
⏬Memsic2125
⏬Ping
7. Display
⏬Bar Graph
⏬RowColumnScanning
8. Strings
⏬Character Analysis
⏬String Addition Operator
⏬String Append Operator
⏬String Case Changes
⏬String Characters
⏬String Comparison Operators
⏬String Constructors
⏬String Index Of
⏬String Length & String Length Trim
⏬String Replace
⏬String Start With Ends With
⏬String Substring
⏬String To Int
9. USB
Keyboard
⏬Keyboard Logout
⏬Keyboard Message
⏬Keyboard Reprogram
⏬Keyboard Serial
⏬Keyboard Mouse Control
Mouse
⏬Button Mouse Control
⏬Joystick Mouse Contol
10. Starterkit & Basickit
11. Arduino ISP
GLOSSARY
REFERENSI
- [1] https://www.arduino.cc/en/Guide/Environment
- [2] https://www.arduino.cc/en/Guide/HomePage
- [3] https://www.arduino.cc/reference/en/
NB : ARTIKEL INI MERUPAKAN TRANSLATE DARI SITUS RESMI ARDUINO