Professional Documents
Culture Documents
STUDENT KIT
ENGINEERING
LAB MODULETM
UNIVERSITI TEKNOLOGI MARA
LAB: ARDUINO
Chair: Date:
Signature:
INTRODUCTION\
Arduino is an open-source electronics platform comprising both hardware and software
components. The system includes a physical programmable circuit board, often referred to as
a microcontroller, and an Integrated Development Environment (IDE) software that runs on a
computer. This software is used for writing and uploading code to the board. The term
"Arduino" encompasses three aspects: physical hardware, a programming environment, and a
community and philosophy.
The Arduino IDE provides a text editor for writing and editing Arduino code. Users write
their programs in a language similar to C++, but with simplifications and additional libraries
tailored for working with Arduino hardware.
Arduino hardware and software were designed with the aim of catering to artists, designers,
hackers, and anyone interested in creating interactive objects or environments. There are six
types of Arduino boards, including LilyPad, USB, DIY, Bluetooth, Boarduino Kit, and a
'Stamp' size kit.
For these experiments, the Arduino UNO board was used. Its specifications include:
a. AVR ATmega328 microcontroller chip
b. 32 kBytes of Flash program memory
c. 2 kBytes of RAM
d. 16 MHz clock speed
e. 13 digital input/output pins
f. 6 analog input pins
g. 6 PWM (Pulse Width Modulation) pins
INSTRUMENTS FUNCTION
Resistors Resistors control the amount of
current that can pass through a
particular part of the circuit,
protecting components such as
LEDs or transistors from
excessive current.
LAB PROCEDURE
CIRCUIT DIAGRAM
FRITZING
EXPERIMENT 1: BLINKING AN LED
EXPERIMENT 2: RUNNING LEDS / THE KNIGHT RIDERS
ARDUINO SKETCH
FLOW CHART
EXPERIMENT 1: BLINKING AN LED
For this experiment, working with Arduino provides valuable hands-on learning experience
across various domains, including electronics, programming, and project development.
Arduino uses a simplified version of C/C++ for programming. You'll learn the basics of
programming logic, control structures, and functions, Arduino is familiar with the Arduino
Integrated Development Environment (IDE) for writing and uploading code.
In Arduino project, we learn about various electronic components, such as resistors, LEDs,
sensors, and actuators and developing skills in circuit design, including connecting
components on a breadboard. For this project, there are 3 experiments that are conducted,
namely blink an led, running led and traffic light.
Firstly, Blink an LED is to create a simple circuit that blinks an LED on and off using an
Arduino. This project is fundamental for understanding basic digital output and programming
logic.s to create a simple circuit that blinks an LED on and off using an Arduino. This project
is fundamental for understanding basic digital output and programming logic. Observation
experiment with different LED blink rates and durations.
Secondly, Running LED involves multiple LEDs connected in series, creating a visual effect
of lights moving or "running" from one end to the other. It builds on the basic LED blinking
project. Observation experiment with adjusting the number of LEDs, change the pin
assignments, and experiment with the speed of the running LED effect.
Lastly, Traffic Light simulates a basic traffic light system with red, yellow, and green signals.
This project introduces more complexity by incorporating different colors and timing
patterns. Observation experiment with different traffic light timings, add pedestrian signals,
or incorporate button inputs for interaction.
The primary purpose of this experiment is to teach the learners to more advanced concepts of
advanced concepts of programming that cause blinking of led , running of LED light and
traffic light. These experiment involves connecting LED to one of the digital pins on the
arduino board that produce a variety of features.
This activites provides a practical understanding of how to conduct a programming skills like
loops and delays to control the characteristics of an electric component which provide a
hands on experience. For the sake of the purposes of urban planning, transportation
engineering, and traffic flow optimisation, it is essential to comprehend traffic light control
logic. Beyond traffic lights, the experiment offers practical experience in hardware
interaction and programming logic for a variety of automation and control systems.
The knowledge and abilities gained from this project can be applied to a variety of situations
where basic device control is needed, as well as more intricate Arduino projects. Controlling
traffic lights is an essential component of urban infrastructure. Through this experiment,
students can better understand the challenges of traffic management at intersections and the
contribution of intelligent systems to improving road efficiency and safety.
Electronic devices frequently use blinking LEDs as status indicators, notifications, and
aesthetic effects. This experiment illustrates a basic idea that is commonly used in consumer
electronics and embedded systems.LED patterns that run are widely used in many different
applications, such as dynamic indicators in electronic devices and decorative lighting for
events. This experiment illustrates how programmed patterns can improve visual appeal in
real-world situations.
CONCLUSION
For my opinion, Arduino projects provide hands-on experience in both hardware and
software development. This tangible interaction helps reinforce theoretical concepts in a
practical context. Working with Arduino involves understanding basic electronic
components, circuits, and their interactions. Users gain insights into wiring, resistors, LEDs,
sensors, and more. Participants learn to troubleshoot issues that arise during project
development. Debugging code and identifying hardware problems contribute to problem-
solving skills.
Arduino projects encourage creativity. Users often customize projects, add features, or
combine elements from different projects, fostering an innovative mindset. Projects like
traffic light simulations introduce concepts of control systems, where inputs (sensors) affect
outputs (LEDs). This is foundational knowledge for various engineering fields. Lastly,
Arduino projects offers a holistic learning experience that combines theory and practice,
fostering skills applicable in various STEM (science, technology, engineering, and
mathematics) disciplines.
To sum up, the Traffic Light Control Experiment is a useful teaching tool that explains
programming logic, control systems concepts, and the real-world applications of technology
in managing situations. It offers a concrete and interesting approach to comprehend the
complex mechanisms underlying traffic signal systems. The purpose of the Blinking LED
Experiment is to introduce people to the fundamentals of Arduino programming through a
practical and hands-on exercise that highlights how code can be used to control basic
electronic components.the Running LED Experiment advances participants' comprehension
of Arduino programming concepts as an intermediate-level exercise. It demonstrates how
versatile Arduino is for artistic endeavours incorporating dynamic LED displays and defines
the foundation for more challenging programming tasks.