Posts

Showing posts from August, 2021

PhotoResistor Project : To detect Day or Night

Image
 Arduino project  : Detect Day or night with photoresistor Sensor Arduino project  Wiring:- LED   Arduino  Uno   NIGHTLED   12   DAYLED   13   PhotoR (-)   A0   PhotoR (+)   5v   Coding :-  int  light; int  bulb = 13 ; void   setup () {   Serial. begin ( 9600 );    pinMode (bulb,OUTPUT);    pinMode ( 12 ,OUTPUT);    // put your setup code here, to run once: } void   loop () {   light = analogRead (A0);   Serial. println (light);       if (light > 10 )   {      digitalWrite (bulb,HIGH);      digitalWrite ( 12 ,LOW);   }    else {      digitalWrite (bulb,LOW);      digitalWrite ( 12 ,HIGH);   }    delay ( 200 );    // put...

Add two Number

 Program #include <stdio.h> void   main () {      printf ( " \n Welcome To Iot Project \n " );      int  a,b,sum;      printf ( "Enter 1st number=\n" );      scanf ( " %d " , & a);      printf ( "Enter 2nd Number=\n" );      scanf ( " %d " , & b);     sum = a + b;      printf ( "Sum of  %d  and  %d  =  %d " ,a,b,sum); } Output Welcome To Iot Project Enter 1st number=12 Enter 2nd Number=4 Sum of 12 and 4 = 16                                                                       OR Program #include <s...

Print Hello Programmer

Program //Hello  Programmer #include <stdio.h> void   main () {      printf ( "Hey  \n Welcome to Iot project \n " );      printf ( "Hello Programmer" ); } Output Hey  Welcome to Iot project Hello Programmer

3 Light Effect with Arduino project

Image
 3 Light Effect with Arduino project Componets :- 1. Arduino uno  2. 13 LED 3. Jumper Wire Yah project me apko LED light me 3 effects dekhno ko milenge jiske use kr ke ap aur bhi achhe achhe effects bana sakte hai. Light Effects Project Wiring :- LED   Arduino  Uno   Blue1   1   Red1   2   Yell1   3   Blue2   4   Red2   5   Yell2   6   Blue3   7   Red3   8   Yell3   9   Blue4   10   Red4   11   Yell4   12   Blue5   13   GND   GND   Coding:-  int del1=50; int blue1 = 1; int red1 = 2; int yell1 = 3; int blue2=4; int red2 =5; int yell2 =6; int blue3 =7; int red3 =8; int yell3 =9; int blue4 =10; int red4 =11; int yell4 =12; int blue5=13; int de=50; void setup() {   ...