Posts

New BLYNK IOT Automation

Image
 //https://blynk.cloud/dashboard/61173/global/filter/352881/organization/61173/devices/180825/dashboard // Fill-in information from your Blynk Template here #define BLYNK_TEMPLATE_ID "xxxxxxxxxx"// Enter the Blynk template ID here #define BLYNK_DEVICE_NAME "Anokhautomation"// Enter the Blynk Device Name here //#define BLYNK_DEVICE_NAME "" #define BLYNK_FIRMWARE_VERSION        "0.1.0" #define BLYNK_PRINT Serial #define BLYNK_DEBUG //#define APP_DEBUG // Uncomment your board, or configure a custom board in Settings.h //#define USE_SPARKFUN_BLYNK_BOARD #define USE_NODE_MCU_BOARD //#define USE_WITTY_CLOUD_BOARD // define the GPIO connected with Relays #define RelayPin1 5  //connect Relay 1 to D1 pin of Node MCU #define RelayPin2 4  //connect Relay 2 to D2 pin of Node MCU #define RelayPin3 14 //connect Relay 3 to D5 pin of Node MCU #define RelayPin4 12 //connect Relay 4 to D6 pin of Node MCU // define the GPIO connected with push buttons #define Switc...

Proteus Simulation 1 Button Motor control with Arduino and N channel Mosfet

Image
  int pbutton=8;//Initialised pin # 8 as variable name pushtton int Motor=3;//initialised pin # 3 as Motor int val=0;// at initial value of variable name val = 0 int Motor_on=0;//at initial value of variable name Motor_on = 0 int pushed=0;//at initial value of variable name pushed = 0 void setup() {   Serial.begin(9600);   pinMode(pbutton, INPUT_PULLUP);// Connect one point of Pushbutton to D8 Pin of Arduino and other point to GND of Arduino.      pinMode(Motor, OUTPUT); } void loop()  {   val=digitalRead(pbutton);   if(val==HIGH && Motor_on==LOW)   {     pushed=1-pushed;     delay(100);   }   Motor_on=val;   if(pushed==LOW)   {     Serial.println("Motor is Running");     digitalWrite(Motor,HIGH);   }      else   {     Serial.println("Motor is Stopped");     digitalWrite(Motor, LOW);   } }

DIY Power bank

Image
 https://photos.app.goo.gl/QjjrdxAnZfLkAYYR7

Security Lock with 4x4 Keypad and PushButton

Image
  //current password is 1234,press# key to change new password and enter new password 2 times to confirm. #include <Keypad.h> #include<EEPROM.h> #include <Wire.h>  #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27, 16, 2); char password[4];// current password is 1234 char initial_password[4],new_password[4];// press"#" symbol to change current password   int vcc=11; int i=0; int button =10;// added a push button to open the lock from inside. int relay_pin = 11; char key_pressed=0; const byte rows = 4;  const byte columns = 4;  char hexaKeys[rows][columns] = { {'1','2','3','A'}, {'4','5','6','B'}, {'7','8','9','C'}, {'*','0','#','D'} }; byte row_pins[rows]={2,3,4,5}; byte column_pins[columns]={6,7,8,9}; Keypad keypad_key=Keypad( makeKeymap(hexaKeys),row_pins,column_pins,rows,columns); void setup(){ lcd.begin(); lcd.back...

4 Digit Security lock with 4x4 Matrix Keypad and I2C LCD display.

Image
//current password is 1234,press# key to change new password and enter new password 2 times to confirm. #include <Keypad.h> #include<EEPROM.h> #include <Wire.h>  #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27, 16, 2); char password[4];// current password is 1234 char initial_password[4],new_password[4];// press"#" symbol to change current password   int vcc=11; int i=0; int relay_pin = 11; char key_pressed=0; const byte rows = 4;  const byte columns = 4;  char hexaKeys[rows][columns] = { {'1','2','3','A'}, {'4','5','6','B'}, {'7','8','9','C'}, {'*','0','#','D'} }; byte row_pins[rows]={2,3,4,5}; byte column_pins[columns]={6,7,8,9}; Keypad keypad_key=Keypad( makeKeymap(hexaKeys),row_pins,column_pins,rows,columns); void setup(){ lcd.begin(); lcd.backlight(); pinMode(relay_pin, OUTPUT); pinMode(vcc, OUTPUT); lcd.print(...

Proteus simulation 4x4 Matrix Keypad with Arduino and LCD screen

Image
  /*   Matrix Keypad with LCD Display Demo   keypad-demo-lcd.ino   Demonstrates use of 4x4 matrix membrane keypad with Arduino   Results on LCD Display   Display uses I2C backpack   DroneBot Workshop 2020   https://dronebotworkshop.com */ // Include Arduino Wire library for I2C #include <Wire.h>  // Include LCD display library for I2C #include <LiquidCrystal_I2C.h> // Include Keypad library #include <Keypad.h> // Constants for row and column sizes const byte ROWS = 4; const byte COLS = 4; // Array to represent keys on keypad char hexaKeys[ROWS][COLS] = {   {'1', '2', '3', 'A'},   {'4', '5', '6', 'B'},   {'7', '8', '9', 'C'},   {'*', '0', '#', 'D'} }; // Connections to Arduino byte rowPins[ROWS] = {9, 8, 7, 6}; byte colPins[COLS] = {5, 4, 3, 2}; // Create keypad object Keypad customKeypad = Keypad(makeKeymap(hexaKeys), rowPins, colPins, ROWS, ...

I2C LCD Proteus Simulation

Image
  #include <Wire.h>  #include <LiquidCrystal_I2C.h> // Set the LCD address to 0x27 for a 16 chars and 2 line display LiquidCrystal_I2C lcd(0x20, 16, 2); void setup() {   // initialize the LCD   lcd.begin();   // Turn on the blacklight and print a message.   lcd.backlight();   lcd.print("ANOKHAUTOMATION"); } void loop() {   // Do nothing here... }