3
a Technovision-2014: 1 st International Conference at SITS, Narhe, Pune on April 5-6, 2014 All copyrights Reserved by Technovision-2014, Department of Electronics and Telecommunication Engineering, Sinhgad Institute of Technology and Science, Narhe Pune Published by IJECCE (www.ijecce.org) 83 International Journal of Electronics Communication and Computer Engineering Volume 5, Issue (4) July, Technovision-2014, ISSN 2249–071X Air Mouse C. V. Rane Asst. Professor, Department of Electronics And Telecommunication RSCOE, Pune Jitesh Kusalkar Department of Electronics And Telecommunication RSCOE, Pune [email protected] Mohit Kumar Department of Electronics And Telecommunication RSCOE, Pune [email protected] Suhail Shahnawaz Department of Electronics And Telecommunication RSCOE, Pune [email protected] Abstract Mouse traditionally requires a surface to operate upon. But this novel concept does away with the need of the surface to operate the mouse. This device can perform all the functions of a mouse and much more. This device can be used in air which was not possible with the optical mouse. This mouse works with the help of an accelerometer. The accelerometer does the function of sensing the co-ordinate movements. This information is given to micro controller and the micro controller processes the data to be sent to the PC to control the onscreen mouse pointer accordingly. Keywords Microcontroller (uC), Personal Computer (PC), Printed Circuit Board (PCB), UART (Universal Asynchronous Receiver Transmitter). I. INTRODUCTION As the times progressed so did the technology, that improved computing experiences. The air mouse is such a device that overcomes a lot of drawbacks of the traditional optical mouse. Optical mouse have a very limited usage environment. They become highly inaccurate at times, especially when the surfaces are glossy. There is also a major drawback that it requires a surface to operate. This is where the air mouse comes into picture; it does away with the requirement of the surface to work. It does so by the simple application of the accelerometer device. II. WORKING The air mouse is made up of various devices. The basic elements of it are acceleration sensor also known as accelerometer, a comparator, a microcontroller and a Bluetooth module. The figure below represents the proposed block diagram of the air mouse. Fig.1. Block Diagram of the Air Mouse The basic function of finding the coordinates is carried with the help of the accelerometer. The accelerometer used is a 3-axis analog accelerometer which needs to be tilted to provide different voltage levels at every angle in all three axes: x, y and z. This application uses only 2 axes, that are x and y axes, in order to control the mouse in horizontal and vertical direction. These voltage levels are then compared with the predefined reference values with the help of a comparator. The reference voltage range is set to 1.58 V-1.65 V. This range can be changed as per the convenience. If voltage from the accelerometer exceeds 1.65 V or goes below 1.55 V the comparator gives output as ’1’ otherwise a ‘0’. The comparator compares four entities: x+, x-, y+ and y-. These compared values are then accepted by the microcontroller through a port. Fig.2. 3-axis accelerometer MMA 7361 The values on the port are then assigned with different tags for different actions to be performed by the on screen mouse pointer. These values are then transferred to the Bluetooth module. Table 1: Tags used and their description

Air Mouse - Ijecceijecce.org/Download/conference/Tech_Pune_2014/19.pdf · Air Mouse C. V. Rane ... Bluetooth module which can be overcome by using a ... AVR microcontroller and embedded

Embed Size (px)

Citation preview

Page 1: Air Mouse - Ijecceijecce.org/Download/conference/Tech_Pune_2014/19.pdf · Air Mouse C. V. Rane ... Bluetooth module which can be overcome by using a ... AVR microcontroller and embedded

a

Technovision-2014: 1st International Conference at SITS, Narhe, Pune on April 5-6, 2014

All copyrights Reserved by Technovision-2014, Department of Electronics and Telecommunication Engineering,Sinhgad Institute of Technology and Science, Narhe PunePublished by IJECCE (www.ijecce.org) 83

International Journal of Electronics Communication and Computer EngineeringVolume 5, Issue (4) July, Technovision-2014, ISSN 2249–071X

Air MouseC. V. Rane

Asst. Professor,Department of ElectronicsAnd Telecommunication

RSCOE, Pune

Jitesh KusalkarDepartment of ElectronicsAnd Telecommunication

RSCOE, [email protected]

Mohit KumarDepartment of ElectronicsAnd Telecommunication

RSCOE, [email protected]

Suhail ShahnawazDepartment of ElectronicsAnd Telecommunication

RSCOE, [email protected]

Abstract – Mouse traditionally requires a surface tooperate upon. But this novel concept does away with the needof the surface to operate the mouse. This device can performall the functions of a mouse and much more. This device canbe used in air which was not possible with the optical mouse.This mouse works with the help of an accelerometer. Theaccelerometer does the function of sensing the co-ordinatemovements. This information is given to micro controller andthe micro controller processes the data to be sent to the PC tocontrol the onscreen mouse pointer accordingly.

Keywords – Microcontroller (uC), Personal Computer(PC), Printed Circuit Board (PCB), UART (UniversalAsynchronous Receiver Transmitter).

I. INTRODUCTION

As the times progressed so did the technology, thatimproved computing experiences. The air mouse is such adevice that overcomes a lot of drawbacks of the traditionaloptical mouse. Optical mouse have a very limited usageenvironment. They become highly inaccurate at times,especially when the surfaces are glossy. There is also amajor drawback that it requires a surface to operate. Thisis where the air mouse comes into picture; it does awaywith the requirement of the surface to work. It does so bythe simple application of the accelerometer device.

II. WORKING

The air mouse is made up of various devices. The basicelements of it are acceleration sensor also known asaccelerometer, a comparator, a microcontroller and aBluetooth module. The figure below represents theproposed block diagram of the air mouse.

Fig.1. Block Diagram of the Air Mouse

The basic function of finding the coordinates is carriedwith the help of the accelerometer. The accelerometer usedis a 3-axis analog accelerometer which needs to be tilted toprovide different voltage levels at every angle in all threeaxes: x, y and z.

This application uses only 2 axes, that are x and y axes,in order to control the mouse in horizontal and verticaldirection. These voltage levels are then compared with thepredefined reference values with the help of a comparator.The reference voltage range is set to 1.58 V-1.65 V. Thisrange can be changed as per the convenience. If voltagefrom the accelerometer exceeds 1.65 V or goes below 1.55V the comparator gives output as ’1’ otherwise a ‘0’. Thecomparator compares four entities: x+, x-, y+ and y-.These compared values are then accepted by themicrocontroller through a port.

Fig.2. 3-axis accelerometer MMA 7361

The values on the port are then assigned with differenttags for different actions to be performed by the on screenmouse pointer. These values are then transferred to theBluetooth module.

Table 1: Tags used and their description

Page 2: Air Mouse - Ijecceijecce.org/Download/conference/Tech_Pune_2014/19.pdf · Air Mouse C. V. Rane ... Bluetooth module which can be overcome by using a ... AVR microcontroller and embedded

a

Technovision-2014: 1st International Conference at SITS, Narhe, Pune on April 5-6, 2014

All copyrights Reserved by Technovision-2014, Department of Electronics and Telecommunication Engineering,Sinhgad Institute of Technology and Science, Narhe PunePublished by IJECCE (www.ijecce.org) 84

International Journal of Electronics Communication and Computer EngineeringVolume 5, Issue (4) July, Technovision-2014, ISSN 2249–071X

Fig.3. Bluetooth Module HC-05

The Bluetooth module used is HC-05 which uses UARTcommunication protocol. The UART communicationprotocol only requires RXD (Receiver) and TXD(Transmitter) pins. The Bluetooth has two modes: ATmode and paring mode. For this application the modulesneeds to be connected in paring mode. The paring modehas a default baud rate of 9600 baud i.e. it cannot bechanged. The data is then transmitted to the PC wirelesslyusing Bluetooth.

Fig.3. Hardware Implementation of Air Mouse

The data received on PC is then used for traversing themovements of the onscreen mouse pointer. To do so, asoftware known as Matlab is used. Matlab has inbuiltfunctions to establish serial communication and scanningthe data through it. In order to control mouse pointer twojava classes are imported into Matlab.

import java.awt.Robotimport java.awt.event.*

The above classes are Robot class and event class.These two classes are together used to manipulate theposition and the functions of the mouse pointer accordingto data received.

There are four push buttons provided on the PCB. Threeof them are used for Right Click, Left Click and ScrollClick and the last one is for quitting any ongoing onscreenapplication instantly.

III. SYSTEM CONFIGURATION

1. Accelerometer- MMA 7361 Two selectable measuring ranges (±1.5g, ±6g) Breadboard friendly - 0.1" pitch header Low current consumption: 400 μA Sleep mode: 3 μA Low voltage operation: 2.2 V - 3.6 V High sensitivity (800 mV/g at 1.5g) Fast turn on time (0.5 ms enable response time)2. Microcontroller- ATMEGA 328P 23 Programmable I/O Lines 28-pin PDIP 32K Bytes of In-System Self-Programmable Flash 1K Bytes EEPROM 2K Byte Internal SRAM Operating Voltage: 2.7 - 5.5V UART support3. Comparator- LM 324 14 pin IC True Differential Input Stage Single Supply Operation: 3.0 V to 32 V Low Input Bias Currents: 100 nA Maximum (LM324A) Four Amplifiers Per Package4. Bluetooth Module- HC-05 v2.0+EDR Frequency: 2.4 GHz ISM Power supply: +3.3VDC 50mA Default Baud Rate: 9600 Baud Speed: Asynchronous: 2.1Mbps(Max) / 160 kbps,

Synchronous: 1Mbps/1Mbps5. Software- MATLAB r2009b v 7.9.0.529

Inbuilt functions for serial communication and mousepointer control.

IV. RESULT

Fig.4. Result

Page 3: Air Mouse - Ijecceijecce.org/Download/conference/Tech_Pune_2014/19.pdf · Air Mouse C. V. Rane ... Bluetooth module which can be overcome by using a ... AVR microcontroller and embedded

a

Technovision-2014: 1st International Conference at SITS, Narhe, Pune on April 5-6, 2014

All copyrights Reserved by Technovision-2014, Department of Electronics and Telecommunication Engineering,Sinhgad Institute of Technology and Science, Narhe PunePublished by IJECCE (www.ijecce.org) 85

International Journal of Electronics Communication and Computer EngineeringVolume 5, Issue (4) July, Technovision-2014, ISSN 2249–071X

The above figure shows the interfacing of accelerometerwith the MATLAB through a serial port. It shows thedirection the cursor moves with respect to accelerometer.Comparison with the existing system The system is tied to Matlab as drivers are still not

developed. This device is not plug and play. This system is slow due to slow and fixed speed of

Bluetooth module which can be overcome by using afaster communication protocol.

This device doesn't require any surface likeconventional mouse. This is wireless.

REFERENCES

[1] Anand Bora, Abrar Chapalgaonkar, Nikhil Dalshania and AdityaBhongle, “2D and 3D Air Mouse”, in Wireless and OpticalCommunications Networks (WOCN), 2012 Ninth InternationalConference at Indore.

[2] Wei-Chuin Huang, Hsiang-Wen Hou and Wai-Chi Fang ,”ARemote control solution for mouse cursor of computer usingaccelerometer”, in 2013 IEEE 17th International Symposium onConsumer Electronics (ISCE).

[3] Tiexiang Wen, Lei Wang, Jia Gu, Bangyu Huang, “A 3-DAcceleration-Based Control Algorithm for Interactive GamingUsing a Head-Worn Wireless Device”, in Bioinformatics andBiomedical Engineering , 2009. ICBBE 2009. 3rd InternationalConference.

[4] Muhammad Ali Mazidi, Sarmad Naimi & Sepehr Naimi, “TheAVR microcontroller and embedded systems: using Assemblyand C”, Pearson Education

[5] www.alldatasheets.com[6] www.atmel.com[7] www.mathworks.com