Karnatak Law Society'S Gogte Institute of Technology: UDYAMBAG, BELGAVI-590008
Karnatak Law Society'S Gogte Institute of Technology: UDYAMBAG, BELGAVI-590008
Project Report on
BACHELOR OF ENGINEERING
IN
MECHANICAL ENGINEERING
Submitted by
GUIDE
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)
CERTIFICATE
Certified that the project entitled
NAME USN
Mr. Atharva Bhide 2GI22ME407
Mr. Ajinkya Joshi 2GI22ME402
Ms. Apoorva Mutagi 2GI22ME405
Mr. Kedarnath Desurkar 2GI22ME423
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.
Date:
AIM: To simulate Temperature Sensor (TMP 36) using TINKER CAD
Apparatus Required:
U1 1 Arduino Uno R3
D1 1 Yellow LED
D2 1 Blue LED
D3 1 Green LED
R1
R2 3 1 kΩ Resistor
R3
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.
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.
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;
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.