Skip to the content.

Kerala-IoT-Challenge

Foxlab Makerspace in association with GTech - Group of Technology Companies in Kerala is launching our prestigious program “Kerala IoT Challenge 2021”, with a vision to mould 100 IoT experts in Kerala, hosting on the µLearn platform. Kerala IoT Challenge is a program designed in 4 levels followed by a hackathon to identify and train quality industry leaders in the IoT domain, while any novice learner can start with layer 1 and others can enter laterally to the desired layer after an evaluation.

About Me

Hi, I am AADHISH S. I am a second year B-Tech Computer Science student @ Mahaguru  Institute  of  Technology. I have helped in some computer science and electronics projects. I love to learn new things and I like to be updated with development in the Tech Industry. I am Fascinated about Tech, Business and related stuff.


LEVEL - 1

Experiments

Exp 1 : Hello World LED Blinking

Hardware Needed:

Code

int ledPin = 10; // define digital pin 10.
void setup()
{
 pinMode(ledPin, OUTPUT);// define pin with LED connected as output.
}
void loop()
{
 digitalWrite(ledPin, HIGH); // set the LED on.
 delay(1000); // wait for a second.
 digitalWrite(ledPin, LOW); // set the LED off.
 delay(1000); // wait for a second
}

Video


LEVEL - 2

Experiments

Exp 2 : Traffic Light

Hardware required

Code

int red =10; // initialize digital pin 8.
int yellow =7; // initialize digital pin 7.
int green =4; // initialize digital pin 4.
void setup()
{
  pinMode(red, OUTPUT);// set red LED pin as “output”
  pinMode(yellow, OUTPUT); // set yellow LED pin as  “output”
  pinMode(green, OUTPUT); // set green LED pin as “output”
}
void loop()
{
  digitalWrite(green, HIGH);// turn on green LED
  delay(5000);// wait 5 seconds
  digitalWrite(green, LOW); // turn off green LED
  for(int i=0;i<3;i++)// blinks for 3 times
  {
   delay(500);// wait 0.5 second
   digitalWrite(yellow, HIGH);// turn on yellow LED
   delay(500);// wait 0.5 second
   digitalWrite(yellow, LOW);// turn off yellow LED
  } 
  delay(500);// wait 0.5 second
  digitalWrite(red, HIGH);// turn on red LED
  delay(5000);// wait 5 seconds
  digitalWrite(red, LOW);// turn off red LED
}

Video

LEVEL - 3

Experiments

Exp 3 : LED Chasing Effect

Hardware required

Code

int first= 2;  // the I/O pin for the first LED
int last= 6;   // number of LEDs
void setup(){
 for (int i = start; i < first + last; i ++){
  pinMode(i, OUTPUT);   // set I/O pins as output
 }
}
void loop(){
 for (int i = BASE; i < start +; i ++){
  digitalWrite(i, LOW);    // set I/O pins as “low”, turn off LEDs one by one.
  delay(200);        // delay
}
 for (int i = BASE; i < BASE + NUM; i ++){
  digitalWrite(i, HIGH);    // set I/O pins as “high”, turn on LEDs one by one
  delay(200);        // delay
 }  
}

Video

LEVEL - 4

Experiments

Exp 4 : Button Controlled LED

Hardware required

Code

int ledpin=11;// initialize pin 11
int inpin=3;// initialize pin 3
int val;// define val
void setup()
{
pinMode(ledpin,OUTPUT);// set LED pin as “output”
pinMode(inpin,INPUT);// set button pin as “input”
}
void loop()
{
val=digitalRead(inpin);// read the level value of pin 3 and assign if to val
if(val==LOW)// check if the button is pressed, if yes, turn on the LED
{ digitalWrite(ledpin,LOW);}
else
{ digitalWrite(ledpin,HIGH);}
} ### Video

LEVEL - 5

Experiments

Exp 5 : Buzzer

Hardware required

Code

int buzzer=8;// initialize digital IO pin that controls the buzzer
void setup() 
{ 
  pinMode(buzzer,OUTPUT);// set pin mode as “output”
} 
void loop() 
{
digitalWrite(buzzer, HIGH); // produce sound
} ### Video

LEVEL - 6

Experiments

Exp 6 : RGB LED

Hardware required

Code

int redpin = 11; //select the pin for the red LED
int bluepin =10; // select the pin for the blue LED
int greenpin =9;// select the pin for the green LED
int val;
void setup() {
  pinMode(redpin, OUTPUT);
  pinMode(bluepin, OUTPUT);
  pinMode(greenpin, OUTPUT);
  Serial.begin(9600);
}
void loop() 
{
for(val=255; val>0; val--)
  {
  analogWrite(11, val);
  analogWrite(10, 255-val);
  analogWrite(9, 128-val);
  delay(1); 
  }
for(val=0; val<255; val++)
  {
  analogWrite(11, val);
  analogWrite(10, 255-val);
  analogWrite(9, 128-val);
  delay(1); 
  }
Serial.println(val, DEC);
} ### Video

LEVEL - 7

Experiments

Exp 7 : LDR Light Sensor

Hardware required

Code

void setup() {
  pinMode(8,INPUT);
  pinMode(9,OUTPUT);
  Serial.begin(9600); //initialise serial monitor
}

void loop() {
  int temp=digitalRead(8);       //assign value of LDR sensor to a temporary variable
  Serial.println("Intensity="); //print on serial monitor using ""
  Serial.println(temp);         //display output on serial monitor
  delay(300);
  if(temp==HIGH)               //HIGH means,light got blocked
  digitalWrite(9,HIGH);        //if light is not present,LED on
  else
  digitalWrite(9,LOW);         //if light is present,LED off
}

Video


LEVEL - 1

Experiments

Exp 1 : Flame Sensor

Hardware Needed:

Video


LEVEL - 1

Experiments

Exp 1 : Flame Sensor

Hardware Needed:

Video


LEVEL - 1

Experiments

Exp 9 : LM35 Temperature Sensor

Hardware Needed:

Video


Exp 10 : IR Remote Control Using TSOP

What is an infrared receiver?

The signal from the infrared remote controller is a series of binary pulse code. To avoid the other infrared signal interference during the wireless transmission, the signal is pre-modulated at a specific carrier frequency and then send out by an infrared emission diode. The infrared receiving device needs to filter out other waves and receive signals at that specific frequency and to modulate it back to binary pulse code, known as demodulation.

Working Principle

The built-in receiver converts the light signal it received from the sender into feeble electrical signal. The signal will be amplified by the IC amplifier. After automatic gain control, band-pass filtering, demodulation, wave shaping, it returns to the original code. The code is then input to the code identification circuit by the receiver’s signal output pin.

Hardware Needed:

Video


LEVEL - 1

Experiments

Exp 11 : Potentiometer analog Value Reading

Hardware Needed:


LEVEL - 1

Experiments

Exp 12 : Segment Display

Hardware Needed:

fo(j=9;j<=11;j++) digitalWrite(j,HIGH); digitalWrite(dp,LOW); digitalWrite(c,LOW); digitalWrite(f,LOW); } void digital_3(void) // display number 3 {digitalWrite(g,HIGH); digitalWrite(a,HIGH); digitalWrite(b,HIGH); digitalWrite(c,HIGH); digitalWrite(d,HIGH); digitalWrite(dp,LOW); digitalWrite(f,LOW); digitalWrite(e,LOW); } void digital_4(void) // display number 4 {digitalWrite(c,HIGH); digitalWrite(b,HIGH); digitalWrite(f,HIGH); digitalWrite(g,HIGH); digitalWrite(dp,LOW); digitalWrite(a,LOW); digitalWrite(e,LOW); digitalWrite(d,LOW); } void digital_5(void) // display number 5 { unsigned char j; digitalWrite(a,HIGH); digitalWrite(b, LOW); digitalWrite(c,HIGH); digitalWrite(d,HIGH); digitalWrite(e, LOW); digitalWrite(f,HIGH); digitalWrite(g,HIGH); digitalWrite(dp,LOW); } void digital_6(void) // display number 6 { unsigned char j; for(j=7;j<=11;j++) digitalWrite(j,HIGH); digitalWrite(c,HIGH); digitalWrite(dp,LOW); digitalWrite(b,LOW); } void digital_7(void) // display number 7 { unsigned char j; for(j=5;j<=7;j++) digitalWrite(j,HIGH); digitalWrite(dp,LOW); for(j=8;j<=11;j++) digitalWrite(j,LOW); } void digital_8(void) // display number 8 { unsigned char j; for(j=5;j<=11;j++) digitalWrite(j,HIGH); digitalWrite(dp,LOW); } void digital_9(void) // display number 5 { unsigned char j; digitalWrite(a,HIGH); digitalWrite(b,HIGH); digitalWrite(c,HIGH); digitalWrite(d,HIGH); digitalWrite(e, LOW); digitalWrite(f,HIGH); digitalWrite(g,HIGH); digitalWrite(dp,LOW); } void setup() { int i;// set variable for(i=4;i<=11;i++) pinMode(i,OUTPUT);// set pin 4-11as “output” } void loop() { while(1) { digital_0();// display number 0 delay(1000);// wait for 1s digital_1();// display number 1 delay(1000);// wait for 1s digital_2();// display number 2 delay(1000); // wait for 1s digital_3();// display number 3 delay(1000); // wait for 1s digital_4();// display number 4 delay(1000); // wait for 1s digital_5();// display number 5 delay(1000); // wait for 1s digital_6();// display number 6 delay(1000); // wait for 1s digital_7();// display number 7 delay(1000); // wait for 1s digital_8();// display number 8 delay(1000); // wait for 1s digital_9();// display number 9 delay(1000); // wait for 1s }}

Video