📜 ⬆️ ⬇️

Creating a WX-Mouse in razer Mamba TE



The W-Mouse project has grown to use the PMW3360 top sensor. W-Mouse is a mouse designed by a person with the nickname Walkie, including a diagram and software.

Previously, sensors from avago - adns-30x0, adns-60x0, adns-9x00 were used in conjunction with the atmega32u4 controller.
')
The new version uses the top-end sensor 3360 and the controller atXmega128a4u and received the name W X -Mouse.

The main advantages of W-Mouse


As a result, accurate, detailed pixel targeting and fast turns, without the use of huge rugs and sweeping movements.

Or, for example, you can configure the sight to be more responsive at the beginning of the movement; this is useful for tracking a target moving back and forth (tracking the target).


WX-Mouse can be collected in almost any package.

This is what the WX-Mouse setup window looks like.



All this makes W-Mouse a unique mouse.

The project is discussed on the Overclockers forum in the topic “Laser Optical Sensor”.

As an example, the mouse can be written as a pen.

(drawn in the point at 100% scale, on the screen the height of the letter was approximately 4-5mm)


Action plan for remaking Mamba TE in WX-Mouse:

1. Call the “circular” backlight circuit and determine what needs to be changed to enable rgb-LEDs on both sides.
2. Combine with the "circular" backlight LEDs on the wheel and the logo on the back.
3. Reconcile the "white balance" and the brightness of the three parts of the backlight (so that the glow was the same)
4. Trim the main board of the mouse, leaving only the buttons and the USB connector.
5. Put the connector on the main board to connect the wxmouse board and make connections from the buttons and the wheels with this connector.
6. Determination of the optimum height of the sensor.
7. Placement of the WX-Mouse board (controller + sensor) at the bottom using racks.
8. Modernization of the main cable.
9. Elimination of small shoals and final assembly.

Further photos with brief explanations, if you have questions on specific details, I will gladly, in more detail, answer in comments.

Item 1. Backlight


One of the most laborious and dreary moments, although when everything worked out, of course it was a pleasure.

In Mamba, a thin luminous strip is used along the edges of the mouse body.
To do this, the designers put on each side of 7 independent rgb-LEDs.

The Razer designers have managed to make independent control of each of the 42 LEDs through an 8-pin connector.



Having made a dial call, he made a circuit.

After analyzing the circuit, it was determined what changes need to be made to connect the anodes and rgb channels.

Backlight scheme


As you can see the conclusions of each color are connected in parallel. But the management Anodes (purple) are cunningly scattered, including color channels.

I had to connect in parallel the LEDs of each of the colors, and also connect all the anodes and get 4 lines at the output - anodes plus three colors.

Yes, I know - connecting LEDs in parallel is not a very good solution, but in this case there is no other option - because It’s simply not realistic to place your own resistor near each of the 42 LEDs.

Given that to indicate the selected profile, mostly pure colors will be used, i.e. blue, red and green, the unevenness and differences in the glow of individual LEDs will not be very noticeable. This point has already been tested on previous designs.

It took about 4-5 hours of tinkering with small LEDs and hidden tracks to work on the modification of the backlight, but everything worked out.

Item 2. Combining the three parts of the backlight


The final connection of the rgb channels from the two halves of the horseshoe, made already on the connector of the cable, resistors for each color are also placed there. The connector, with part of the board, was cut from the main board of the mamba. On this trim, an additional connector was placed for connecting to the WX-Mouse board, as well as platforms for connecting the backlit wheel and logo on the back.



like this, this handkerchief is attached to the top of the mouse



Item 3. Coordination of the illumination of the three parts of the backlight


White balance is performed using variable resistors, one for each channel.
The resistor goes to ground, the anode is at + 3.3V, i.e. all three channels should be as luminous as possible, ideally forming a white color.

Variable resistors allow you to adjust the brightness of each color so that the total glow is as close to white as possible.

After measurement, the nominal values ​​of variable resistors, they are replaced by permanent resistors.

Item 4. Trimming the main board


In general, there is nothing special here - Dremel, diamond disc - a whip and there was a stub with buttons and a USB connector :)

At first I planned to use the USB connector of my motherboard to connect the USB cable, but since USB on the mainboard is not needed, and used only on the WX-Mouse board, this connector turns out to be superfluous. Therefore, made a USB cable retainer from the connector pins. As a result, the USB cable is plugged into the connector, on a small cable from the WX-Mouse board.



Item 5. Connector for buttons and wheels


On the stub of the motherboard, there was a small connector for 8 pins, for buttons and a wheel.

The connections from the buttons with the connector are made on the reverse side of the board. Partially, already existing connections of the board were used. Wiring fixed silicone sealant.



Item 6. Determination of the optimal height of the sensor placement


The PMW-3360 sensor is placed, on a small board, in conjunction with the atxmega128a4u controller





Selection of heights, for better focusing, is facilitated by the ability of the WX-Mouse to output video of how the sensor sees the surface.

Example.

In the first half of the sensor over the usual writing paper, you can see how the focus changes when the height of the sensor is changed. In the second part of the fabric pad, such as "control" ie with coarse weaving.


Item 7. Placing the board with the controller and sensor


WX_Mouse board is placed on racks made of aluminum. Racks were cut from the plate - the plate thickness is the height of the racks. The final adjustment of the height is carried out by thin pads, under the racks.







bottom view



Item 8. Cable upgrade


The cable is being finalized by replacing the initial 40-50cm segment with a thin, flexible cable, twisted from four MGTF wiring. Two pairs are woven together - power and data, then they are coiled together, i.e. used twisted pair. A cloth braid is put on top, the same as on the native cable. The result is a very light and flexible cable, which is almost not felt. If you put two mice, one with this cable and the second wireless, then with closed eyes you can determine which one will fail (at least for me :)).



On the side buttons are visible small metal "Pimp." Without them, in the tense moments there were wrong clicks. "Pimp" made of stainless steel.

In addition to reworking the mice in W-Mouse, I repair them, if anything, contact them - I will consult or repair it.

Source: https://habr.com/ru/post/371461/


All Articles