PROGRAMING WITH
ARDUINO
EXPLORING THE WORLD OF
ELECTRONICS AND ROBOTICS
1. Explain Arduino Fundamentals
2. Introduce Basic Electronic Components
3. Teach Basic Coding in Arduino
4. Encourage Hands-On Learning
5. Build Problem-Solving and Critical Thinking Skills
What is Arduino?
A small computer (microcontroller) that can
interact with electronics.
We use it to create simple projects and
prototypes.
Why Learn Arduino?
Learn how software and hardware work
together.
Create fun, interactive projects using
sensors and lights.
Keywords: Software, Hardware, Fun Projects, Skills Development
Components for Starting with Arduino
Arduino Board (like Arduino UNO)
PC for coding
Wires for connections
LEDs, Sensors, Resistors,
Breadboard
USB Cable for connecting to the
computer
Keywords: Arduino Board, PC, Wires, LED, Sensors, Resistors, Breadboard, USB Cable
Electric Circuits: How electricity flows
to power devices.
Ohm’s Law: Relates Voltage, Current,
and Resistance.
Equation:
V=I×R
Importance of Resistors: They limit the
flow of electricity to protect
components like LEDs.
Keywords: Voltage, Resistance, Current, LED
Lets know about sensors & actuators!
Basic Components
of Arduino System
Microcontroller: The brain of
the system.
Sensors: Devices that detect
the environment (e.g.,
temperature, light).
Actuators: Devices that perform
actions (e.g., motors, LEDs).
Power Source: Provides
electricity to the system.
Example Project 1 - Blinking LED
Goal: Make an LED blink on and off.
Wiring: Connect the LED to a pin
and ground.
Code:
Use pinMode(13, OUTPUT); in setup.
Turn LED on and off with
digitalWrite(13, HIGH);
and
digitalWrite(13, LOW);
Keywords: LED, digitalWrite, delay, pinMode
commands.
Do you get an Error Massagne?
Example Project 2 - Using a button
const int ledPin = 13;
Goal: Control LED with button const int buttonPin = 2;
Code -> int buttonState = 0;
Wiring: Connect button to one pin,
LED to another. void setup()
{
pinMode(ledPin, OUTPUT);
pinMode(buttonPin, INPUT);
}
void loop()
{
buttonState =
digitalRead(buttonPin);
if (buttonState == HIGH)
{
digitalWrite(ledPin, HIGH);
}
else
{
digitalWrite(ledPin, LOW);
}
Keywords: LED, digitalWrite, delay, pinMode
}
Wanna try Simulation???
[Link]
THANK
YOU
SHAMSUL AREFIN
Robotics Teacher
Glenrich International School
01674692519
[Link]@[Link]