Professional Documents
Culture Documents
Arduino Manual
Arduino Manual
When the download finishes, proceed with the installation and please allow the driver
installation process when you get a warning from the operating system.
Step 5: Select properties of this PC/My computer, select device manager> Ports
Step 6: Note down COM port number Arduino is connected with (COM3 in this case).
In case can’t find COM port Arduino is connected with open Device Manager -> select
View tab -> choose Show hidden devices.
In case can’t find COM port Arduino is connect with, select unknown drivers> right
click it and select install drivers.
Step 7: Open Arduino IDE go to File>Example> basics>Blink file.
Step 8: Upload the sketch on board by going to Sketch menu>upload option or by pressing
Ctrl+U.
If built-in LED on Arduino starts blinking after each second, then arduino IDE is successfully
configured on your PC.
DEPARTMENT OF INFORMATION TECHNOLOGY
FACULTY OF ENGINEERING AND TECHNOLOGY, UNIVERSITY OF SINDH, JAMSHORO
Lab Objective:
Measuring the temperature of surroundings using LM35 and displaying it on the serial monitor
of Arduino.
Step 2: Open New Sketch window and type following Sketch for Temperature Measurement
const int lm35_pin = A1; /* LM35 O/P pin */
void setup() {
Serial.begin(9600);
}
void loop() {
int temp_adc_val;
float temp_val;
temp_adc_val = analogRead(lm35_pin); /* Read Temperature */
temp_val = (temp_adc_val * 4.88); /* Convert adc value to equivalent voltage */
temp_val = (temp_val/10); /* LM35 gives output of 10mv/°C */
Serial.print("Temperature = ");
Serial.print(temp_val);
Serial.print(" Degree Celsius\n");
delay(1000);
}
Step 3: Connect board with PC, Upload Sketch on Arduino.
Step 4: open serial interface by going into tools> Serial Monitor or pressing Ctrl+Shift+M.