Hyper Keyboard - technical discussion

User avatar
tlt

03 Dec 2012, 08:52

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.

User avatar
7bit

19 Jun 2013, 19:53

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.

User avatar
tlt

19 Jun 2013, 20:12

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?

User avatar
Muirium
µ

19 Jun 2013, 20:21

It's multimeter time.

User avatar
Halvar

19 Jun 2013, 20:35

Last edited by Halvar on 19 Jun 2013, 20:39, edited 1 time in total.

User avatar
7bit

19 Jun 2013, 20:36

Thanks!

Let me know what the outcome of your multimetering is.
:-)

User avatar
Muirium
µ

19 Jun 2013, 20:39

So I cheated…

Omron D2FC.
Image

Cherry DB.
Image

Maybe Soarer will oblige in interpreting these complex schematics for you…

User avatar
7bit

20 Jun 2013, 08:59

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.

mSSM

20 Jun 2013, 11:24

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?

User avatar
7bit

20 Jun 2013, 11:45

Ideally, it will be the RollerMouse Free2-scroll-wheel.

Maybe we should just buy some new mice and take all components including controller.

User avatar
ne0phyte
Toast.

20 Jun 2013, 12:10

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.

User avatar
7bit

22 Jun 2013, 09:06

There must be someone who knows the answer:
:roll:

How do I connect those 3 pins?
:?

User avatar
matt3o
-[°_°]-

22 Jun 2013, 09:22

7bit wrote:There must be someone who knows the answer:
:roll:

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)

User avatar
7bit

22 Jun 2013, 10:44

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?

User avatar
matt3o
-[°_°]-

22 Jun 2013, 10:49

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.

User avatar
tlt

22 Jun 2013, 15:32

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.

User avatar
Soarer

22 Jun 2013, 15:50

Muirium wrote:Maybe Soarer will oblige in interpreting these complex schematics for you…
:lol: You'd think... wouldn't you... but...

Piers Cawley

23 Jun 2013, 17:39

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.
:mad:
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.

Post Reply

Return to “Workshop”