Enterprise Forever

:UK => Hardware => Input devices => Topic started by: Z80System on 2016.February.28. 11:01:52

Title: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.February.28. 11:01:52
I have an enterprise machine like this:

https://enterpriseforever.com/hardver/az-alom-ep-projekt/msg53212/#msg53212

It is naked like that, it is not assemled to a case and will not be.


And I have a PS/2 keyboard controller solution with an arduino micro board involved:

https://enterpriseforever.com/hardver/hw-keszites-arduino-val/msg41972/#msg41972
https://enterpriseforever.com/hardver/hw-keszites-arduino-val/msg41897/#msg41897
https://www.arduino.cc/en/Main/ArduinoBoardMicro


And now, I would like to assemble the above arduino micro to the above EP motherboard,
but I do not have an idea how to tie, how to fix the arduino to the motherboard.

Also I do not know how to tie/fix a PS/2 socket to the EP motherboard.


So, I have the software on the arduino micro and I know how to wire the arduino to the moderboard and a PS/2 socket to use a PS/2 keyboard with the EP.

But if I do the wiring, then the arduino micro and the PS/2 socket will "fly on the air" on the wires ... :)

So what I asking for is an idea or a technique how I can mechanically/physically tie/fix the arduino micro and a PS/2 socket to the EP motherboard above.


Please do not say "using a rope" ... :)
Title: Re: PS/2 keyboard hardware assembly
Post by: pear on 2016.February.28. 11:10:04
Rather scotch tape ? ;D
You will have an any casing ?
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.February.28. 11:12:39
Quote
Rather scotch tape ? ;D

Okay, I knew that this will happen ... :)
Title: Re: PS/2 keyboard hardware assembly
Post by: SlashNet on 2016.February.28. 11:22:53
Maybe, try to use the glue gun?
(http://stroy-dom.info/wp-content/uploads/2012/01/kleevojpistolet-300x220.jpg)
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.February.28. 11:24:20
Quote
You will have an any casing ?


No, this EP will stay naked. This does not go back to a case.

It is, because of the EnterMice and your planning of other extarnal expansions,
and these have no a casing, and I don't like mixing of a cased EP with uncased PCBs,
because I do not feel that nice enough.

But I like a fully PCB EP, and that can get expansions more easilly like cased ones.

So I plan to use two EPs, a standard non expanded cased one, and the one naked above with many expansions.
Title: Re: PS/2 keyboard hardware assembly
Post by: pear on 2016.February.28. 11:26:54
Maybe, try to use the glue gun?
That's right, billions of Chinese people can not be wrong :smt043

Use the cover of the PC. Immediately you have a built-in power supply.
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.February.28. 11:31:12
Quote
Use the cover of the PC. Immediately you have a built-in power supply.

Yes, we think of that, but I do not think I will find such a minimalist (sizes, design, no unnessessary USBs and such) PC case what I could like ...

I like the idea of a PCB EP otherwise ...


I just cannot fix my gadgets to it ...
Title: Re: PS/2 keyboard hardware assembly
Post by: pear on 2016.February.28. 11:33:12
It is therefore only plate of plexiglass.
Or better two. An one underside, second from the top.
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.February.28. 11:40:10
Quote
It is therefore only plate of plexiglass.
Or better two. An one underside, second from the top.

Yes, I thought of it, too.
Maybe it could be ... but it is so much tinkering (gadgeteering) ...

Something would be good between this and the glue ... :)





And I just found the solution, pear ! :)

You could make a PCB like the EnterMice itself, just it is for the keyboard,

and that would have connectors like the keyboard fixer has !


I would just push that device to the official keyboard sockets on the motherboard,
and I could throw my keyboard stuff to the bin ...

Problem would be solved ... :)
Title: Re: PS/2 keyboard hardware assembly
Post by: pear on 2016.February.28. 11:43:59
It can be done.
Still, this does not solve the problem of mounting plates.
On thin keyboard connectors may not withstand.
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.February.28. 11:47:53
Quote
On thin keyboard connectors may not withstand.

Unfortunately that was my best idea about the topic ... :(
Title: Re: PS/2 keyboard hardware assembly
Post by: pear on 2016.February.28. 11:54:49
On the left side of the motherboard are two openings.
In one (on the picture at bottom) you already have the spacer. In the second hole (upper) you would have to add a second.
The third point of support can then be left keyboard connector. The right keyboard connector will connect by the tape.
Perhaps in this way?
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.February.28. 12:09:14
Quote
Perhaps in this way?

Hmmm ... I think I did not get you yet ...

What case do you think about ? My arduino case ? Or your "new keyboard solution" ?

In the arduino case, I would like to use arduino micro board itself, what is a
4.8 cm X 1.77 cm
thingy ... and light, it's almost staying in the air ...
Title: Re: PS/2 keyboard hardware assembly
Post by: pear on 2016.February.28. 12:33:19
High speed draft :)
One picture as a thousand words.
A chip shape is as the Arduino.
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.February.28. 12:45:06
Ahhh ... you think about assembling the arduino micro and the PS/2 socket together to a bigger pcb ...

Hmmm ... maybe .... there are PCB -s like these:

http://elektronika.vatera.hu/muszerek_alkatreszek/egyeb/prototipus_nyak_lemez_lap_160x115mm_2199763976.html

Title: Re: PS/2 keyboard hardware assembly
Post by: pear on 2016.February.28. 12:46:35
A piece of universal board should suffice.
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.February.28. 14:02:54
Okay,

Alongside your bigger pcb idea I made some tests.


If both god and Zozosoft want that, the above EP mobo will be expanded with Saint's internal memory expansion,
so plenty of space will be released.

So I tried the spacers around the Nick. It would be good, because of the holes around the Nick are way bigger than necessary for the spacers,
so spacers can be moved approx. 2 mm in the hole, but still can be tighten. It would be good for the fix matrix universal PCB -s ...

The drawback is that Nick is pretty far from the keyboard ICs, so there would be many long wires ... not so good:
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.February.28. 14:05:13
So, I tried other thing, what is closer to your idea.

In this case there will not be space for moving the spacers, because there are wires on the PCB around.

What do you think about this smaller version ? :
Title: Re: PS/2 keyboard hardware assembly
Post by: pear on 2016.February.28. 14:09:36
If it fits, why not ? :)
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.February.28. 14:43:24
Quote
If it fits, why not ? :)

It is not trivial, but I think, It can be done with some attention.


The PS/2 socket could be placed just next to that side where the double metal spacer will be (like in the picture),

even it can be UNDER the universal PCB (between the mobo and the universal PCB) choosing an 1.5 cm spacer height,
and the arduino micro board would (probably) fit next to the PS/2 socket.

The micro board would reach above the spacer at the edge of the mobo,
but I think with an additional lines of IC socket like these:
http://p.globalsources.com/IMAGES/PDT/B1112823448/Pitch-Single-in-Line-SIP-Socket.jpg
I can raise the micro board above the screw what will fix the universal PCB to the spacer.

The arduino micro have contacts only at the edges of the board, not in the middle.


So the height of the whole stuff would reach approx. 2.5 cm, but the PS/2 socket would be just 1-2 mm above the EP mobo, just next to the double metal spacer ...

It can be stable enough, cannot it ?
Title: Re: PS/2 keyboard hardware assembly
Post by: pear on 2016.February.28. 14:49:36
It will definitely be a lot more stable than only on the keyboard connectors.
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.February.28. 14:56:41
Okay, thanks for the help,

I will try to do this ...
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.March.04. 19:31:51
What do you think, does the keyboard problem (for what the keyboard fixer is made) affect my arduino based keyboard interface ?

Do I have to use diodes on the wires, too ?

Or does the problem affect only the membrane keyboard ?
Title: Re: PS/2 keyboard hardware assembly
Post by: pear on 2016.March.04. 19:40:35
I do not know. It depends on how it is constructed keyboard interface on Arduino.
If it is possible to short the two columns at the same time, the fixer may be useful (or diodes directly on the outputs from the Arduino board).
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.March.04. 19:53:13
Hmmm ... I'm trying to reach the closest match possible to the original functionality,

so yes, when somebody is pushing two buttons on the PS/2 keyboard I'm keeping two lines active on the EP side ...


But I remember some kind of diode on the arduino micro's direct I/O pins ... I try to find the circuit ...
Title: Re: PS/2 keyboard hardware assembly
Post by: pear on 2016.March.04. 19:58:14
These are probably diodes which protect I/O ports. This is not the same.
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.March.04. 20:00:59
Do these schematics explain something to you about the problem ? :

http://www.atmel.com/Images/Atmel-7766-8-bit-AVR-ATmega16U4-32U4_Datasheet.pdf
Title: Re: PS/2 keyboard hardware assembly
Post by: pear on 2016.March.04. 20:03:03
Yes, it certainly diodes protected against overvoltage.
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.March.04. 20:12:46
Okay, so as far as I understood now,

you say I could use diodes between the arduino's output pins and the EP motherboard against the "keyboard breaks control ports sometimes" problem.


But If I do that, I cannot read into the arduino on those pins anymore, can I ?

So I planned to switch those pins sometimes from output to input by software, and reading the pushed keys from the membrane keyboard ... for configuration, keyboard mappings and such ...

So if I understood well ... I have to choose between the "keyboard fixing" and the input mode of those arduino pins ... haven't I ?
Title: Re: PS/2 keyboard hardware assembly
Post by: pear on 2016.March.04. 20:19:27
Diodes are needed only on the side of the LS145 decoder. The states on its output, you can only read.
If you want to force a different state than the established by the decoder, the diodes will help you more than disturb.
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.March.04. 21:25:04
Okay,

I still did not understand the problem itself,
and you probably do not know how my arduino stuff exactly works.


My arduino stuff listen to (reads that) the 4 bit input side of the IC26(74LS145) and writes the 8 bit input side of the IC27(74LS373).

So it does not touch the 10 bit output of the IC26.


Knowing this, maybe I do not have to use diodes after all ?
Title: Re: PS/2 keyboard hardware assembly
Post by: pear on 2016.March.08. 16:42:16
If so, you really do not need diodes.

PS. Sorry for the delay, but somewhere I escaped this post :oops:
Title: Re: PS/2 keyboard hardware assembly
Post by: Z80System on 2016.March.08. 18:16:31
Quote
If so, you really do not need diodes.

Hurrah !

Quote
PS. Sorry for the delay, but somewhere I escaped this post :oops:

Do not feel sorry ... Thanks for the reply at any time ... :)