0% found this document useful (0 votes)
8 views8 pages

Karnatak Law Society'S Gogte Institute of Technology: UDYAMBAG, BELGAVI-590008

Uploaded by

Parth Chougule
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)
8 views8 pages

Karnatak Law Society'S Gogte Institute of Technology: UDYAMBAG, BELGAVI-590008

Uploaded by

Parth Chougule
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
You are on page 1/ 8

KARNATAK LAW SOCIETY’S

GOGTE INSTITUTE OF TECHNOLOGY


UDYAMBAG, BELGAVI-590008
(An Autonomous Institution under Visvesvaraya Technological University, Belagavi)
(APPROVED BY AICTE, NEW DELHI)

DEPARTMENT OF MECHANICAL ENGINEERING

Project Report on

TEMPERATURE SENSOR (TMP36) USING TINKARCAD


Submitted in partial fulfillment of the requirement for the award of the degree of

BACHELOR OF ENGINEERING

IN

MECHANICAL ENGINEERING
Submitted by

Mr. Atharva Bhide 2GI22ME407


Mr. Ajinkya Joshi 2GI22ME402
Ms. Apoorva Mutagi 2GI22ME405
Mr. Kedarnath Desurkar 2GI22ME423

GUIDE

Prof. Pandurang Upparamani


Department of Information Science and Engineering

KLS Gogte Institute of Technology, Belagavi-590008

2023-24
KARNATAK LAW SOCIETY’S
GOGTE INSTITUTE OF TECHNOLOGY
UDYAMBAG, BELGAVI-590008
(An Autonomous Institution under Visvesvaraya Technological University, Belagavi)
(APPROVED BY AICTE, NEW DELHI)

DEPARTMENT OF MECHANICAL ENGINEERING

CERTIFICATE
Certified that the project entitled

TEMPERATURE SENSOR (TMP36) USING TINKARCAD


carried out by

NAME USN
Mr. Atharva Bhide 2GI22ME407
Mr. Ajinkya Joshi 2GI22ME402
Ms. Apoorva Mutagi 2GI22ME405
Mr. Kedarnath Desurkar 2GI22ME423

students of KLS Gogte Institute of Technology, Belagavi, can be considered as a Bonafede


work for partial fulfillment for the completion of academic requirements of sixth semester of
Bachelor of Engineering in Mechanical Engineering of the Visvesvaraya Technological
University, Belagavi during the year 2023- 2024

It is certified that all corrections/suggestions indicated have been incorporated in the report.
The project report has been approved as it satisfies the academic requirements prescribed for
the said Degree.

Signature of Faculty Member Signature of the HOD

Date:
AIM: To simulate Temperature Sensor (TMP 36) using TINKER CAD

Apparatus Required:

1. Tinker cad Software

Name Quantity Component

U1 1 Arduino Uno R3

D1 1 Yellow LED

D2 1 Blue LED

D3 1 Green LED

R1
R2 3 1 kΩ Resistor
R3

U2 1 Temperature Sensor [TMP36]


DIAGRAM
THEORY

The Arduino Uno is a popular microcontroller board known for its versatility in
various electronic projects, including temperature sensing using a sensor like
the LM35. In Tinker cad, a virtual electronics platform, you can simulate
circuits with an Arduino Uno and components like the LM35 temperature
sensor.

The LM35 is a precision analog temperature sensor that outputs an analog


voltage proportional to the temperature in Celsius. It requires minimal external
components to function, making it ideal for interfacing directly with the
Arduino Uno's analog input pins.

To implement this in Tinker cad:

1. Circuit Setup: Connect the LM35 sensor's output pin to one of the
Arduino Uno's analog input pins (e.g., A0). Ensure the sensor is powered
appropriately (typically +5V and GND).
2. Coding: Use the Arduino IDE or Tinker cad’s built-in code editor to
write a simple program. This program reads the analog voltage from the
LM35, converts it into Celsius using the Arduino's ADC (Analog-to-
Digital Converter) capabilities, and then displays the temperature on
Tinker cad’s virtual serial monitor or an LCD display component.
3. Simulation: Run the simulation in Tinker cad to observe how changes in
the LM35's analog output correspond to temperature variations. Adjust
the virtual environment parameters to test different temperature scenarios.

Overall, Tinker cad provides a user-friendly environment to learn and


experiment with Arduino Uno and temperature sensors, fostering understanding
of both hardware interfacing and software programming concepts.
STEPS

1. Drag an Arduino Uno and breadboard from the components panel to the
work plane, next to the existing circuit.
2. Connect the 5 volt and ground pins on the Arduino to the power (+) and
ground (-) rails on the breadboard with wires.
3. Drag three LEDs on the breadboard in row E, spaced 2 breadboard
sockets apart
4. Use a 220 Ohm resistor to connect each LED's cathode (left leg) to the
ground rail (black) of the breadboard.
5. Connect the LED anodes (right, longer legs) to digital pins 4, 3, and 2 on
the Arduino. The LED anode (+) is the terminal that current flows into.
6. Place the temperature sensor (TMP36) on the breadboard with the
rounded part facing away from the Arduino
7. Place the temperature sensor on the breadboard in row E,
8. Wire up the temperature sensor so the left pin connects to the 5V voltage
rail, the center pin connects to A0 on the Arduino, and the right pin
connects to the GND rail.
9. Click "Start Simulation."
10. Type the code.
PROGRAM

int baselineTemp = 0;
int celsius = 0;
int fahrenheit = 0;

void setup()
{
pinMode(A0, INPUT);
Serial.begin(9600);

pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
}

void loop()
{
baselineTemp = 40;

celsius = map(((analogRead(A0) - 20) * 3.04), 0, 1023, -40, 125);

fahrenheit = ((celsius * 9) / 5 + 32);


Serial.print(celsius);
Serial.print(" C, ");
Serial.print(fahrenheit);
Serial.println(" F");

if (celsius < baselineTemp) {


digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
}
if (celsius >= baselineTemp && celsius < baselineTemp + 10) {
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
}
if (celsius >= baselineTemp + 10 && celsius < baselineTemp + 20) {
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, LOW);
}
if (celsius >= baselineTemp + 20 && celsius < baselineTemp + 30) {
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);
}
if (celsius >= baselineTemp + 30) {
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);
}
delay (1000);
}

CONCLUSION:

Using TINKER CAD we can simulate Temperature Sensor (TMP 36). And the
result we see is as the temperature rises, the LEDs turn on one by one.

You might also like