Skip to main content

Posts

Showing posts from June, 2018

Lock using 4 Push button switch with arduino

Introduction : A  combination lock  is a type of locking device in which a  sequence  of symbols, usually numbers, is used to open the lock. The sequence may be entered using a single rotating dial which interacts with several discs or  cams , by using a set of several rotating discs with inscribed symbols which directly interact with the locking mechanism, or through an electronic or mechanical keypad. Here we will be using arduino uno along with em lock to make door lock with password.  Code of the project :- const int buttonPin1 = 1; const int buttonPin4 = 4; const int buttonPin3 = 3; const int buttonPin2 = 2; // the pin that the pushbutton is attached to const int correctLedPin = 7;       // the pin that the LED is attached to const int wrongLedPin = 6;  const int motorPin = 11;// the pin that the LED is attached to // variables that are changed by the program int buttonPushCounter = 0;   // co...

Electronic Dice Using Arduino

Introduction  Dice is used to play many games like snake ladder, Ludo etc. Generally dice is made up of wooden or plastic, which gets deformed with time and become biased. A  Digital dice  is a good alternative of old fashioned dice, it can’t be biased or deformed. It operates at such high speed that no one can cheat. To create this digital dice circuit, we have mainly used Arduino Uno, Pushbutton switch and 6 led along with 220ohm resistors. Code for the project:- // constants won't change. They're used here to // set pin numbers: const int buttonPin = 2;    // the number of the pushbutton pin const int ledPin = 13;      // the number of the LED pin // Variables will change: int ledState = HIGH;         // the current state of the output pin int buttonState;             // the current reading from the input pin int lastButtonState = LOW;   // ...