Page 3 of 3
Posted: 03 Dec 2012, 08:52
by tlt
It's nice to have ports on the controller maped in order to rows and columns (e.g. PB0 to row0, PB1to row1...) as it makes the code simpler. But you can have them at random also, you just have to use more if statements or mapping tables.
Posted: 19 Jun 2013, 19:53
by 7bit
Just want to revive this with an important question:
There are 3 pins on those mouse-button switches (like Omron D2FC or Cherry DG).
Why 3 and which should I connect?
Also: still need to know which scroll wheel to use.
Posted: 19 Jun 2013, 20:12
by tlt
The switch is probably closed between two of the pins when not pressed and one of them and the third pin when pressed. Thoes are just micro switches used for many other things than mice? I guess the ones that are closed when the switch is pressed?
Posted: 19 Jun 2013, 20:21
by Muirium
It's multimeter time.
Posted: 19 Jun 2013, 20:35
by Halvar
Posted: 19 Jun 2013, 20:36
by 7bit
Thanks!
Let me know what the outcome of your multimetering is.

Posted: 19 Jun 2013, 20:39
by Muirium
So I cheated…
Omron D2FC.
Cherry DB.
Maybe Soarer will oblige in interpreting these complex schematics for you…
Posted: 20 Jun 2013, 08:59
by 7bit
Cherry DB is the wrong one (too large). The DG is the one which replaces D2F.
I still need to know how to connect to the Teensy.
Posted: 20 Jun 2013, 11:24
by mSSM
About the scroll-wheel: I am not sure where to source it from, but would it be possible to get a similar-sized one as on the CST Ltrac-X mouse?
Imagining how it would be used on a Keyboard, the best position for one would be either at the bottom (to be used with your thumbs), or at the sides of the keyboard, maybe right next to the Tab key, protruding to the left.
Hm, maybe something like the Rollermouse Free has?
Posted: 20 Jun 2013, 11:45
by 7bit
Ideally, it will be the RollerMouse Free2-scroll-wheel.
Maybe we should just buy some new mice and take all components including controller.
Posted: 20 Jun 2013, 12:10
by ne0phyte
I would prefer a trackpoint and a modkey (or just mbutton) + movement = scrolling; just like on ThinkPads. I have yet to find a better and faster way to scroll than that.
Posted: 22 Jun 2013, 09:06
by 7bit
There must be someone who knows the answer:
How do I connect those 3 pins?

Posted: 22 Jun 2013, 09:22
by matt3o
7bit wrote:There must be someone who knows the answer:
How do I connect those 3 pins?

look the switch with the small button on the left.
the first two pins on the left create the short. I believe that the first and the third are always shorted until you click (so they work inverted compared to the first two)
Posted: 22 Jun 2013, 10:44
by 7bit
OK, thanks. If anything goes wrong, I will tell people your address ...
What I need to know: Is it sufficient to connect just 2 pins or are all 3 needed in order to make these mouse buttons work the way they should.
On my Rollermouse I can only see one trace leading to the center pin.
Also: Do I need diodes, and where should they go?
Posted: 22 Jun 2013, 10:49
by matt3o
the switch is built so that you can use it to close or open the circuit.
pins 1 + 3 = click opens the circuit
pins 1 + 2 = click closes the circuit
you can easily check this with a multimeter. I don't have that switch so I cannot check myself.
To use it as a mouse button you don't need to connect all of them. Just the first two.
Diodes are needed only if you use them in a matrix I believe. If you connect them straight to a teensy pin you don't need them.
Posted: 22 Jun 2013, 15:32
by tlt
I think you can connect them in the matrix the same way as keyboard keys, I don't see a down side of that. Maybe add some soldering pads too if someone wants to connect a separate mouse controller.
Posted: 22 Jun 2013, 15:50
by Soarer
Muirium wrote:Maybe Soarer will oblige in interpreting these complex schematics for you…

You'd think... wouldn't you... but...
Posted: 23 Jun 2013, 17:39
by Piers Cawley
7bit wrote:philpirj wrote:You will need 1N4148 diodes. Choose SMD. It's even a better idea to order MX switches with built-in diodes, that will simplify PCB design dramatically. Unfortunately I haven't seen those being popular in group buys.
Thanks for the diode-specification.
The switches I sell will never ever come with diodes, because
- they are not available from my source.
- they would not be suitable for my PCB-design, because in their place are the holes for the LEDs.

However, you can pop the case and populate them with signal diodes yourself and things will be fine. I know this because I've done it.