» Topics » Advice »Take care of the mouse encoder!

Take care of the mouse encoder!



A scroll wheel encoder is a component of a computer mouse that fails first. If the manipulator frayed the cord at the entrance to the case, almost every master knows how to solder it. If the encoder exits the stand, you will have to break another mouse to replace it. And it happens so that the pin that connects the wheel with the encoder breaks. Good advice "you need to buy quality mice from the very beginning" does not always help. The author of Instructables under the nickname Mr_Glenn was tired of fighting with mice, and he got the hang of using the PgUp and PgDn buttons instead of the encoder. But sooner or later, any user is faced with some program where scaling is performed using the wheel, and these buttons do not help. So he came across - such an application turned out to be a regular editor of three-dimensional graphics, which got its name from a kitchen appliance. Blender, of course ...

But the master did not start because of this again to mock the poor encoder. And he took an inexpensive clone of the 32U4 Pro Micro board, compatible with Arduino Leonardo Such a board can pretend to be an HID device - through a keyboard, there, or with a mouse through the same Micro USB connector, which is intended for programming it. It is enough to add two buttons to such a board, as shown in the diagram. In a good way, of course, we need two more pull-up resistors, but it works without them.



In general, it doesn’t matter how you connect these two buttons to the board. You can exclude the connectors for the comb and solder the board directly into the breadboard type perfboard. You can exclude the breadboard itself, and make all connections with wires. It is also advisable to use small microswitches with levers instead of clock buttons. The main thing is to fill small sketchusing variables xVal, yVal, wheel of function Mouse.move (). When uploading the firmware, select the Arduino Leonardo board in the Arduino IDE.

In modern operating systems, the simultaneous operation of several USB keyboards and mice is allowed. You can rotate the encoder on one mouse, move the other, and press the buttons in general on the third. This one homemade pretend to be a second mouse. Pressing the buttons of the device will simulate the rotation of the encoder in each of two directions. And with a real mouse, you will, as before, perform all other operations without consuming the encoder resource. And your nervous system.

Of course, it is better if the design will work "not in principle, but in the case." You can get around a lot of stores, but you will not find a more budgetary building than a small junction box.

Suitable for topic

Related topics

Add a comment

    • smilesmilesxaxaokdontknowyahoonea
      bossscratchfoolyesyes-yesaggressivesecret
      sorrydancedance2dance3pardonhelpdrinks
      stopfriendsgoodgoodgoodwhistleswoontongue
      smokeclappingcraydeclarederisivedon-t_mentiondownload
      heatirefullaugh1mdameetingmoskingnegative
      not_ipopcornpunishreadscarescaressearch
      tauntthank_youthisto_clueumnikacuteagree
      badbeeeblack_eyeblum3blushboastboredom
      censoredpleasantrysecret2threatenvictoryyusun_bespectacled
      shokrespektlolprevedwelcomekrutoyya_za
      ya_dobryihelperne_huliganne_othodifludbanclose
10 comments
Two are bad: you have to additionally handle conflicts when both buttons are pressed simultaneously. You need one pedal with two buttons - front and rear.
Author
No, two pedals: increase and decrease, and they are connected instead of buttons through this device.
tormozedison
So I thought: pedals will be more convenient
Twist like an encoder? scratch
Author
So in games, but the master’s task is to scale in Blender. So I thought: pedals would be more convenient.
dinosaurs you are all prehistoric, the power of thought is high time
The idea was also that the arm and leg are more comfortable than 2 arms, especially since the left arm can work, for example, with AWSD.
Author
Precisely, pedals need to scale.
Ivan_Pokhmelev
My left button mikriks died, but the encoder never
Young gamers turned to me with expensive, gaming mice, apparently in games they somehow very intensively turn the encoder wheel. I bought cheap donors at Fix Price, but as luck would have it, the height of the encoders is different, as are the wheel diameters (if they break the axle)! yes
The author of Instructables under the nickname Mr_Glenn is tired of fighting with mice
So this homemade pretend to be a second mouse
That is, if I understood correctly, instead of throwing a couple of spare mice in a drawer, the author spends a lot of time and money on making a mouse, which you need to work with two hands? scratch
A scroll wheel encoder is a component of a computer mouse that fails first.
My left button mikriks died, but the encoder never happened. But this, apparently, someone as lucky.
but you will not find a budget housing than a small junction box.
I absolutely agree, besides they are very convenient.

We advise you to read:

Hand it for the smartphone ...