Posts

Showing posts from December, 2021

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... }

7digit KeypadLock

Image
  /*   Matrix Keypad Combination Lock Demo   keypad-demo-lock.ino   Combination lock using 4x4 matrix membrane keypad with Arduino   Results on LCD display   Drives relay   DroneBot Workshop 2020   https://dronebotworkshop.com   Based upon code from https://www.circuitbasics.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> // Length of password + 1 for null character #define Password_Length 8 // Character to hold password input char Data[Password_Length]; // Password char Master[Password_Length] = "123#567";// change Password // Pin connected to lock relay input int lockOutput = 13; // Counter for character entries byte data_count = 0; // Character to hold key input char customKey; // Constants for row and column sizes const byte ROWS = 4; const byte COLS = 4; // Array to represent keys on keypad char hexaKeys[ROWS][COLS] = {  

Keypad Lock with Password Proteus Simulation

Image
  // Upload this code for set Password #include <EEPROM.h> void setup(){ } void loop(){ EEPROM.write(0, '1'); EEPROM.write(1, '2'); EEPROM.write(2, '3'); EEPROM.write(3, '4'); EEPROM.write(4, '5'); EEPROM.write(5, '6'); EEPROM.write(6, '7'); EEPROM.write(7, '8'); } // Upload this code for keypad with 8 Digit Lock #include <Keypad.h> #include <EEPROM.h> #include <Servo.h> Servo myservo; char d,d1,d2,d3,d4,d5,d6,d7,d10,d11,d12,d13,d14,d15,d16,d17; int c,cpa; bool cp,np; const byte ROWS = 4; //four rows const byte COLS = 4; //three columns char keys[ROWS][COLS] = { {'1','2','3','A'}, {'4','5','6','B'}, {'7','8','9','C'}, {'*','0','#','D'} }; byte rowPins[ROWS] = {11,12,14,15}; //connect to the row pinouts of the keypad byte colPins[COLS] = {16,17,18,19}; //connect to the colum

Controlling 4 Relays with Telegram Bot

Image
 https://github.com/anokhramesh/TelegramAutomation Telegram Automation //HOW To control 4 RELAYS through Telegram Messenger with Telegram Bot #include <ESP8266WiFi.h> // for ESP8266 Board //#include <ESP8266WiFi.h>//Use for eso32 Board #include <WiFiClientSecure.h> #include <UniversalTelegramBot.h> // Library for interacting with the Telegram API // Search for "Telegegram" in the Library manager and install UniversalTelegramBot by Brian Lough // https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot #include <ArduinoJson.h> // Library used for parsing Json from the API responses // NOTE: There is a breaking change in the 6.x.x version, // install the 5.x.x version instead // Search for "Arduino Json" in the Arduino Library manager // https://github.com/bblanchon/ArduinoJson //------- Replace the following! ------ char ssid[] = "dewa406";         // your network SSID (name) char password[] = "Ramesh16384"; //

Blinking Led with Triac BT136

Image
 

Controlling a TRIAC

Image

IR remote control

Image
 

Proteus simulation Audio level indicator with LM 3915

Image
 

Digital counter with CD 4026 IC and Seven segment display

Image
 

Touch Switch simulation with 555 IC

Image
 

Home automation Proteus simulatio

 https://drive.google.com/file/d/169cMBr9h3tNC0ub9Cs9V7IUxGPvQdIHY/view?usp=drivesdk Home automation Proteus

Touch Switch with CD4017

Image
 

CD 4017 LED Chaser Circuit Simulation

Image
 

Toggle Switch Circuit Simulation in Proteus

Image