Friday 22 July 2016

Touch sensitive worm using Arduino Uno

​Hey guys, after a long time I am writing. I hope you guys are all good. Today I am writing an easy project but you will get fun from it, confirmed! 

Required Components:-
​1.Arduino Uno
2.LDR(light dependent resistor)
3.LED (10 pieces)
4.Resistor(100 ohm and 100K)
5.Male to Male jumpers
6.Bread board
Attach all of them according to the picture-
Required Code:-
int LDRvalue=0;
int LDRsensitivity=400;
void setup() {
pinMode(13,OUTPUT);
pinMode(12,OUTPUT);
pinMode(11,OUTPUT);
pinMode(10,OUTPUT);
pinMode(9,OUTPUT);
pinMode(8,OUTPUT);
pinMode(7,OUTPUT);
pinMode(6,OUTPUT);
pinMode(5,OUTPUT);
pinMode(4,OUTPUT);
Serial.begin(9600);
}

void loop() {
  int i=13;
  int j=12;
  for(int k=0;i<=13&&i>=4&&j<=12&&i>=4;k=k+1){
    LDRvalue=analogRead(A0);
    Serial.println(LDRvalue);
    if(LDRvalue>LDRsensitivity){
    Serial.println(i);
    Serial.println(j);
    digitalWrite(i,HIGH);
    digitalWrite(j,HIGH);
    delay(100);
    digitalWrite(i,LOW);
    digitalWrite(j,LOW);
    i=i-1;
    j=j-1;
    delay(100);
    }
    else{
    Serial.println(i);
    Serial.println(j);
    digitalWrite(i,HIGH);
    digitalWrite(j,HIGH);
    delay(100);
    digitalWrite(i,LOW);
    digitalWrite(j,LOW);
    i=i+1;
    j=j+1;
    delay(100);
    }
  }

}
   See my video on youtube:-
Thank you.

Sunday 3 July 2016

Windows search bar not working or Cortana not working !

Some days ago I found that my search bar is not working. Whenever I am pressing it It remains as it is. Now here is simple solution, it worked for me, I hope it will also work for you-
   

  1. Go to 'Task Manager'.  

     2. Then go to 'Windows Explorer' and press restart.
  
                     that completes the job, pretty simple, isn't it? 
  
NOTE: if your task-bar is not working or remains insensitive then press 'Ctrl+Alt+Del' from your keyboard and you will directly enter to some options which includes 'Task Manager'. Now perform the above job. Good luck!