Posts

Showing posts from June, 2021

ARDUINO PULSEOXIMETER

Image
     VIDEO: VIDEO LINK:                             https://youtu.be/ssOLHjx0Axo COMPONENTS REQUIRED: 1.ARDUINO NANO 2.MAX30100 PULSEOXISENSOR 3.4.7K RESISTOR 4.OLED DISPLAY 5.BREAD BOARD CODE: //CREATIVE PRADEEP// //ARDEUINO PULSEOXIMETER// #include <Wire.h> #include "MAX30100_PulseOximeter.h" #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #define ENABLE_MAX30100 1 #define SCREEN_WIDTH 128 // OLED display width, in pixels #define SCREEN_HEIGHT 32 //64 // OLED display height, in pixels // Declaration for an SSD1306 display connected to I2C (SDA, SCL pins) // The pins for I2C are defined by the Wire-library. // On an arduino UNO:       A4(SDA), A5(SCL) // On an arduino MEGA 2560: 20(SDA), 21(SCL) // On an arduino LEONARDO:   2(SDA),  3(SCL), ... #define OLED_RESET    4 // 4 // Reset pin # (or -1 if sharing Arduino reset pin) #d...

BLUETOOTH HOME AUTOMATION WITH EEPROM MEMORY

Image
VIDEO:   VIDEO LINK:                         https://youtu.be/m42a8jYOdbc COMPONENTS REQUIRED : 1. BLUETOOTH MODULE  2. RELAY MODULE  3. ARDUINO 4. JUMPER CABLES  5. AC BULB  CODE: //Creative Pradeep// //Bluetooth APP + Manual Control Home Automation //Store Relay state in EEPROM Memory #include <SPI.h> #include <Wire.h> #include <EEPROM.h> String readString;  int relay_1 = 12;  int relay_2 = 11;  int relay_3 = 10;  int relay_4 = 9; const int mswitch_1 = 8; const int mswitch_2 = 7; const int mswitch_3 = 6; const int mswitch_4 = 5; int toggleState_1 = 0;  int toggleState_2 = 0;  int toggleState_3 = 0;  int toggleState_4 = 0; void setup() {     Serial.begin(9600);      pinMode(relay_1, OUTPUT);   pinMode(relay_2, OUTPUT);   pinMode(relay_3, OUTPUT);   pinMode(relay_4, OUTPUT);   pinMode(mswitch_1, INPUT_PULL...

TOUCH SENSOR LIGHT PROJECT

Image
 VIDEO: VIDEO LINK: https://youtu.be/_L6CDi5Otzs COMPONENTS REQUIRED: 1.TOUCH SENSOR 2.ARDUINO  3.RELAY MODULE 4.JUMPER CABLES 5.AC BULB CODE: //Creative Pradeep// //Touch Sensor Relay// int touchPin = 2; int relayPin = 3; int val = 0; int lightON = 0; int touched = 0; void setup() {   Serial.begin(9600);   pinMode(touchPin, INPUT);    pinMode(relayPin, OUTPUT); } void loop() {   val = digitalRead(touchPin);   if(val == HIGH && lightON == LOW){     touched = 1-touched;     delay(100);   }       lightON = val;       if(touched == HIGH){         Serial.println("Light ON");         digitalWrite(relayPin, LOW);                }else{         Serial.println("Light OFF");         digitalWrite(relayPin, HIGH);           }      ...

2WAY LIGHT CONTROL USING BLYNK AND NODEMCU

Image
VIDEO: VIDEO LINK :    https://youtu.be/3cafRxcZkrU MATERIALS REQUIRED: 1.NODEMCU 2.5V RELAY MODULE 3.2WAY SWITCH 4.AC BULB AND PLUG 5.JUMPER CABLES CODE: // CREATIVE PRADEEP// #define BLYNK_PRINT Serial #include <ESP8266WiFi.h> #include <BlynkSimpleEsp8266.h> // You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth[] = "---------------"; //You will get this Auth Token in Gmail if you signin Blynk app with your Gmail ID // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "------"; //Enter your WIFI Name char pass[] = "------";//Enter your WIFI Password void setup() {   // Debug console   Serial.begin(9600);   pinMode(D0,OUTPUT);   pinMode(D1,OUTPUT);   pinMode(D2,OUTPUT);   pinMode(D3,OUTPUT);      digitalWrite(D0,HIGH);   digitalWrite(D1,HIGH);   digitalWrite(D2,HIGH);   digitalWrite(D3,HIGH);      Blynk.begin(auth, ssi...

WiFi VOICE AND MANUAL CONTROL HOME AUTOMATION

Image
 VIDEO: VIDEO LINK:            https://youtu.be/YPf_wWLIik8 CODE: //CREATIVE PRADEEP THE HOME OF ELECTRONICS// #define BLYNK_PRINT Serial #include <ESP8266WiFi.h> #include <BlynkSimpleEsp8266.h> char auth[] ="Your Auth. Key";// You should get Auth Token in the Blynk App.                               // Go to the Project Settings (nut icon). const int R1  = 5;            // Output Relay 1 GPI0 05 (D1) const int R2  = 4;            // Output Relay 2 GPI0 04 (D2) char ssid[] = "Your Wifi Network name";     // Your WiFi credentials. char pass[] = "Password of your network";   // Set password to "" for open networks. void setup() {   Serial.begin(9600);         // Debug console   Blynk.begin(auth, ssid, pass);   pinMode(R1,OUTPUT);  ...

TM1637 MODULE AUTOMATIC COUNTER

Image
   VIDEO LINK: https://youtu.be/SJogL6qopYg CODE: //CREATIVE PRADEEP THE HOME OF ELECTRONICS// #include<Arduino.h> #include<TM1637Display.h> #define CLK 2 #define DIO 3 TM1637Display display (CLK,DIO); int count=0; void setup() {  Serial.begin(9600);  display.setBrightness(0x0f); } void loop() {      count++;   display.showNumberDec(count);   delay(100);   if (count==9999)   {     count=0;     display.clear();     delay(1000);     display.showNumberDec(0,true);     delay(500);   } } CIRCUIT DIAGRAM: CHANNEL LINK:                     https://youtube.com/c/CreativePradeep

COFFIN SONG WITH ARDUINO BUZZER

Image
  VIDEO:  VIDEO LINK: https://youtu.be/RzwmPTipFJU COFFIN SONG CODE: //CREATIVE PRADEEP THE HOME OF ELECTRONICS// #include <pitches.h> // output pin is 10, you can change it down in the void setup. #include "pitches.h" int melody[] = {   NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4,   NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4,   NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4,   NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4,   NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4,   NOTE_D5, NOTE_D5, NOTE_D5, NOTE_D5,   NOTE_C5, NOTE_C5, NOTE_C5, NOTE_C5,    NOTE_F5, NOTE_F5, NOTE_F5, NOTE_F5,    NOTE_G5, NOTE_G5, NOTE_G5, NOTE_G5,   NOTE_G5, NOTE_G5, NOTE_G5, NOTE_G5,    NOTE_G5, NOTE_G5, NOTE_G5, NOTE_G5,    NOTE_C5, NOTE_AS4, NOTE_A4, NOTE_F4,   NOTE_G4, 0, NOTE_G4, NOTE_D5,   NOTE_C5, 0, NOTE_AS4, 0,   NOTE_A4, 0, NOTE_A4, NOTE_A4,   NOTE_C5, 0, NOTE_AS4, NOTE_A4,    NOTE_G4,0, NOTE_G4, NOTE_AS5, ...

BLUETOOTH CONTROL LED

Image
  VIDEO LINK:                 https://youtu.be/drEbmP2fOp4 CODE: //CREATIVE PRADEEP THE HOME OF ELECTRONICS// char Incoming_value = 0;                  void setup()  {   Serial.begin(9600);            pinMode(13, OUTPUT);        } void loop() {   if(Serial.available() > 0)     {     Incoming_value = Serial.read();           Serial.print(Incoming_value);             Serial.print("\n");             if(Incoming_value == '1')                    digitalWrite(13, HIGH);       else if(Incoming_value == '0')              digitalWrite(13, LOW);      }            ...

ROBOTIC EYES

Image
VIDEO:  VIDEO LINK:                             https://youtu.be/t1SipMP_XL0 CODE: //CREATIVE PRADEEP THE HOME OF ELECTRONICS//  #include <Wire.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x3F, 16, 2); int x = 0; // the 8 arrays that form each segment of the custom numbers byte LT[8] =  {   B00111,   B01111,   B11111,   B11111,   B11111,   B11111,   B11111,   B11111 }; byte UB[8] = {   B11111,   B11111,   B11111,   B00000,   B00000,   B00000,   B00000,   B00000 }; byte RT[8] = {   B11100,   B11110,   B11111,   B11111,   B11111,   B11111,   B11111,   B11111 }; byte LL[8] = {   B11111,   B11111,   B11111,   B11111,   B11111,   B11111,   B01111,   B00111 }; byte LB[8] = {   B00000,   B00000,   B00000, ...

SOUND REACTIVE LED

Image
 VIDEO:   VIDEO LINK:                             https://youtu.be/ngv5kF2EpzQ CODE: //CREATIVE PRADEEP THE HOME OF ELECTRONICS// int soundSensor = 2; int LED = 3; void setup() {   pinMode (soundSensor, INPUT);   pinMode (LED, OUTPUT); } void loop() {   int statusSensor = digitalRead (soundSensor);     if (statusSensor == 1)   {     digitalWrite(LED, HIGH);   }     else   {     digitalWrite(LED, LOW);   }   } CIRCUIT DIAGRAM:                     CHANNEL LINK:             https://youtube.com/c/CreativePradeep

ARDUINO PUSH BUTTON CONTROL RELAY

Image
 VIDEO:                                                          https://youtu.be/D9R2lEusdKQ CODE:  //CREATIVE PRADEEP THE HOME OF ELECTRONICS //Push Button Relay Control int pbuttonPin = 2; int relayPin = 10; int pbuttonPin2 = 3; int relayPin2 = 11; int val = 0;  int lightON = 0; int pushed = 0; int val2 = 0;  int lightON2 = 0; int pushed2 = 0; void setup() {   Serial.begin(9600);   pinMode(pbuttonPin, INPUT_PULLUP);    pinMode(relayPin, OUTPUT);    pinMode(pbuttonPin2, INPUT_PULLUP);    pinMode(relayPin2, OUTPUT); } void loop() {   val = digitalRead(pbuttonPin);   val2 = digitalRead(pbuttonPin2);    //Relay 1   if(val == HIGH && lightON == LOW){     pushed = 1-pushed;     delay(100);   }       lightON = va...

SMART BARRIER SYSTEM

Image
 VIDEO: https://youtu.be/-uGC-ngwZVo  CIRCUIT DIAGRAM: CODE: //Creative Pradeep The Home of Electronics// #include<Servo.h> Servo myservo; const int trigPin=3; const int echoPin=5;  long tmeduration; int distance; void setup() {   myservo.attach(9);   pinMode(trigPin,OUTPUT);   pinMode(echoPin,INPUT);   Serial.begin(9600);       } void loop() {   digitalWrite(trigPin,LOW);   delayMicroseconds(2);   digitalWrite(trigPin,HIGH);   delayMicroseconds(10);    digitalWrite(trigPin,LOW);    tmeduration=pulseIn(echoPin,HIGH); distance=(0.034*tmeduration)/2; if(distance<=20){      myservo.write(90);   }   else{     myservo.write(0);}      Serial.print("distance:");     Serial.println(distance);        delay(1);    } https://youtube.com/c/CreativePradeep