Professional Documents
Culture Documents
Zul Feen
Zul Feen
Zul Feen
Virtual Mouse
Ashish Mhetar 1 , B K Sriroop2, Kavya AGS3,Ramanath Nayak4, Ravikumar Javali5, Suma K V6
1, 2, 3, 4, 5 6
Student Assistant Professor
M.Tech – VLSI Design & Embedded Systems ECE Department,
MSRIT, Bangalore MSRIT, Bangalore
Email: mashish@gmail.com Email: sumakv@msrit.edu
Sriroop.91@gmail.com
Kavya.home@gmail.com
ramanathj@gmail.com
ravijavali13@gmail.com
Extended Mode
In Extended Mode, the IR Camera returns the same data as it
does in Basic Mode, plus a rough size value for each object.
The data is returned as 12 bytes, three bytes per object. Size
has a range of 0-15.
Figure 2: IR camera The data format for each object is shown in Figure 4:
In the HID protocol, there are 2 entities: the "host" and the
"device". The device is the entity that directly interacts with a
human, such as a keyboard or mouse, in this case device is
Virtual Mouse. Virtual Mouse consists of a IR LED (IR
Source), battery and three buttons for mouse operations. The
host communicates with the device and receives input data
from the device on actions performed by the human. The host
in this case is Teensy (ARM M4) [3]. Output data flows from
the host to the device and then to the human.
Sensor assembly contains IR Camera interfaced with a high Y coordinate = (SS & 0xC0) << 2 + YY (2)
end microcontroller Teensy(ARM M4) using two wire
interface I2C protocol, Teensy in turn is connected with laptop iv. Setting cursor position.
or computer by wired or wireless connection. By using these calculations, it is possible to obtain the values
i. Object Recognition: of the coordinates. As mentioned a microcontroller which has
IR camera works with frequency of 24MHz which can be HID function can be used to move the mouse pointer. The
generated using external crystal or using Teensy. This Camera Teensy library has inbuilt HID functions. The X and Y co-
only Recognizes IR source. Hence it will recognize the IR ordinates that we got from IR camera is given as arguments to
light from Virtual Mouse. HID functions which moves the mouse pointer to that position
ii. Trace object. shown by X and Y co-ordinates, hence setting the mouse
We are using teensy for generating this 24MHz clock. IR pointer. If we want to imitate mouse actions such as left click
Camera uses this clock to sweep both X and Y axes. Sweeping and right click we can use inbuilt library and implement mouse
through X and Y axes gives exact position of IR blob (Object) functions.
hence tracing the source. Camera then sends this position data v. Event generation.
to a microcontroller through I2C communication as shown in As you move the mouse, IR camera tracks the IR Led position
block diagram. as co-ordinate of that point and reflects same motion on
Figure 6 shows general setup required for implementing virtual projector. As we move the Virtual mouse; Camera will track
mouse, it shows general distance and angle requirement for its new position and teensy moves the mouse pointer to new
good results. Actually sunrays and tube light also contains IR position. Like this, as you keep on moving the mouse Camera
frequency light and our IR camera also detects these rays. But will go on tracking the blob and Teensy will move the mouse
as we don't want these rays to be detected by camera, we will to that position Hence imitating the gesture. This process is
use a filter glass that will filter out IR rays from sunlight and done at 24MHz frequency, hence the actual series of points
tube light. It will only detect IR Pen. appears as continuous line.
4. EXPERIMENTAL RESULTS
Accurate marking of coordinates is crucial for the working of
Virtual Mouse. The Coordinate calculations are done using
equations (1) and (2). The Virtual Mouse can perform
different functions as follows:
1) Virtual Marker: Many times while doing presentation we
may require marker to explain some concept. Instead of actual
writing on board, virtual mouse can be used as marker to write
virtually on screen. As shown in Figure 7, we can write
anything in a Paint document which is reflected on screen.
Figure 10: Interpretation of Figure 9
5. CONCLUSION
The major aspect in today’s e-learning is the improvement in
the methods of teaching by using technology dependent
Figure 7: Virtual Mouse used as a Virtual Marker resourceful products to have a better communication and
interaction between the teacher and the student. In favor of
2) Mouse Functions (Right Click and Left Click): Virtual this, people have proposed virtual marker; but our proposed
Mouse can be used to perform mouse clicks virtually on screen product aims much more than a marker and can be used even
result of which is actually reflected in computer. As shown in as a mouse. Thus exploring the HID functions of a high end
Figure 8 we can see that when we left click on windows button microcontroller and increasing its utility by amplifying its
on screen we can see on computer that it actually pops functionality is done and the desired results are obtained.
windows option after click. As shown in Figure 9 when we
right click on desktop, a window pops on the screen showing
options after a click. REFERENCES: