F C&P Lab 13
F C&P Lab 13
F C&P Lab 13
13
INTRODUCTION TO ARDUINO PROGRAMMING
LAB SESSION
• Hardware Overview:
1. Arduino Board:
The core of the Arduino platform is the Arduino board. It comes in
various models with different features, but they all have a
microcontroller at their heart. Common models include Arduino Uno,
Arduino Mega, Arduino Nano, etc.
2. Microcontroller:
The microcontroller is a small, programmable chip that serves as the
brain of the Arduino. It executes the code you write and interacts with
other components connected to the board.
3. Input/Output (I/O) Pins:
Arduino boards have a set of digital and analog pins that can be used
for input (reading data) or output (sending signals). Digital pins deal
with binary signals (on/off), while analog pins handle continuous signals
within a range.
4. Power Supply:
Arduino boards can be powered through a USB connection, an external
power supply, or a battery, depending on the model. Make sure to
choose the appropriate power source for your project.
• Software Overview:
Arduino Sketch:
Steps to Run Your Arduino Sketch:
• Open the Arduino IDE.
• Copy and paste the above code into a new sketch.
• Connect your Arduino board to your computer using a USB cable.
• Select the correct board and port under the "Tools" menu.
• Click the right arrow button (Upload) to compile and upload your
sketch to the Arduino board.
As the sketch runs, the LED on pin 13 should blink on and off at one-
second intervals.