////

Make your own Computing Mouse #MakeinIndia

March 19, 2017

Introduction:

In computing, a mouse is a pointing device that detects two-dimensional motion relative to a surface. This motion is typically translated into the motion of a pointer on a display, which allows for fine control of a graphical user interface. A mouse typically controls the motion of a pointer in two dimensions in a graphical user interface (GUI). The mouse turns movements of the hand backward and forward, left and right into equivalent electronic signals that in turn are used to move the pointer. The relative movements of the mouse on the surface are applied to the position of the pointer on the screen, which signals the point where actions of the user take place, so that the hand movements are replicated by the pointer. One of the best examples of mouse project can be said as the CY4623 Mouse. To start with the mouse we need to first
install the kit and programming the hex codes into the chip.

 

Kit installation:

1. Insert the kit CD/DVD in the CD/DVD drive of your PC. The CD/DVD is designed to auto run and the kit installer startup screen appears.
2. Click Install CY4623 Mouse Reference Design Kitto start the installation.
3. The InstallShield Wizard screen appears. The default location for setup can be seen on the InstallShield Wizard screen. You can change the location using Change option.
4. Click Next to launch the kit installer.
5. On the Product Installation Overview screen, select the installation type that best suits your requirement. The drop-down menu has three options – Typical, Complete, and Custom.
6. Click Next to start the installation.
7. After the installation begins, a list of all packages appears on the Installation page.
8. A green checkmark appears adjacent to every package that is downloaded and installed.
9. Wait until all the packages are downloaded and installed successfully.
10. Click Finish to complete the installation.

 

To install the program into the chip:

1. Start the PSoC programmer version.
2. Select the MiniProg from the port selection.
3. Select the hex file programmer menu.
4. Use the program option to program the hex file onto the chip.
5. When the programming finishes it displays the program succeeded message.


The CY4623 Mouse RDK is a three-button optical mouse with a scroll wheel. The mouse uses an Agilent 2620 optical sensor. This design uses a single cable that can be connected through a
USB connector or PS/2 connector with an adapter. Firmware or code examples can be built to demonstrate USB or PS/2 operation; the chip supports a complete USB-PS/2 combination
implementation. The flash-based microcontroller allows easy firmware or code example modification, as well as storage of Vendor and Product IDs without an external EEPROM. The
flash can be reprogrammed directly through the USB cable; thismakes it possible to update the firmware/code example in manufacturing or in the field without even opening the plastics. The mouse RDK is programmed through the USB connector using a CypressUSB adapter board CY3655-PLG.

 

Functional Description:

The mouse board includes an enCoRe II CY7C63813 chip, optical sensor, encoder, three buttons, and a scroll wheel. Figure shows the different functional blocks on the CY4623 mouse board.

 

CY7C63813 Chip:

The CY7C63813 Chip is based on enCoRe II USB, which is 8-bit micro controller with Harvard Architecture and a M8C CPU speed of up to 24 MHz it is sourced by an external clock signal.
It integrates numerous components including crystal less oscillator, 3.3V Regulator with external supply. D-pull –up register, flash memory, and configurable I/O for real world interface and external components.

 

Optical sensor:
The ADNS-2620 is a new entry level, small form-factor optical mouse sensor. It is used to implement a non-mechanical tracking engine for computer mouse applications. Unlike its predecessor, this new optical mouse sensor allows for more compact and affordable optical mouse application designs. The ADNS-2620 is based on the optical navigation technology. It contains an image acquisition system (IAS), a digital signal processor (DSP), and a two-wire serial port. The IAS acquires microscopic surface images through the lens and illumination system provided by the HDNS-2100, HDNS-2200, and HLMP-ED80-xx000. These images are processed by the DSP to determine the direction and distance of motion.

 

Wheel and Buttons:
There are three buttons for left, right, and middle button operations of the mouse. The wheel with the encoder is used for scroll operation.

 

 

USB Header:

The USB header communicates between the PC and the mouse; this also supplies an input voltage of 5 V to power up the mouse. This header is extended with a cable to connect to the PC through a USB A connector. Pins 1 and 2 are for D– and D+, respectively, and pin 3 is the VBUS, the input power source for mouse.

 

Power Supply System:

The CY4623 Mouse RDK board is powered from the USB header.

 

Error handling and recovery requirements:

A watchdog timer is enabled so that any environmental influence that results in a firmware execution anomaly results in a complete reset of the system without user intervention. If the watchdog timer expires, then the enCoRe II controller is reset

 

Applications:

The CY7C63813 is targeted for the following applications:

  • PC HID devices

  • Mouse applications (optomechanical, optical, trackball)

  • Gaming

  • Joysticks

  • Game pad

  • General purpose

  • Barcode scanners

  • POS terminal

  • Consumer electronics

  • Toys

  • Remote controls

  • Security dongles

Experimental Steps

 

Step 1:
Design of 3D model using AutoCAD software and save design with appropriate format so that it can support 3D Printing Slicing Software i.e. .stl, .obj.

 

 

Step 2:

  • Import design in 3D Printing Slicing Software

  • Adjust the dimension of imported design as per the bed size available

  • Adjust the settings in 3D Printing Slicing Software such as wall thickness, fill density etc.


Step 3:

 

Install the kit and load the program onto the chip.

 

Step 4:

  • Printing of three dimensional objects in 3D Printer and assembling the PCB circuit in the printed mouse cover.

Step 5:


To verify the output,

  • Connect the mouse to the PC and wait for the device to enumerate. When enumeration is done, start using the mouse.

  • Move the mouse in circular, horizontal, and vertical motions.

  • Click the left button to check the left button functionality of mouse.

  • Click the right button to check the right button functionality of mouse.

  • Move the scroll wheel and check the scroll wheel functionality.

  • Confirm that the mouse is moving smoothly.

Output:

  1. Self-made body for the mouse.

  2. Self-made PCB circuits.

  3. Programming of mouse operation.

Bill of Material:

  1. ICs

  2. Capacitor

  3. LED Light

  4. Switch

  5. Microcontroller

  6. Mouse sensor

  7. Potentiometer

  8. Resistors

  9. Diode

  10. PCB board

  11. Computer with Cad Software 

  12. 3D Printer, Slicing Software, 3D Printer Filament

Note: This is for Educational Purpose

 

Please reload

Featured Posts

How 3D Printing changing the medical field

April 13, 2018

1/3
Please reload

Recent Posts
Please reload

Archive
Please reload

Search By Tags