You are on page 1of 12

AMITY SHOOL OF ENGINEERING

AND TECHNOLOGY

FINAL YEAR PROJECT PRESENTATION

PROJECT TITLE – “AIR MOUSE” ACCELEROMETER BASED MOUSE

MENTOR: By:
Dr. Anupama Mehra Devavrat Singh - 174
Devdutt Singh - 175
Dhruv Sharma - 177
Hanish Satija - 184
INTRODUCTION
•We plan to design and construct an accelerometer based mouse which commands the
mouse cursor by tilting the palm, so you do not need to rest your hand on any kind of hard
surface.

•It consists of a single 3-axis accelerometer: two for position, and one axis for scrolling.

•The mouse communicates to a computer via the PS/2 protocol, or an optional PS/2 to
USB converter can be purchased and the mouse can be connected through a USB port.

• We would be using Microcontroller programming for the commands which the mouse
would take commands.

•For burning the codes and compiling them, we are using the combination of AVR studio
and PonyProg.
ABOUT AVR STUIDO

• AVR Studio is an Integrated Development Environment (IDE) for writing and


debugging AVR applications in Windows environments.
• AVR Studio provides a project management tool, source file editor, simulator,
assembler and front-end for C/C++, programming, emulation and on-chip debugging.
• An IDE has the following functions :-
– Preprocessing
– Compilation
– Assembly
– Text editor

• Programs written in C, compiled with GCC and avr-libc.


AVR STUDIO (continued)
• It is an Open source software, obtained at: winavr.sourceforge.net
• AVR Studio provides a way to debug both the C source code and the assembly
code.
• Programmer’s Notepad is the main tool you will be using to write your C code
• Just like any other compiler
– syntax highlighting

– Support for different programming languages

– Ability to compile your code


Example Make file
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
DDRD = 0b11110011;
DDRC = 0b11110111;
for ( ; 1==1 ; ) // loop while 1 equals 1
{

PORTD = 0b00000001;PORTC = 0b00000010;


_delay_ms(1000);

PORTD = 0b00000010;PORTC = 0b00000000;


_delay_ms(1000);
}
return 1;
}

NOTE : - This program will blink the LED’s one by one with a delay of 1000ms.
PONY PROG

•For burning the test codes on the microcontroller we are using the software
PONYPROG(version 2000).
•It supports serial as well as parallel port, but we have used a serial connection with
the help of 5 pins of Atmega16(MOSI,MISO,SCK,RESET<GND)

AVR DEVELOPMENT BOARD
•A well designed development board is always essential for smooth

development/experimentation with microcontrollers.

•Some people use breadboard while others use Vero board to fabricate their

development system

•If you use bread board, after few days of use the wire will become loose or come out

of hole.
FEATURES OF DEVELPOMENT BOARD

• Low Cost
• All Basic connection required for developing application with AVR MCUs
• In circuit Programmable with USB AVR Programmer
• Supports 40 PIN MCUs like ATmega16 and ATmega32
• On Board Voltage Regulator with filters and

operating voltage from 6V-12V.


• 16MHz crystal oscillator for maximum speed.
• Interfaced LEDs
• RED LED as a Power Indicator.
• 4 Switches including reset.
BOARD DESCRIPTION
AVR PROGRAMMER WITH SERIAL
COMMUNICATION
• It is used to load the program into AVR microcontroller through DB9 connector
and FRC connector.
•MAX 232 is used for convert RS logic to TTL logic.
•DB9 connector is used communicate with PC.
•When switch is on it will work as a serial communication and when
switch is off it will work as a programmer.
BLOCK DIAGRAM
Why DB9 over DB15?
• We have chosen a DB15 for the connection to provide plenty of pins for the
planned signals and power, and to extend the 'spare' drivers in the MAX232 for
later flexibility.
• DB15s are easy to get, and easy to solder with simple tools.
• The major reason because of which we shifted from DB9 to DB15 is that the latest
computers do not have comports to facilitate DB9 , as a result we have to interface
Db9 with DB15 .
• More over it provides us with some extra pins which could be used for future
reference.

You might also like