This is a very important tutorial for beginners as you can do major projects using this theory. Only thing is that you have to think beyond the normal.

I will explain one by one. first of all shall we collect the necessary parts for this project. You may need following parts.



Let's do the wiring.




Lets start coding.

I have assiged here int variable for 13 pin of arduino (on board led) and I call that pin as led.Then i make the variable

int led = 13;

another variable for the "push button" . I assiged again int variable to Pin number 8 and i call it as button.

int button = 8;

now I want to light the LED therefore I set the pin number 13 (led) as a output.

pinMode(led,OUTPUT);

and also we get the signal from Button to arduino, we set that pin 8 as input.

pinMode(button,INPUT);


As i have connected GROUND wire to input pin 8 (button) its current always 0. If is push the button , 5v pin connect with the pin 8, then the current of pin 8 become 1. ( 1 = 5v). In arduino it 5v may be called as "1" or "HIGH" and Ground volt may be called as "0" or "LOW".

Now i want to get the value of pin 8. so i use the following code.

digitalRead(button); if the button is pressed, this will be "1" else "0"

Now you can understand what shall we do. we use "if" command.


if (digitalRead(button)==HIGH) {
digitalWrite(led,HIGH); // we use digitalWrite command to get out put pin voltage 5v or 0.
delay(300);  }// delay(1000) = 1 second. here the programme will stop a while.
else{
digitalWrite(led,LOW);} // off the led


Full code is like this

You can see now if you press the button, LED ON and release the button LED off.
If you press and hold the button LED continuously on and off 

another issue is there. IF you press the button LED on and wait a while due to the delay function. Until the delay time is over the programme do not run the codes. If we have added another code after this button code we can not run both codes simultaneously. 

Due to those matters we have to do some changes to the code.

/*

/**
 * www.easymades.com
 * www.facebooc.com/easymadescom
 * Arduino Button
 */

int led = 13;
int button = 8;
int Bstatus=LOW;
int current;
int newtime;
int x = LOW;
int i =  0;

void setup() {
  // put your setup code here, to run once:
pinMode(led,OUTPUT);
pinMode(button,INPUT);
//Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:

Bstatus = digitalRead(button);



//for this purpose we can use millis command



current = millis();


if (digitalRead(button)==HIGH){ // or you can use as 1
//Serial.println("Button pressed");
//delay(1000); // 
if ((current - newtime) > 200){ // change 200 then you can control the speed.
  newtime = current ;
i = i+1;

if (i > 1){i=0;}

if (i == 0) {
    x = LOW;
        }
  else{ x = HIGH;}

}
//newtime = current ; //if you want to on/off when press and hold the button then 
}

digitalWrite(led,x);
//Serial.println("Button Button released");
  

}
Watch the video for more details




********Your comments are highly appreciated************


Vibration sensor is a kind of hardware. It is not like other electronic sensors. This sensor can be seen as a module as well as separate sensor.
Let's start with Easy Mades.





But in this tutorial i have used the vibration sensor only. I hope it will help you to understand the sensors's behavior easily.

If you shake the sensor you can feel and hear something is moving inside the sensor. Arduino programme detects that movement itself to calculate the sensitivity.

You only need following few componants

01. 1K resister
02.Vibration sensor
03.Arduino Uno + Atmega 328 chip.


Circuit diagram as follows.




You can wire the circuit as shown below.



Copy and paste following code and upload .


/*

/**
 * www.easymades.com
 * www.facebooc.com/easymadescom
 * Arduino Shock Sensor
 */
int shock = A0;

void setup() {
  // put your setup code here, to run once:
pinMode(shock,INPUT);
Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
Serial.println(analogRead(shock));
delay(300);

}

Watch the following video for more details.








**********Your comments are highly appreciated***********




This is the most cheapest and effective SSD counter. And you can use it for three different purposes. Lets start to programme it with Easy Mades.

Watch this sample Video




You can use the same programme for
01. Flood level meter
02.Visitor Counter
03.Continue Counter

But You have to do only few changes to the progtamme.


Following components are needed.

01.Push button switch
02.10k Potentiometer
03.Arduino Uno with Atmega 328
04.Seven Segments (4 Digits)


I have used here a comman Anode Seven Segment. Details as follows
KYX - 5461BS SSD was used in this project





  Pin connection to Arduino Uno

SSD Pin No Arduino Pin SSD
1 6 e
2 5 d
3 1 Dp
4 4 c
5 8 g
6 9 Digit 4
7 3 b
8 10 Digit 3
9 11 Digit 2
10 7 f
11 2 a
12 12 Digit 1


a
f b
g
e c
d

Circuit Diagram



01.Flood Level Meter

You can connect to Analog pin 0 the following Circuit



02 .Continue counter 

You can connect to Analog pin 0 the following Circuit


03.Visitors counter


If you want to count number of visitors then you can use the following diagram. Use LDR and light a laser and focus to the face of LDR.




Then you can copy and upload following codes to run the programme.

/*

/** This code is edited by www.easymades.com **/


int Ntime = 0;
int Otime = 0;
float X = 0;
int time = 4;

int pinA = 2;
int pinB = 3;
int pinC = 4;
int pinD = 5;
int pinE = 6;
int pinF = 7;
int pinG = 8;
int pinDP = 1;

int DIG1 = 12;
int DIG2 = 11;
int DIG3 = 10;
int DIG4 = 9;

void choose_digit(char num) {
  switch (num) {
  default: digitalWrite(pinA, LOW); digitalWrite(pinB, LOW); digitalWrite(pinC, LOW); digitalWrite(pinD, LOW); digitalWrite(pinE, LOW); digitalWrite(pinF, LOW); digitalWrite(pinG, HIGH); digitalWrite(pinDP, HIGH); break; case 1: digitalWrite(pinA, HIGH); digitalWrite(pinB, LOW); digitalWrite(pinC, LOW); digitalWrite(pinD, HIGH); digitalWrite(pinE, HIGH); digitalWrite(pinF, HIGH); digitalWrite(pinG, HIGH); digitalWrite(pinDP, HIGH); break; case 2: digitalWrite(pinA, LOW); digitalWrite(pinB, LOW); digitalWrite(pinC, HIGH); digitalWrite(pinD, LOW); digitalWrite(pinE, LOW); digitalWrite(pinF, HIGH); digitalWrite(pinG, LOW); digitalWrite(pinDP, HIGH); break; case 3: digitalWrite(pinA, LOW); digitalWrite(pinB, LOW); digitalWrite(pinC, LOW); digitalWrite(pinD, LOW); digitalWrite(pinE, HIGH); digitalWrite(pinF, HIGH); digitalWrite(pinG, LOW); digitalWrite(pinDP, HIGH); break; case 4: digitalWrite(pinA, HIGH); digitalWrite(pinB, LOW); digitalWrite(pinC, LOW); digitalWrite(pinD, HIGH); digitalWrite(pinE, HIGH); digitalWrite(pinF, LOW); digitalWrite(pinG, LOW); digitalWrite(pinDP, HIGH); break; case 5: digitalWrite(pinA, LOW); digitalWrite(pinB, HIGH); digitalWrite(pinC, LOW); digitalWrite(pinD, LOW); digitalWrite(pinE, HIGH); digitalWrite(pinF, LOW); digitalWrite(pinG, LOW); digitalWrite(pinDP, HIGH); break; case 6: digitalWrite(pinA, LOW); digitalWrite(pinB, HIGH); digitalWrite(pinC, LOW); digitalWrite(pinD, LOW); digitalWrite(pinE, LOW); digitalWrite(pinF, LOW); digitalWrite(pinG, LOW); digitalWrite(pinDP, HIGH); break; case 7: digitalWrite(pinA, LOW); digitalWrite(pinB, LOW); digitalWrite(pinC, LOW); digitalWrite(pinD, HIGH); digitalWrite(pinE, HIGH); digitalWrite(pinF, HIGH); digitalWrite(pinG, HIGH); digitalWrite(pinDP, HIGH); break; case 8: digitalWrite(pinA, LOW); digitalWrite(pinB, LOW); digitalWrite(pinC, LOW); digitalWrite(pinD, LOW); digitalWrite(pinE, LOW); digitalWrite(pinF, LOW); digitalWrite(pinG, LOW); digitalWrite(pinDP, HIGH); break; case 9: digitalWrite(pinA, LOW); digitalWrite(pinB, LOW); digitalWrite(pinC, LOW); digitalWrite(pinD, LOW); digitalWrite(pinE, HIGH); digitalWrite(pinF, LOW); digitalWrite(pinG, LOW); digitalWrite(pinDP, HIGH); break;

      ;
  }
}

void pick_digit(int digit) {
  digitalWrite(DIG1, LOW);
  digitalWrite(DIG2, LOW);
  digitalWrite(DIG3, LOW);
  digitalWrite(DIG4, LOW); switch (digit) {
  case 1: digitalWrite(DIG1, HIGH); break; case 2: digitalWrite(DIG2, HIGH); break; case 3: digitalWrite(DIG3, HIGH); break; default: digitalWrite(DIG4, HIGH); break;
  }

}

void decimal_place() {
  digitalWrite(pinDP, LOW);
}

void seven_segment(int number) {
  unsigned char thousands = int (number / 1000);
  unsigned char hundreds = int ((number / 100) % 10);
  unsigned char tens = int ((number / 10) % 10);
  unsigned char ones = int (number % 10); //1234
  if (thousands > 0) {
    choose_digit(thousands);
    pick_digit(1);
  }

  if ((hundreds > 0) | (thousands > 0)) {
    delay(time); choose_digit(hundreds);
    pick_digit(2);
  }

  if ((tens > 0) || (hundreds > 0) | (thousands > 0)) {
    //decimal_place();
    delay(time); choose_digit(tens);
    pick_digit(3);
  }


  // add decimal point
  delay(time); choose_digit(ones);
  pick_digit(4);

  delay(time);

}

void setup() {
  pinMode(DIG1, OUTPUT);
  pinMode(DIG2, OUTPUT);
  pinMode(DIG3, OUTPUT);
  pinMode(DIG4, OUTPUT); 
  pinMode(pinA, OUTPUT);
  pinMode(pinB, OUTPUT);
  pinMode(pinC, OUTPUT);
  pinMode(pinD, OUTPUT);
  pinMode(pinE, OUTPUT);
  pinMode(pinF, OUTPUT);
  pinMode(pinG, OUTPUT);
  pinMode(pinDP, OUTPUT);

}

void loop() {
float sensor_value = map(analogRead(A0),0,1023,0,3000); // for Flood level Sensor this Eg:3000 is the maximum level




// Continue counter and Visitors counter
/** 
  Ntime = millis();
  if (analogRead(A0) > 0) {

    if ((Ntime - Otime) > 200) {
      X = X + 1;
      Otime = Ntime; // Active this to visitors  counter
      {
        if (X == 9999) {
          X = 0;
        }
      }
    }
    //Otime = Ntime; // Active this to continue counter

  }

  float sensor_value = X; */



  
  seven_segment(sensor_value);

}
Code should be edited as follows.

01. Flood Level




02. Continue Counter



03. Visitors Counter





**Your comments are highly appreciated by Easy Mades **





Among the most of fake free energy circuits, I found and tested this circuit as a good one. Why is this called as free energy?
Because its generates more power than input voltage. This power is more enough to light 1W LED as well. 

You are required following parts

01. 2N2222 Transister
02. 1k Resister
03. Round ferrite rod .
04. 30 SWG copper coil,


First we have to prepare the ferrite rod. You can take one from CFL
  
Now you have to make two coils . 1st one is 10 rounds and tap the coil and more 10 rounds from 30 SWG coil. Remove the protection coat cover of three ends.

circuit diagram as follows




Transistor pin out


You can connect even 2 LEDs as shown in below. But you need only 1.5v power.

Completed circuit


Green Wire    - LED(+)
Yellow Wire       - LED (-) and battery (-) 
White Wire         - Power +1.5v



In my 1st tutorial I taught you about joysticks and how it is working and I promised to go further about joysticks. As it is in this post you can understand how to use this joystick with arduino in practically.

To build up this project. you need the following parts.

1. Arduino Uno
2. Joysticks
3. LEDs
4. 220ohm Resisters
5. Jumper wires
6. Project board



Remember that the Atmega328 should be uploaded the Bootloader.

Then understand carefully the systematic of wiring as shown below.


Then CONNECT ARDUINO with your PC and upload the following code.

usb 3.0

REMEMBER TO NOTE : IF YOUR PC HAS USB 3.0 PORT DOT NOT CONNECT ARDUINO TO THAT PORT. PLEASE MAKE SURE YOU HAVE CONNECTED ARDUINO WITH USB 2.0 PORT








COPY AND UPLOAD FOLLOWING CODE


CHECK THIS VIDEO


Welcome to Easy Mades. This is one of interesting part to work with Joystick. As we know joysticks are everywhere. Not only for simple games but also for major projects have joysticks to control devices, robots, vehicles, machines etc.

Therefore shall we learn one by one about joysticks.

This joystick has 5 pins

= GND
= +5V
= VRx
= VRy
= SW



Then how it is working. 

There are two potentiometers one is for x side other one for y side. 


















normally both potentiometers are stopped in center point. when we push it up and down the resistance goes up and down.




As the resistance change while rotating we can read those value as an analog reading. Then the Joystick give us values through VRx and VRx pins. Then we can give commands what should be in various values.

As you know the analog value can reads 0 to 1024 in arduino. in normal mode VRx and VRx pins reads 512.

SW pin is the out put pin of a push button switch.

Lets check in next tutorial how to code Joystick connecting with Arduino Uno. 

Stay with Easy Mades

















Rooting is a kind of giving full access authority to android device of its hardware and software it is a Privilege control. Normally android devices are restricted or limited to access its hardware and software as some reasons. However rooting is not always good to you and not bad as well. Major problem of rooting is it may avoid the warranty granted to your device by your manufacture and also unwanted apps or virus may attack to the device. But we are more prefer to root the devices as we can install custom roms, over clock the processor, ram boosting, patching apps etc.

Whatever the pros and cons about rooting Android Devices this is the best and easiest way to root android for the interest parties.

Some android devices, most probably devices with new OSs may not be rooted but the software will update latter. And also its your own risk to root and I cannot take any responsibility regarding the damages as following these instructions.

First you have to download the software called iRoot from iroot web then install it to you PC.

Then go to setting of your android device and enable USB Debugging and give the permission to access Unknown Apps.



Now connect the mobile phone to PC using USB cable.



Run iroot software

You must connect your Pc with internet to download the necessary files.

Press connect button of the software, 
it will take a time to identify the device and device name will show in iroot software.
     


Then click root button.



Wait until the root process is completed. During the rooting process your android device may restart few times and few apps may be installed to the device.




Watch for more details




-->
Copyright © 2013 Easy Mades