Arduino Beginner - Lesson 1 - V2
Arduino Beginner - Lesson 1 - V2
Lesson 1
Introduction of Arduino
Arduino Fundamental I
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 1
Learning Outcome
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 2
Introduction
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 3
What is Arduino?
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 4
What is Arduino?
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 5
What is Arduino?
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 6
What Arduino can do?
Biped Robot: A bipedal robot is a two-legged robot
that can walk and perform human-like movements.
Arduino can be used to control the movement of
the robot's legs, process sensor data for balance
and navigation, and implement various walking
gaits. Sensors such as accelerometers,
gyroscopes, and ultrasonic distance sensors can
be used for balance and obstacle avoidance. Servo
motors or stepper motors are commonly used to
actuate the joints of the legs.
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 7
What Arduino can do?
Drone: Drones, or quadcopters, are flying vehicles
that can be remotely controlled. Arduino can be
used to control the flight dynamics, motor speed,
and stabilization of the drone. Flight control
algorithms can be implemented to keep the drone
stable and responsive to pilot inputs. Gyroscopes,
accelerometers, barometric pressure sensors, and
GPS modules can provide data for accurate flight
control. Additionally, Arduino can be used for
communication with the remote controller or to
implement autonomous flight modes.
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 8
What Arduino can do?
Spider Robot: A spider robot mimics the
movement of a spider, typically using multiple legs
to navigate. Arduino can control the leg
movements, walk patterns, and turning motions.
Servo motors are commonly used for joint
actuation, and the Arduino can implement complex
algorithms to create realistic spider-like movement.
Sensors like infrared or ultrasonic sensors can be
used for obstacle detection and navigation.
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 9
What Arduino can do?
Robot Arm: A robot arm is a mechanical structure
with multiple joints and links that can perform
precise movements. Arduino can be used to control
the angles of the robot arm's joints, allowing it to
pick up and manipulate objects. Servo motors or
stepper motors can be used to actuate each joint.
Arduino can also be integrated with sensors, such
as force sensors or encoders, to provide feedback
on the arm's position and interactions with objects.
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 10
What Arduino can do?
Robot Car: A robot car is a wheeled vehicle that
can be remotely controlled or programmed to
navigate autonomously. Arduino can control the
movement of the car's wheels, implement obstacle
avoidance algorithms using sensors like ultrasonic
or infrared sensors, and enable communication with
a remote controller or a smartphone app. In more
advanced setups, Arduino can be integrated with
cameras and computer vision algorithms for
features like lane following or object detection.
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 11
Type of Arduino Board
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 12
Arduino Uno
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 13
Breadboard
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 14
Jumper Wires
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 15
LED
Cannot directly connect an LED to a battery or voltage source.
Firstly, because the LED has a positive and a negative lead
and will not light if they are the wrong way around and
secondly, an LED must be used with a resistor to limit the
amount of current flowing through the LED - otherwise the
LED could burn out!
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 16
Resistors
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 17
How do we program Arduino?
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 18
Arduino IDE
https://www.arduino.cc/en/software
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 19
Arduino IDE
Verify
(To make sure coding
has compiled correctly)
Upload
(To upload the program
into your Arduino board)
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 20
Arduino IDE
Choose
Arduino Uno
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 21
Upload to test
1. Choose Board
2. Choose correct
COM Port
3. Click Verify
4. Click Upload
5. Check the terminal
output
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 22
Project Sample
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 23
Project: Control a LED on and off
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 24
Project: Control a LED on and off
// command
This is comment to describe your code, will not
be executed
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 25
Project: Control a LED on and off
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 26
CHALLENGE
for : Lesson 1
STEM | IR4.0 | Robotics Copyright 2023 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 27
L1 – Challenge 1
Program below action:
1st led on , 2nd led off
(Repeating)
STEM | IR4.0 | Robotics Copyright 2023 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 28
L1 – Challenge 2
Program below:
STEM | IR4.0 | Robotics Copyright 2023 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 29
L1 – Challenge 3
STEM | IR4.0 | Robotics Copyright 2023 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 30
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 31
STEM | IR4.0 | Robotics Copyright 2024 © Advanced Superlogic Sdn Bhd. All right reserved. Arduino Lesson 32