0% found this document useful (0 votes)
7 views

Lab 04 - Hands-On Arduino-2

Uploaded by

amatory.slants0a
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Lab 04 - Hands-On Arduino-2

Uploaded by

amatory.slants0a
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

420-N35-LA: IOT I (Fall 2024)

Lab 4 – Hands-on Arduino


Date due: Please see Lea dates

Project 1: Description and Purpose


In class, you saw a how to accept input from the console. In this exercise you will develop an
application that accepts input from the console. Your input will be a number in the range 0-15, then
sequence of LED’s (4 LED’s) will be light up based on the binary form of the user input. You will use
four LEDs for this exercise.

Steps
Step 1: Fritzing/Tinkercad design
Use Fritzing to illustrate your project. If you’re not comfortable drawing the project before building it –
you can build it first and debug it – then you can diagram it later – not recommended but you choose.
Paste the diagram here.

Step 2: Setting up the Arduino hardware project


Set up the hardware using your Arduino Uno and also with a breadboard. Try to create the project in a
neat and orderly way.
Lab 4 – Hands-On Arduino 2 Page

Step 3: Creating the Arduino Sketch


1. Arrange 4 LED’s on the Arduino.
2. Use an integer array to store the digital pin values of the LED’s.
3. Put one switch also, on the Arduino.
4. Write a program that accepts input from the console, your input will be a number (then you must
press enter).
5. The LED’s must display the binary form of the number (the project will support a number from 0
to 15). Eg: Enter the number 5 (binary: 0101) and your LEDs will be OFF ON OFF ON.
6. Pressing the switch on the board will reset all LED’s the 0, hint: Use a “for” loop for this.

Submission Procedure
To submit your work, you must include the following as one ZIP file:

1. This document filled and completed (1 Marks).


2. Your fritzing file (4 marks).

TINKERCAD FILE : https://www.tinkercad.com/things/1IjdGOh8Adu-binary-converter

3. Your Arduino Sketch (6 marks)


4. A video made with your phone, showing the following:
a. The assembled board with switch and LCDs and showing how it works with the user input (5
marks)

VIDEO : https://share.icloud.com/photos/035syUQPe1C6Xwe-QB0qaMMNg
Lab 4 – Hands-On Arduino 2 Page

Indicate the names of students in your group (of two). One submission per group please. If one of the team
members doesn’t contribute to the group work – I expect to hear about it right away.

Name ID
Anvar Sultanov 2330129
Amir Ghadimi 2310074

Note: To be graded, you should verify your project in the class with the teacher.

You might also like