Wednesday, 21 January 2015

Using a LDR with Arduino


To know about LDR check wikipedia


The sketch of the above schemetic is based on LED blinking code,but instead of using a fixed delay the rate is determined by the light sensitive sensor called LDR.

So now the following sketch will help you how to read the value of the LDR based on the sensitivity of light.

// Sketch to get the input from the LDR

int inputLDR=A0;
void setup()
{
  pinMode(inputLDR,INPUT);
 Serial.begin(9600);  // starts a serial connection with your computer to display the input of LDR with Baud rate of 9600
}
void loop()
{
   int a;    // to store the values which we received from the LDR
   a=analogRead(inputLDR); // Gets input from the LDR
   Serial.println(a);
}

 








Tuesday, 20 January 2015

Blinking an External LED with an Arduino



The above Schematic will guide you on how an External LED must be interfaced with an Arduino.
In the above case Two LED's red and yellow are connected.

you can use the same blink code which i have given in the previous  post.Instead of using the pin number as 13 you can use the pin 9 and 10;
Any range of resistors between 1K and 10k can be used .

Code to use the above Schematic for blink as well as fading the LED's

int redled=9;
int yellowled=10;
void Setup()
{
   pinMode(redled,OUTPUT);
   pinMode(yellowled,OUTPUT);
}
void loop()
{
// For the blink of both the led

digitalWrite(redled,HIGH);
digitalWrite(yellowled,HIGH);
delay(1000);
digitalWrite(redled,LOW);
digitalWrite(yellowled,LOW);
delay(1000);

// For fading the LED

for(int i=0;i<250;i++)
{
 analogWrite(redled,i);
 analogWrite(yellowled,i);
 }
for(int i=250;i<0;i--)
{
 analogWrite(redled,i);
 analogWrite(yellowled,i);
 }


}//end of loop


Comment either use of code to test the fading and blink



Monday, 19 January 2015

Blink code in Arduino ( Blink LED ON and OFF using Arduino)


/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
 
  This example code is in the public domain.
 */
 
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);     
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}




The following code is available by default in Arduino in File---->Examples---->basics----->blink

Working of the code

The pin 13 avail in the Arduino UNO has a On-board LED with a internal resistance with it .
so in order to activate the internal resistance the code " pinMode(led,OUTPUT) "(in void setup) is used.
The variable led is initialized with 13 and the pin 13 is said to be a output.
So the resistance of the on board LED is activated.


Now in void loop()  the code

digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
 
supplies 5v(ie Vcc) to the LED and hence it glows up..!! :D
now it has a delay(1000) which waits for one second and again it switches off the LED and waits for 1 sec.

This process repeats for ever in void loop()..!!



Getting Started with Arduino


The Arduino environment has been designed to be esy to use for beginners who have no software or electronics Xp's unlike me..!!With Arduino you can build objects that can respond to and/or control lights,sound,touch and movement..(What else do you probably need???)
So you can use Arduino to create your own musical instruments,Robots,light sculptures,games,interactive furniture and even interactive clothing .

Arduino is used in many educational programs around the world,particularly by designers and artists who want ot easily create prototypes but do not need a deep understanding of the technical detailes behind their creations.Because it is designed to be used by non-tech people the software includes plenty of example code to demonstrate how to use the Arduino board .

Arduino Software

Software programs called sketches are created on a computer using the Arduino IDE . The IDE enables you to write and edit code and convert this code into instructions that Arduino hardware understands.The IDE also transfers those instructions to the Arduino board.

Arduino Hardware Spec

 https://h4ckr-naren.blogspot.com/b/post-preview?token=g0a3BEsBAAA.hbmbliLvBIZwcMUU5Tb13A.wnqBlh_p3a-9M-dhxu5rRw&postId=7426553885776567980&type=POST

Monday, 24 November 2014

Step by Step
Photo: Step by Step
Free Recharge of Rs.70 for Downloading Teenpatti App
1) Download App --> http://goo.gl/wfD2oW
2) Login using Facebook and click on World cup and download some resources when asked
3) Now keep tapping on right arrow (>) till the last last screen appears
4) Then on the next screen scroll down and enter your email address & click on I AGREE
(Scroll down only then you can enter Email-Id)
5) You will get a verification email. Verify it and after that click on the PLAY button to participate.
That's it. You will get 2 freecharge coupon on your facebook email id within 6 hours.1 coupon value is Rs.20 and another coupon value is Rs.50
Use these coupons on Freecharge App to Recharge with rs.20 and 50 :)
Offer Valid till 24 December
Any Problem occur then comment we will reply you.

Must give us a like on this post.Your likes  encourage to post more big offers
**********************************************************************
Free Recharge Contest Rs.50 based on Predict.
1) Public your friendlist and person whose friends is 200 or above is valid for this contest only.
2) Share this post publicly and Predict (1-100) what number is store in this file --> http://www.datafilehost.com/d/46fa5ee7
( We have store a number between 1-100 in file so comment number between 1 to 100 only )

3 person whose number is close to our number will get Rs.50 Recharge.You can Participate till Tomorrow (25 November ) 3PM only.Winner will declare in comment box and we will reply to winners to claim their Recharge
Free Recharge of Rs.70 for Downloading Teenpatti App
1) Download App --> http://goo.gl/wfD2oW
2) Login using Facebook and click on World cup and download some resources when asked
3) Now keep tapping on right arrow (>) till the last last screen appears
4) Then on the next screen scroll down and enter your email address & click on I AGREE
(Scroll down only then you can enter Email-Id)
5) You will get a verification email. Verify it and after that click on the PLAY button to participate.
That's it. You will get 2 freecharge coupon on your facebook email id within 6 hours.1 coupon value is Rs.20 and another coupon value is Rs.50
Use these coupons on Freecharge App to Recharge with rs.20 and 50 
Offer Valid till 24 December
Any Problem occur then comment we will reply you.



Must give us a like on this post.Your likes encourage to post more big offers
**********************************************************************
Free Recharge Contest Rs.50 based on Predict.
1) Public your friendlist and person whose friends is 200 or above is valid for this contest only.
2) Share this post publicly and Predict (1-100) what number is store in this file --> http://www.datafilehost.com/d/46fa5ee7
( We have store a number between 1-100 in file so comment number between 1 to 100 only )

3 person whose number is close to our number will get Rs.50 Recharge.You can Participate till Tomorrow (25 November ) 3PM only.Winner will declare in comment box and we will reply to winners to claim their Recharge

Monday, 27 October 2014

Do free calls for 120 minutes..!!!

Free Calling upto 2 hours ( 120 mins ) to any number

1) Download this app Flipcall and sign up ->https://play.google.com/store/apps/details?id=com.flipcall (7mb )2) Enter friend mobile number in app and call3) Now you will receive a call , Pick that call and your call will be connected to your friend.
( Your friend receive a call from your Number )

Flipcall is giving Rs 61.89 Free credits for new user and Rs 0.53 will be deduct from Flipcall credit for 1 min calling so with these free Flipcall Credits you can call upto 120 mins.
( Your friend receive a call from your Number )
Flipcall is giving Rs 61.89 Free credits for new user and Rs 0.53 will be deduct from Flipcall credit for 1 min calling so with these free Flipcall Credits you can call upto 120 mins.


DO SHARE THIS PAGE FOR MORE UPDATES..!!1

Wednesday, 1 October 2014

DOUBLE YOUR RECHARGE...!!!




1) FreeCharge - Rs.20 Cashback on Rs.10 or more for doing payment using credit/debit card 
Do recharge using Freecharge App .No coupon require.
( Not working on Free-Charge Credits )

2) Paytm - Rs.10 cashback on Rs.30 or more
Promocode "A100" ( A100 working on app only )
Promocode "CB100" ( working on website and app both )
A100 and CB100 both can be used maximum10 times and valid till 3rd October for old user also.
By using both code you will get 20 times Rs.10 cashback 

3) Paytm Rs.100 cashback on Rs.400 DTH Recharge
Promocode "DTH100" ( valid till 3rd October )

3) Mobikwik New User Offer - Add Rs.100 and get Cashback of Rs.100 on android app only
Add 100 Rs to your wallet,
Goto my account and redeem Promocode "100PE100"
( Valid on android app till 10 oct )

4) Mobikwik New User Offer - Add Rs.50 and get Cashback of Rs.50
Promocode "ENTERMOBI"