Mouse gloves

550 views

Published on

human interface device replacing mouse in a computer...gesture controlled computer...

Published in: Education, Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
550
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
17
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Mouse gloves

  1. 1. Mouse GlovesAkhil S MenonAkhilnath E RR Sarath ChandranNimisha K KSreekutty K TMAINPROJECT
  2. 2. contents1introduction5algorithm9references6flowchart2blockdiagram3functionalblocks4circuitdiagram8futureexpansion7pros & cons
  3. 3. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences1› HID› Mouse cursor movement› Left, right and double click› Zoom in and out› Motion sensing gaming› Presentations
  4. 4. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences2› Main module
  5. 5. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences2› Bluetooth-PC side
  6. 6. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences2› Power supply
  7. 7. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences3› PIC› Flex sensor› MEMS - Accelerometer› Bluetooth transmitter and receiver› USART› Level converter
  8. 8. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences4› Power supply
  9. 9. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences4› PIC
  10. 10. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences4› MEMS - Accelerometer
  11. 11. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences4› Flex sensor
  12. 12. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences4› Bluetooth module
  13. 13. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences4› Level converter
  14. 14. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences5 › { Algorithm for ADC }Step1: StartStep2: Load ADCON0 with 80H and ADCON1 with 81H forselecting RA0(89H for selecting RA1) as analog input portStep 3: Set A/D conversion status bit, ADGO =1 to startconversion.Step 4: Check if ADGO=0( i.e. A/D Conversion complete), if yestransfer higher 2 bits in ADRESH to a variable and shift it to left 8times, then OR the contents with lower 8 bits in ADRESL. If no,go to step 4.Step 5: Compare the digital value with a threshold, and transmitit via UART.Step 6: StopThe same procedure is done for the data input at analogchannel RA1.
  15. 15. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences5 › { Algorithm for asynchronous transmission }Step 1: StartStep 2: Configure PORT C as output portStep 3: Select asynchronous transmission by clearing SYNC bit.Step 4: Set the transmit enable bit (TXEN) to enable datatransmissionStep 5: Set BRG bit for high baud rate selectionStep 6: Initialize SPBRG= 128 for the baud rate 115200 using theequationBaud rate= fosc/(16*(x+1))Step 7: Enable serial port by setting Serial port enable bit, SPENStep 8: Move the character to be sent to the transmit register, TXREGStep 9: Check if transmit shift register status bit, TRMT =1. If yes,transmission completed. If no, go to step 9Step 10: Stop
  16. 16. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences5 › { Algorithm for Gloves }Step1:Do the basic Initialization –ADC,USART(115200 bps), PULLUP keys etcStep2:Take ADC readings through channel 0 and 1 continuouslywhen PULL UP key(RB2) is pressedStep3: If channel0 (X - axis) value is less than current ADC valuesend L to USART. If greater then send RStep4:If channel1 (Y - axis) value is less than current ADC value,send D to USART. If greater then send U to USARTStep5:If PULL UP key RB1 is pressed send # to USART(for rightclick command)Step6:If interrupt key RB0 is pressed once send $ to USART(forsingle click command)And if RB0 is pressed twice send “$ $” to USART(for double clickcommand)Step7:Goto step 2
  17. 17. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences5 › { Algorithm for configuring Bluetooth module }Step1:Configure USART to 115200bpsStep2:Transmit +++Step3:transmit "AT" followed by <CR> and check whether"OK" is receivedStep4:transmit AT+BTLNM=”HID-BLUETOOTH” followed by<CR> wait for "ok"Step5:Transmit AT+BTURT=<Baud>, <Data Bits>, <Parity>,<Stop Bits>, <Flow Control> followed by <CR>eg : AT+BTURT=115200,8,0,1,0Step6:Transmit AT+BTSRV=1 followed by <CR>
  18. 18. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences5 › { Algorithm for Mouse Action }Step 1: StartStep 2: Declare library functions (from API Viewer and MSDN) forconfiguring mouse actionsStep 3: Set the properties of MS Comm1 and MSComm2Step 4: Create a form such that when the port is open displayCOM1-COM8 for COMM PORT selectionStep 5: Get the current cursor position and compare the data ininbuff with L, R, U, D and set the cursor point to that direction by 2pixels. If the data is $, # or * perform left click, right click or doubleclick. Continue checking the data received at COMM port.Step 6: Stop
  19. 19. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences6 Initialize ADCInitialize USART & set baud rate =115200Set I/P ports RA0 (L & R) And RA1 (U& D)Set RC6 as O/P portStore 10 bit ADC O/P of RA0 ininteger X & RA1 in integer YIfY > 550Transmit ‘U’Transmit ‘R’IfY< 450IfX <400Transmit ‘D’ Transmit ‘L’IfX> 600YesYesYesNo NoStartYes
  20. 20. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferencesPROS› prevent carpal tunnelsyndrome and otherrepetitive stress injuries› Video game controller› Perfect for givingpresentations› IntuitiveCONS› cumbersome› Movement is not thatsmooth› Need to wear gloves7
  21. 21. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences8› Key Board› Voice control through MAT LAB
  22. 22. IntroductionBlock DiagramFunctional BlocksCircuit DiagramAlgorithmFlowchartPros & ConsFuture ExpansionReferences9› Hn.B.Peatman,Design with PIC microcontrollers,Pearson Education pt. Ltd, Second Edition› Frank Vahid Tonny Givargis,Embedded system design-a unified hardware/software introduction› Brain in chip Technologies ,Embedded system designusing PIC controller› www.microchip.com› www.alldatasheets.com› www.semiconductorsphilips.com/sales.
  23. 23. ?

×