Introduction

What is Arduino Starter Kit?

The Arduino Starter Kit is a tool specially designed for beginners. It will lead you into the fascinating world in which you will experience the power of electronic technology. No soldering work is required in all experiments. Users just need take advantage of the bread board offered, and this significantly boosts the learning process. Additionally, ten experiment courses are provided in this manual. These ten courses are sorted according to their difficulties and complexities. By reading the explanations, sample connections and sample codes, users can get a better understanding of Arduino. Each experiment also leaves much space for users to utilize their creativity and imagination to expand the experiment. To sum up, the Arduino Starter Kit is an efficient tool for starters to learn Arduino.

What is Arduino ?

Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments. Arduino can sense the environment by receiving input from a variety of sensors and can affect its surroundings by controlling lights, motors, and other actuators. Users can take advantage of the LEDs, buzzer, press button, photo resistor, and other components provided in the starter kit on Arduino platform.

Arduino's Feature

  1. Open-source circuit design, free download
  2. Easy to download softwares
  3. Easy to be connected to sensors and different electronic components(Such as: LED, buzzer, press button, photo resistor, etc)
  4. High-speed microprocessor (ATMEGA328)
  5. Simple developing environment and easy to start

Performance Description

  1. Digital Input/Output 0 ~13
  2. Analog Input/Output 0 ~13
  3. Support ISP download
  4. Input voltage :USB power supply, or 5V ~ 9V DC power supply
  5. Output voltage: 5V / 3.3V DC
  6. High-speed Atmel Atmega328 microprocessor
  7. Size : width 70mm × height 54mm

Arduino C programming language The Arduino programming language is based on C/C++. However, starters are only required to have some basic knowledge of C. The Arduino C simplifies the parameters so that users do not need to learn the basic layer of AVR microprocessor. The following are some simple Arduino C language.

Key word:

  1. If
  2. If....Else
  3. For
  4. Switch Case
  5. while
  6. do....while
  7. break
  8. continue
  9. return
  10. goto

Syntax:

  1. ; (semiconlon)
  2. {} (curly braces)
  3. // (single line comment)
  4. /**/ (multi-line comment)
  5. #define
  6. #include

Arismetic Operators:

  1. = (assignment operator)
  2. + (addition)
  3. - (subtraction)
  4. * (multiplication)
  5. / (division)
  6. % (modulo)

Comparison Operators:

  1. == (equal to)
  2. != (not equal to)
  3. < (less than)
  4. > (greater than)
  5. <= (less than or equal to)
  6. >= (greater than or equal to)

Boolean Operators:

  1. && (and)
  2. || (or)
  3. ! (not)

Compund Operators:

  1. ++ (increment)
  2. -- (decrement)
  3. += (compound addition)
  4. -= (compound subtraction)
  5. *= (compound multiplication)
  6. /= (compound division)

Data Type:

  1. void
  2. boolean
  3. char
  4. unsigned char
  5. byte
  6. int
  7. unsigned int
  8. word
  9. long
  10. unsigned long
  11. float
  12. double
  13. string
  14. array

Constants:

  1. HIGH | LOW ( Digital I/O level, HIGH for 1, LOW for 0)
  2. INPUT | OUTPUT (Digital I/O direction)
  3. true | false (true for 1, false for 0)

Above are the basic key word and syntax for Arduino C language. After some reading, users are supposed to be qualified for the simple programming on Arduino platform. Structure:

  1. void setup() (Initialize variables, Digital I/O, libraries, etc)
  2. void loop() (execute loop)

Digital I/O:

  1. pinMode(pin, mode) (Digital I/O input/output mode define function. pin:0 ~ 13, mode : INPUT, OUTPUT)
  2. digitalWrite(pin, value) (Digital I/O output value define function. pin: 0 ~ 13, value: HIGH or LOW)
  3. int digitalRead(pin) (Digital I/O input read function. pin: 0 ~ 13)

Analog I/O:

  1. int analogRead(pin) (Analog I/O input read function. pin: 0 ~ 5, 0 ~ 1023 stands for 0 ~ 5V)
  2. analogWrite(pin, value) - PWM

Time:

  1. delay(ms) (delay function, unit: ms)
  2. delayMicroseconds(us) (delay functions, unit: us)

Math:

  1. min(x, y) (return minimum value of x and y)
  2. max(x, y) (return maximum value of x and y)
  3. abs(x) (return absolute value of x)
  4. constrain(x, a, b) (return only if x is between lower bound a and upper bound b)
  5. map(value, fromLow, fromHigh, toLow, toHigh) (return only if value is between fromLow to fromHigh, or toLow to toHigh)
  6. pow(base, exponent) (return the exponent of base)
  7. sqrt(x) (return square root of x)

Component List

  1. Arduino 328 × 1