The designer Window is where you lay out look and feel of your app, and specify what functionalities it should have. You choose things for the user interface things like buttons, Image, label, text boxes, and functionalities like text-to-Speech, Bluetooth, sensors, and gps. Now, follow the figure 7 and add a list Picker to the viewer. Rename it to "Connect to Bluetooth device" (image 8). Add one label, one password Text Box, and two buttons shown in figure. Change the text properties of the components as "Enter Password "Open door and "Close door" respectively. Final User Interface should look like as figure.
Invention Story and History of development
After connecting, enter password set to your arduino program (I set "ardupi you can use your own) progress to the password box and click close the door button. Door will be closed successfully. Again enter password and open the door. If yes, than congratulation! You have successfully complete your project. Step 7: Android App development for Password Protected door Lock i will show you how to develop an Bluetooth android application using mit app Inventor. I am using App Inventor because it does't required any coding and no software installation. You only need a google account. Go to, you will ask to log in using google account. Log in to App Inventor using gmail and follow the steps below. I accept terms conditions image 1 ii click 'take survey later' and then 'continue' to dismiss the splash screen image 2, 3 iii start a new project (no spaces!) image 4 iv name the project "BluetoothControlDoorLock" (no spaces!) image 5 you are now in the.
Attachments Step 6: Setup working of Bluetooth Control Smart Password Protected door Lock set laser movement mechanism and breadboard to your door using hot glue gun shown above figure. Be sure, two shaft (lock and laser movement) must be in parallel. After setting these in correct position power up using wall mount adapter. Led of bluetooth module should continuously blinking. Run your android app (check step plan 7 8) and pair this with you phone using pair button if not paired previously. For the first time it will ask you for a code, use 1234 and than. Now connect it with your device with connect button.
Serve(50 / reserve 50 bytes in memory to save for string manipulation serve(50 serve(50 boolean stringok false; pinMode(motorPin1, output pinMode(motorPin2, output pinMode(motorEnablePin, output void loop / if arduino receive a string termination character like n stringComplete will set to true if (stringComplete) intln(inputString delay(100. If (pos -1) / substring(start, stop) function cut a specific portion of string from start to stop / here command will be the portion of received string till business / let received string is opentest123 / then command is 'open' command bstring(0, pos / value will. Length -1 / extract command up to n exluded intln(command intln(value / mpareTo(value) compare between password and value string, if match return 0 if(!mpareTo(value) (command "open / if password matched and command is 'open' than door should pdf open openDoor / call openDoor function intln open. Available / get the new byte: char inChar (char)ad /Serial. Write(inChar / add it to the inputString: inputString inChar; / if the incoming character is a newline or a carriage return, set a flag / so the main loop can do something about it: if (inChar 'n' inChar 'r stringComplete true; void openDoor digitalWrite(motorPin1, high. Actually arduino sent " wrong" string. Android program then shows wrong password message.
Actually i set two command, one is "open" and another is "close" and password may contain any digit, later or symbol or combination of them as you like. In the app i used two buttons one for open the door and another for closing the door. When password is given to password box and open button is clicked than app joint the "open" command with the password and sent it to arduino. I add sign with command for that I will separate command and password by using this. After receiving the string from phone arduino program separates command and password from the receive string and save them into two separate variables. Then check the password first, if password matched with saved password then open the door for "open" command, and close the door for "close" command. " helps to separate command and mplete arduino sketch is given below. Complete Arduino code code athor:. Khairul Alam Date: 1 September, 2015 This program is for password protected smart door lock string inputString string command string value string password "ardupi / this is the password for opening and closing your door / you can set any password you like using digit.
Arduino (with Solution)
Out1 and Out2 of report motor driver is connected to the dc motor of leaser movement mechanism. L293D has two input voltage, one for ic itself and another for motor voltage. I have connected 5V to both pin, our motor will run well. This driver has 4 ground pin, and all are connected to ground. Heat sink is not required here. A 5V regulator ic (LM7805) is used here and its input is connected to the output of an ac adapter.
A.5V to 12v ac to dc adapter will work fine. The output of the adapter is directly connected to arduino vin pin because arduino board has an internal voltage regulator. Tx pin of hc-05 is connected to arduino rx pin, and rx pin of hc-05 is connected to arduino tx parts pin. This may be a bit confusing but the fact is that, the data transmitted by hc-05 is received by arduino ( hc-05 tx to arduino rx and the data transmitted from arduino is received by hc-05 (arduino tx to hc-05 RX). The circuit diagram, Proteus source, breadboard connection diagram, Fritzing sketch all are uploaded herewith. Attachments Step 5: Arduino Program for Bluetooth Control Password Protected door Lock The code for bluetooth control smart door lock is very simple. I have designed android application in such that it sent a command with the password.
Enable pins 1 and 9 (corresponding to the two motors) must be high for motors to start operating. When an enable input is high, the associated driver gets enabled. As a result, the outputs become active and work in phase with their inputs. Similarly, when the enable input is low, that driver is disabled, and their outputs are off and in the high-impedance state. For details of L293D check the datasheet attached herewith or click here. Voltage regulator (LM7805 This is a 5 volt regulator.
Output of ac adapter is given to input of the regulator. Output of the ic is regulated. This output is given to L293D and microcontroller. Pinout and datasheet of the ic is attached. Attachments Step 3: tools and Supplies for Smartphone control door Security. Soldering Iron and Solder if you want to use pcb instead of breadboard. Hot Glue gun. Access to a computer Step 4: Circuit Connection of Arduino and Android Control door Lock circuit connection for our smart door lock is not so complex. Enable, in1 and IN2 of motor driver ic is connected to the arduino 9, 10 and 11 pin.
Buy essay paper writing service help at a cheap best
Motor Driver ic (L293d l293D is a dual H-bridge motor driver integrated circuit (IC). Motor drivers act as current amplifiers since they take a low-current control signal and provide a higher-current signal. This higher current signal is used to drive the motors. L293D contains two inbuilt H-bridge driver circuits. In its common mode of operation, two dc motors can be driven simultaneously, both in forward and reverse direction. The motor operations of two motors can be controlled by input logic at revelation pins 2 7 and. Input logic 00 or 11 will stop the corresponding motor. Logic 01 and 10 will rotate it in clockwise and anticlockwise directions, respectively.reviews
Leaser movementing try: I don't know the actual name of the part. This is the part of CD/dvd player which move the leaser led for reading the. This part contains Two dc motors. One for spinning cd and another for moving leaser diode. We do not need the cd spinning motor, you can remove. You also can find this part fro old computer CD/dvd rom. For disassembling this from a cd drive check the link: m/id/Disassembling-a-cd.
a cheap and easy way to control something remotely using arduino. For communication with arduino using blutooth a bluetooth module need to be connected with arduino. Several model of bluetooth module are available. I am using here hc-05 a very common and cheap one. Hc-05 module has 6 pins. We have to connect 4 pins to arduino, they are: rxd, txd, vcc, gnd, rXD will receive data from arduino; txd will send data to arduino; vcc is the power supply (3.3V.6V) and gnd is the ground. For details click here.
Android Smartphone 1pc. Screw (optional) 6pcs. Jumper Wires, step 2: Components Details for Smart door Lock. Arduino Uno: Arduino Uno is the most popular development board in Arduino family. It is not mandatory to use arduino uno, you can use another member from the arduino family such as arduino nano salon or arduino micro. You can also use standalone atmega328p without using arduino baord. A well explain tutorial ". From Arduino to a microcontroller on a breadboard " for standalone atmega microcontroller is here.
The journey - by Crystal Ward Kent - the
Step 1: Required Components for Arduino Bluetooth Control door Lock. Arduino Uno 1pc. Bluetooth module (HC-05) 1pc. Laser movementing tray from old CD/dvd rom 1pc. Motor Driver ic (L293D) 1pc. Voltage regulator (LM7805) 1pc. Electrolytic Capacitor (0.33uF) 1pc. Electrolytic Capacitor (1uF) revelation 1pc. Door Lock 1pc.