You are on page 1of 4

HERITAGE INSTITUTE OF TECHNOLOGY

KOLKATA

DEPARTMENT OF
APPLIED ELECTRONICS AND INSTRUMENTATION ENGINEERING
LABORATORY REPORT
INTERNET OF THINGS LABORTARY COPY BOOK

B. Tech 3rd Year 6st Semester

Name: ANTOREEP GHATAK


College Roll No: 1853028
University Roll No: 12618005009
Academic Year: 2018- 2022

Experiment with Arduino: Blinking LED


List of Components:
Name Quantity Components
U1 1 Arduino Uno R3
U2 1 100 ms Oscilloscope
D1 1 Red LED

CODE:-
// C++ code
//
int xvcb = 0;
void setup()
{
pinMode(13, OUTPUT);
}
void loop()
{
digitalWrite(13, HIGH);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(13, LOW);
delay(1000); // Wait for 1000 millisecond(s)
}

OUTPUT: -

Experiment with Arduino: Controlling speed of DC motor with


potentiometer

List of Components:
Name Quantity Component
U1 1 Arduino Uno R3
T1 1 NPN Transistor (BJT)
R1 1 1 kΩ Resistor
D1 1 Diode
M1 1 DC Motor
Rpot1 1 250 kΩ Potentiometer

CODE: -
// C++ code
//
int motor_pin =9;
int pot_pin =A0;
void setup(){
pinMode(motor_pin, OUTPUT);

}
void loop(){
int pot_val=analogRead(pot_pin);
int pot_val_2= map(pot_val, 0, 1023,0,255);
analogWrite(motor_pin, pot_val_2);
delay(100);
}
OUTPUT

Experiment with Arduino: Read UART serial data, interfacing


analog LM35

List of Components:

Name Quantity Component


U1 1 Arduino Uno R3
U2 1 Temperature Sensor
[TMP36]
CODE: -
int temp_pin = A0;
void setup(){
Serial.begin(9600);
}
void loop(){
int temp_val = analogRead(temp_pin)*(0.48);
Serial.println(temp_val/10);
delay(100);
}

OUTPUT: -

Thank You

You might also like