0% found this document useful (0 votes)
28 views3 pages

Arduino UNO Programming Basics

Uploaded by

sagarshreyas8983
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views3 pages

Arduino UNO Programming Basics

Uploaded by

sagarshreyas8983
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

EE351 Module 00

Introduction to Arduino-UNO Programming

Goal of the module: The goal of this module is to learn the use of Arduino UNO pins as digital
output and input pins. In order to start writing codes for Arduino you will first use the Arduino
simulator provided in TinkerCad (Link in [1])).
The following objectives need to be implemented on TinkerCad.
Objective I: LED Blinking and Basic Familiarization [2]

1. Simulate a basic LED blinking circuit using the TinkerCad Arduino interface to get comfortable
with:

ˆ Writing simple Arduino code


ˆ Using digital output pins
ˆ Configuring simulation elements like resistors, LEDs, and breadboards
2. Getting started with TinkerCad:

ˆ Sign up for a student account on TinkerCad


ˆ Navigate to: Circuits  Create New Circuit
ˆ Select components such as Arduino UNO, LED, resistor, and wires
ˆ Assemble the circuit and write/upload your code
Objective II: Switch-Controlled LED Logic [3]

1. Implement a simple interaction between a push button (switch) and an LED using Arduino in
TinkerCad. The behavior should follow the rules below:

(a) The LED should blink continuously (with 1 second ON, 1 second OFF) when the switch
is **not pressed**.
(b) When the switch is **pressed**, the LED should stop blinking and remain **ON**
steadily.
(c) As soon as the switch is released, the LED should return to the blinking mode.

1
2. This task will help you understand:

ˆ How to read digital input from a switch


ˆ How to control digital output to an LED
ˆ How to use conditional (‘if‘/‘else‘) logic and timing (‘delay()‘) in Arduino code
3. **Steps**:

ˆ Create a new circuit in TinkerCad using Arduino UNO, one LED, one switch, a resistor
(for the LED), and a pull-down resistor (for the switch).
ˆ Connect the switch to a digital input pin and the LED to a digital output pin.
ˆ Write code that continuously checks the switch state and updates the LED behavior
accordingly.

Report Guidelines: There is no report for this module.

References
[1] [Link]

[2] [Link]

[3] [Link]

2
OBSERVATION SHEET
This sheet needs to be attached to the report.

1. Demonstrate Objective-I.

TA Signature with Date:

2. Demonstrate Objective-II.

TA Signature with Date:

You might also like