VD Arduino 2

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 15

SUMMER INDUSTRY INTERNSHIP-1 Report

on

“AUTOMOTIVE EMBEDDED SYSTEMS ”


During

III Year I Semester Summer

Submitted by

Roll No:22315A0424 Name: ERUKULLA


HARSHAVARDHAN

Under the Supervision of


Dr K.Vineetha
Professor, Dept of ECE.

SREENIDHI INSTITUTE OF SCIENCE &TECHNOLOGY


Yamnampet, Ghatkesar, Hyderabad -501 301
2023-2024

i
SREENIDHI INSTITUTE OF SCIENCE & TECHNOLOGY

(An Autonomous Institution)

Yamnampet, Ghatkesar, Hyderabad – 501 301

CERTIFICATE

This is to certify that the Summer Industry Internship project report entitled
"AUTOMOTIVE EMBEDDED SYSTEMS " being submitted by “ERUKULLA
HARSHAVARDHAN 22315A0424”in partial fulfillment of the award of a Bachelor of
Technology Degree in Electronics & Communications Engineering, Sreenidhi Institute of
Science and Technology, Yamnampet, Ghatkesar, Telangana. This internship project report was
carried out by her during the academic year 2023-2024 under our guidance and supervision. The
results embodied in the report have not been submitted to any other University or Institution for
the award of any Degree or Diploma.

INTERNSHIP COORDINATOR SNIST HEAD OF THE DEPARTMENT

Dr. K.VINEETHA Dr. S. P. V. SUBBA RAO

Professor of ECE Professor Head, Dept. of ECE, SNIST

ii
iii
ABSTRACT
This project explores the integration of a seven-segment display with an Arduino
microcontroller using TinkerCAD, a virtual simulation platform for electronics and
programming. The seven-segment display is a common output device used to
represent numerical values in digital form, making it an ideal component for
educational purposes and various applications.

The project begins with an overview of the Arduino microcontroller and its
capabilities, emphasizing its role in controlling and interfacing with electronic
components. The seven-segment display is introduced as a versatile output device,
capable of displaying numerical digits and some alphabets.

Using TinkerCAD, a virtual environment for designing and simulating electronic


circuits, the project guides users through the process of creating a circuit that
connects an Arduino to a seven-segment display. Participants will learn how to use
TinkerCAD's drag-and-drop interface to assemble the components and make the
necessary connections.

The programming aspect of the project involves writing code in the Arduino
programming language to control the seven-segment display. The code covers the
basics of displaying numbers on the seven-segment display and introduces the
concept of multiplexing to efficiently control multiple digits.

iv
CONTENTS

1. Introduction
2. Objective
3.Implementaion/Procedure
3.1 Requirements
3.2 Steps To Interface In Tinkercad
3.3 Arduino Code

4. Result/Analysis
5.Conclusion&Future Scope
6. References

v
1.INTRODUCTION
Interfacing a seven-segment display with Arduino is a common and fundamental
project in the world of electronics and microcontrollers. A seven-segment display
is a simple and effective way to visually represent numerical digits. In this project,
we will use TinkerCAD, a web-based platform for simulating electronic circuits, to
explore the basics of connecting and controlling a seven-segment display with an
Arduino.

2.OBJECTIVE

In this project, the objective is to learn how to interface a seven-segment display with an
Arduino using TinkerCAD, a virtual simulation platform. A seven-segment display is a
widely used electronic component to represent numerical values. By the end of this project,
you should be able to:

 UNDERSTAND SEVEN SEGMENT DISPLAY:

Learn the basics of a seven-segment display and how it represents numerical digits.

 FAMILIARIZE WITH TINKERCAD:

Get acquainted with TinkerCAD, a virtual platform for simulating electronic circuits.

 CONNECT ARDUINO AND SEVEN SEGMENT DISPLAY:

Learn how to physically connect the Arduino board with the seven-segment display.

 IDENTIFY PINS AND WIRING:

Understand the pin configuration of the seven-segment display and properly wire it to the
Arduino.

 WRITE ARDUINO CODE:

Write a simple Arduino code to display numbers on the seven-segment display.

 DISPLAY NUMBERS 0-9:

Implement a program to display numbers 0 through 9 on the seven-segment display.


vi
 EXPERIMENT WITH DIFFERENT PATTERNS:

Explore the capability of the seven-segment display by creating and displaying different
patterns.

 UNDERSTAND MULTIPLEXING (OPTIONAL):

Optionally, delve into the concept of multiplexing to display more than one digit using a
single seven-segment display.

 TROUBLESHOOTING:

Learn basic troubleshooting techniques for common issues that may arise during the
project.

By completing this project, you will gain practical experience in interfacing electronic
components with Arduino and enhance your skills in writing code for controlling display
devices. This foundational knowledge can be extended to more complex projects involving
various sensors, actuators, and displays in the future.

3. IMPLEMENTATION/PROCEDURE

3.1 REQUIREMENTS:

1. Arduino Board (e.g., Arduino Uno)


2. Seven-segment display (Common Anode or Common Cathode)
3. Resistors (for current limiting, if needed)
4. Jumper wires
5. TinkerCAD account (https://www.tinkercad.com/)

vii
3.2 STEPS TO INTERFACE IN TINKERCAD:

 Open TinkerCAD: Log in to your TinkerCAD account and start a new project.
 Select Components: Drag and drop an Arduino board and a seven-segment
display onto the workplane.
 Connect Components: Use jumper wires to connect the pins of the seven-segment
display to the appropriate digital pins on the Arduino. Pay attention to the common
pin (anode or cathode) and connect it accordingly.
 Write Arduino Code: Write a simple Arduino code to control the seven-segment
display. You'll need to specify which segments need to be illuminated to display a
particular digit.
 Upload Code: Once the code is ready, upload it to the Arduino board and observe
the results in the simulation.

ARDUINO CODE:
int dp = 0;
int a = 1;
int b = 2;
int c = 3;
int d = 4;
int e = 5;
int f = 6;
int g = 7;
void setup()
{
pinMode(dp,OUTPUT);
pinMode(a,OUTPUT);
pinMode(b,OUTPUT);
pinMode(c,OUTPUT);
pinMode(d,OUTPUT);
pinMode(e,OUTPUT);
pinMode(f,OUTPUT);
pinMode(g,OUTPUT);
}
void loop()
{
digitalWrite(dp,HIGH);

viii
digitalWrite(a,HIGH);
digitalWrite(b,HIGH);
digitalWrite(c,HIGH);
digitalWrite(d,HIGH);
digitalWrite(e,HIGH);
digitalWrite(f,HIGH);
digitalWrite(g,LOW);
delay(2000);
digitalWrite(dp,HIGH);
digitalWrite(a,LOW);
digitalWrite(b,HIGH);
digitalWrite(c,HIGH);
digitalWrite(d,LOW);
digitalWrite(e,LOW);
digitalWrite(f,LOW);
digitalWrite(g,LOW);
delay(2000);
digitalWrite(dp,HIGH);
digitalWrite(a,HIGH);
digitalWrite(b,HIGH);
digitalWrite(c,LOW);
digitalWrite(d,HIGH);
digitalWrite(e,HIGH);
digitalWrite(f,LOW);
digitalWrite(g,HIGH);
delay(2000);
digitalWrite(dp,HIGH);
digitalWrite(a,HIGH);
digitalWrite(b,HIGH);
digitalWrite(c,HIGH);
digitalWrite(d,HIGH);
digitalWrite(e,LOW);
digitalWrite(f,LOW);
digitalWrite(g,HIGH);
delay(2000);
digitalWrite(dp,HIGH);
digitalWrite(a,LOW);
digitalWrite(b,HIGH);
digitalWrite(c,HIGH);
digitalWrite(d,LOW);
digitalWrite(e,LOW);
ix
digitalWrite(f,HIGH);
digitalWrite(g,HIGH);
delay(2000);
digitalWrite(dp,HIGH);
digitalWrite(a,HIGH);
digitalWrite(b,LOW);
digitalWrite(c,HIGH);
digitalWrite(d,HIGH);
digitalWrite(e,LOW);
digitalWrite(f,HIGH);
digitalWrite(g,HIGH);
delay(2000);
digitalWrite(dp,HIGH);
digitalWrite(a,HIGH);
digitalWrite(b,LOW);
digitalWrite(c,HIGH);
digitalWrite(d,HIGH);
digitalWrite(e,HIGH);
digitalWrite(f,HIGH);
digitalWrite(g,HIGH);
delay(2000);
digitalWrite(dp,HIGH);
digitalWrite(a,HIGH);
digitalWrite(b,HIGH);
digitalWrite(c,HIGH);
digitalWrite(d,LOW);
digitalWrite(e,LOW);
digitalWrite(f,LOW);
digitalWrite(g,LOW);
delay(2000);
digitalWrite(dp,HIGH);
digitalWrite(a,HIGH);
digitalWrite(b,HIGH);
digitalWrite(c,HIGH);
digitalWrite(d,HIGH);
digitalWrite(e,HIGH);
digitalWrite(f,HIGH);
digitalWrite(g,HIGH);
delay(2000);
digitalWrite(dp,HIGH);
digitalWrite(a,HIGH);
x
digitalWrite(b,HIGH);
digitalWrite(c,HIGH);
digitalWrite(d,HIGH);
digitalWrite(e,LOW);
digitalWrite(f,HIGH);
digitalWrite(g,HIGH);
delay(2000);
}

4.RESULTS

xi
xii
5. CONCLUSION & FUTURE SCOPE
In conclusion, interfacing a seven-segment display with Arduino using TinkerCAD is
a valuable exercise that enhances your understanding of both hardware and
software integration. Through this project, you have gained hands-on experience in
connecting electronic components, writing code, and troubleshooting potential
issues.

The seven-segment display, with its simplicity and effectiveness in conveying


numeric information, serves as a fundamental component in various digital projects.
Integrating it with Arduino expands its capabilities, allowing you to create more
sophisticated applications and displays.

Throughout this project, you likely encountered challenges and learned to overcome
them, honing your problem-solving skills. The TinkerCAD platform provides a
virtual environment for experimentation, making it an excellent tool for prototyping
and testing your ideas without the need for physical components.

As you move forward in your Arduino journey, the knowledge gained from this
interface project will be invaluable. You can leverage this foundation to tackle more
complex projects, such as building digital clocks, temperature displays, or even
experimenting with multiplexing to control multiple seven-segment displays
simultaneously.

In essence, interfacing a seven-segment display with Arduino using TinkerCAD is a


stepping stone that opens the door to a wide array of exciting possibilities in the
world of electronics and programming. Whether you're a beginner or an
experienced hobbyist, this project contributes to your skill set and sets the stage for
future creative endeavors.

The interface of a seven-segment display with Arduino using TinkerCAD lays the
groundwork for various exciting and advanced projects. Here are some Future
Scope ideas that you can explore:

 Multiplexing Displays: Extend your knowledge by learning how to multiplex


multiple seven-segment displays. This skill will be useful when working on
projects that require the display of more extensive numerical or
alphanumeric information.

xiii
 Integrated Sensor Displays: Integrate sensors such as temperature, humidity,
or light sensors with your seven-segment display. Create a project where the
display shows real-time data from the sensor, providing a practical
application for monitoring environmental conditions.
 Clock and Timer Applications: Develop a digital clock using the seven-
segment display. Incorporate real-time clock (RTC) modules to keep accurate
time and explore features like setting alarms or countdown timers.
 Interactive Displays: Implement user interaction by adding buttons or rotary
encoders. Create projects where users can input information, and the seven-
segment display responds accordingly. This can be applied in settings such as
setting time, entering numeric values, or controlling various parameters.
 Data Logging and Visualization: Interface the Arduino with data logging
modules and SD cards. Record data from sensors or external sources and
visualize the information on the seven-segment display. This can be useful in
projects related to environmental monitoring or scientific experiments.
 Communication Protocols: Explore communication protocols like I2C or SPI
to connect your Arduino with other devices. This can lead to more complex
systems where data is exchanged between multiple components, and the
seven-segment display serves as an output interface.
 Custom Characters and Graphics: Experiment with creating custom
characters and graphics on the seven-segment display. This can be
particularly useful in applications where standard numeric displays are not
sufficient, such as creating unique symbols or icons.
 Mobile App Integration: Interface the Arduino and the seven-segment display
with a mobile application. Use Bluetooth or Wi-Fi modules to enable wireless
communication, allowing you to control and monitor the display remotely.
 Game Development: Develop simple games using the seven-segment display.
This could involve creating a digital dice roller, a basic calculator, or even a
reaction time game.
 Educational Tools: Create educational tools for learning mathematics or
programming concepts. Design projects that aid in teaching basic arithmetic,
counting, or even binary conversion using the seven-segment display.

By exploring these future scope ideas, you can deepen your understanding of both
hardware and software aspects of Arduino projects while creating practical and
engaging applications with the seven-segment display.

xiv
6.REFERENCES
https://youtu.be/_RaMTyD3UJA?feature=shared

https://chat.openai.com/

https://www.instructables.com/Interfacing-Seven-Segment-Display-on-TinkerCad/

https://www.tinkercad.com/things/jHnKkUAsyFg-arduino-7-segment-display

xv

You might also like