33 pagesV  < 1 2 3 4 5 6 > »  
 
REPLY
> Connecting the mouse / keyboard to the PC via the COM port | raspinovki \ driver
plab
Message#1
05.10.06, 19:10
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 2605
Check in: 06.09.05
HP iPAQ hx2110

Reputation:-  109  +

I wrote a small factor here. I need a little more work to be done and it will be what I need ...

Connecting a PS / 2 keyboard to a PDA via the COM port.

1) Output port com ..

If you need an external keyboard, for your PDA, and you can’t afford buying a keyboard and keyboard, you can connect an ordinary PS / 2 keyboard via the COM port to the PDA, there is a COM port on almost all PDAs (unlike USB host) ... First you need to bring the usual com port connector (RS232) from the normal PDA connector, for this you need to find the RS232 connector (for this I just disassembled the old cable from the modem), and the PDA connector (for this I used the usual whistle from the charger, Comes with my ipaq) I also need a soldering iron and solder and other accessories for the pa ki .. pinout (which is where the contacts are) can be found on pinouts.ru in particular pinout com port as a rs232 connector located athttp://pinouts.ru/SerialPorts/Serial9.shtmlpinout of the PDA connector can be found there, in particular, pinout of the connector HP iPAQ h19xx, h22xx, h3800, h3900, h4100, h4300, hx4700, h5400, h5500, h6315, h6340, h6365 located athttp://pinouts.ru/PDA/ipaq_22p.shtmlthere are tables, we look there identical names of contacts and simply combine the contacts of the PDA connector with the rs232 connector ...
I did it all in this form, but it can work out differently for you, in general, it’s not important that everything works ...
Attached Image

It should be noted that such a cable is useful not only for connecting a keyboard but also for connecting a mouse, and even a modem.

2) Preparing to assemble the circuit ..

Here is the adapter circuit ..
Attached Image

This scheme is based on the AT89C2051 programmable microcontroller, but for it you need to assemble a rather complicated programmer circuit instead, I recommend using the AT89S8252 microcontroller for it has more memory and is very easy to program ..

To build this scheme, you need:
1) Connector for ps / 2 keyboard "socket"
2) 2 ceramic capacitors 33pf (picot farad)
3) Quartz resonator 24 MHz
4) 10k ohm resistor (kilo ohms)
5) ceramic or electrolytic capacitor 10mkf (micro farad) 16V (volt)
6) atmel AT89S8252 programmable microcontroller in DIP 40 package
7) 4 ceramic capacitor 0.1mkf (micro farad)
8) Integrated Circuit MAX 232 CPE (it is desirable to take CPE and not ACPE and TP, since CPE is cheaper and more suitable for this circuit) in the DIP16 package.
9) RS232 connector
10) Panels for these microcircuits, they can be called SLC and TSR panels, they should definitely be taken, I didn’t buy it because of my stupidity I spoiled the prototyping board and the microchips themselves, because during the soldering the microcircuit contacts get very hot and the microchips fail from overheating, and if you need to remove the microcircuit from the board, you cannot do it without damaging it ..
11) A prototype board for simulating microcircuits, if you assemble such a scheme for the first time, then it is better to take a board with a larger size I bought a 10x10cm board, since I sang the scheme of such complexity for the first time ...
12) about 5 meters of mgtp, it is desirable that the section was smaller, my section was 0.05mm.
13) 2-pin power connectors.
14) 5v power supply, I used 3 AA batteries as a power source, do not try to use power supplies from mobile phones, because there is a pulsed power supply, and the pulsed power supply will not work.

To build the programmer:
1) 2 resistors 200 ~ 500 Ohm
2) lpt port connector
3) 5 pin connector on the board

I bought it all in the store CHIP and DIP at Metro Kurskaya.
Attached Image

I spent about 500r for all this, but if you buy everything exactly according to the list, it will be about 300-400r.

3) circuit assembly

One of the most difficult parts of the assembly. First we take the prototyping board itself, then we put the radio parts on it, with their contacts exactly in the holes on the prototype board, everything is so calculated there. I started with the ps / 2 connector, I installed it on the board, then I dripped the solder to where the connector contacts entered, then cut off a piece of the size we need from the mgtf wire, then remove some insulation from its edges, then bare the wire. from the side where there are contacts. And so here we slowly collect the entire circuit, during assembly you will need chip prints and programmable microcontrollers, they can be found in datasheets, and datasheets themselves can be found on the manufacturers website, datasheet AT89S8252http://www.atmel.com/dyn/resources/prod_do...nts/doc0401.pdfmax232 datasheetAttached fileimg-18420-MAX.rar(578.91 KB)
.. To distinguish such details as capacitors and resistors, you will need information about the markings, since most of the elements will either be marked with colors, or with codes, information about the marking of capacitors can be found here:http://www.radioradar.net/spravka/conder.p...avka/conder.php, marking resistors here:http://www.alfa-elektronik.com/html/articl...t/mark-res.html.. if you are new to radio engineering, then I would advise you to build small paper envelopes in which to embed elements and on envelopes to write which element lies in them (I did) in order not to accidentally confuse when assembling the circuit .. It is worth noting quartz and condensers need to be soldered closer to the controller, also on the DTR port you can not output the line .. It is also advisable to immediately assemble the programmer, the programmer circuit:
Attached Image
I recommend resistors to hide in the lpt connector itself ... For example, like this:
Attached Image

This is a programmer of another microcontroller (microcontroller), in the scheme of our programmer there will be only 2 resistors ..

It is desirable to ensure that the programmer connects to the board and is not firmly soldered to the MK contacts, for this I indicated a 5-pin connector on the list, which will greatly simplify the life of the M programming ..
Attached Image

Attached Image

4) Microcontroller programming

When the process is complete and the circuit is ready, you can go to the programming of the microcontroller, for this we need the programmer programmer "chameleon" it can be taken from herehttp://atprog.boom.ru/Sindex.htmlwe also need the “firmware” itself, it is a binary file, you can download it from herehttp://mkmk.ras.ru/iprim/arc/palmtasta2.zip, in the archive there is a keyboard.bin file, this is the firmware of our micron. First, we solder the capacitor and resistor from the rst line of the controller, and solder the rst programmer, connect our circuit to the computer's lpt, connect the power, start the chameleon program, select the tedious module for programming. Programming will be finished, the plate will be displayed, which will inform about it .. Then disconnect the programmer from the computer, solder the RST line back and everything is ready .. If you are not sure that you can program it yourself l controller, then as far as I know there are special companies that have special programmers, you can apply there if then it is desirable to build a circuit on the AT89C2051 because if there is where this chip can be programmed, its application will greatly simplify the assembly process and is also the cheapest ..
That's all, it remains only to bring the connectors and build the case, well, this is a matter of creativity .. when everything is ready, install the newtonkey program on the PDA, launch it and enjoy the work from the full-size keyboard in the PDA ..
img-18281-IMG_0943.JPG


Post has been editedbambei - 18.11.10, 03:14
santass
Message#22
16.07.06, 04:59
User
****
[offline]

Group: Banned
Messages 51
Check in: 28.04.06
Samsung ATIV Smart PC 500T1C-A02

Reputation:-  3  +

info on connecting the keyboard through the adapter ps / 2->com (rs232)
_http://www.hpc.ru/lib/arts/1099/
plab
Message#23
16.07.06, 05:21
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 2605
Check in: 06.09.05
HP iPAQ hx2110

Reputation:-  109  +

cool! As soon as I get to the dirge, I will definitely do it and accomplish my goal ...


--------------------
signatures are prohibited
Klev_
Message#24
16.07.06, 17:11
Old resident
*******
[offline]

Group: Developers
Messages 952
Check in: 15.07.06
HP iPAQ hx2490

Reputation:-  111  +

>plab
1) I watched the presence of a device in a program called PHM Device Manager v0.22 by Philippe Majerus.
It can be found on the site _http://www.phm.lu/products/PocketPC/DevMgmt/.
2) Maybe you should really try to rename the driver in HID1.

>santass I saw this scheme, but it is practically not realizable, because it uses a microcontroller (hereinafter referred to as MK) AT89C2051. Undoubtedly, it is cheaper and easier to operate this MK. It is impossible to find something else. In my opinion, it has already been taken out of production. To program this MK need a special programmer, which is expensive. Instead, it seems, it is necessary to use MK AT89S8252. This MK is programmed via SPI interface. The programmer is a cable + 3 resistors + a DB9 connector. Replacing this scheme will need C1 and C2 to 30pF. The rest of the scheme will not undergo any changes.
Scheme "programmer" SPI interface is on the site _http://atprog.boom.ru/Sindex.htmlcalled "Programmer circuit for microcontrollers via SPI interface". MK itself costs about 200 rubles in chipidip.
Prog driver for Claudia on the proposed link will not be able to download.
sshd
Message#25
16.07.06, 21:24
Experienced
******
[offline]

Group: Developers
Messages 476
Check in: 03.02.06
Samsung SGH-i780

Reputation:-  14  +

Klev_ @ 07.16.06 07:11:42
Prog driver for Claudia on the proposed link will not be able to download.

For a com-port, you can make a clever program, which will be constantly running, and constantly read data from it. and at the right moments call keybd_event.
plab
Message#26
16.07.06, 21:50
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 2605
Check in: 06.09.05
HP iPAQ hx2110

Reputation:-  109  +

This MK is programmed via SPI interface.

and nezha to agree in kakonny firm so that it was pushed ...


--------------------
signatures are prohibited
Klev_
Message#27
16.07.06, 21:59
Old resident
*******
[offline]

Group: Developers
Messages 952
Check in: 15.07.06
HP iPAQ hx2490

Reputation:-  111  +

>sshd
Why write a prog yourself if someone before you already wrote it. Here found the NewtonKey _ driver programhttp://www.neutrio.com/wince/NewtonKey/NewtonKeyPPC125-ARM.zip
Klev_
Message#28
16.07.06, 22:09
Old resident
*******
[offline]

Group: Developers
Messages 952
Check in: 15.07.06
HP iPAQ hx2490

Reputation:-  111  +

>plab
SPI interface is easy. No firm needed. 5 wires + 2 resistances. The microcontroller is connected to the LPT port with the help of this farm. On the same site where the programmer diagram is shown (_http://atprog.boom.ru/Sindex.html)You can download the program "Chameleon". Use it easier than ever. You open the binary file with the firmware and press the "Flash programming" button. Everything.
plab
Message#29
16.07.06, 22:25
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 2605
Check in: 06.09.05
HP iPAQ hx2110

Reputation:-  109  +

Somebody try this prog driver and unsubscribe ...
As soon as I am at home (I’m just on the other side), I’ll seriously deal with this matter, I’ll do everything and test it ... but sometimes I will study this topic ...


--------------------
signatures are prohibited
plab
Message#30
17.07.06, 22:07
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 2605
Check in: 06.09.05
HP iPAQ hx2110

Reputation:-  109  +

I studied the SPI programmer circuit, I think I can sing it ... right now, and I will study the program NewtonKey


--------------------
signatures are prohibited
plab
Message#31
18.07.06, 17:20
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 2605
Check in: 06.09.05
HP iPAQ hx2110

Reputation:-  109  +

There in the archive with this program there is an interesting scheme from the mini DIC interface and without any chips ...


--------------------
signatures are prohibited
Klev_
Message#32
18.07.06, 20:03
Old resident
*******
[offline]

Group: Developers
Messages 952
Check in: 15.07.06
HP iPAQ hx2490

Reputation:-  111  +

The only thing that I have doubts in the scheme proposed for the link _http://www.hpc.ru/lib/arts/1099/- This is an NPN transistor used as an inverter for converting TTL levels<->CMOS. Such a scheme refused to work for me. Performance checks conducted with a desktop computer. The computer refused to accept the data transmitted by the controller. This illustration shows the exact working scheme. _http://starostin.palmclub.ru/kbd.gif
Picture
. Only there, the infrared diode is still soldered, which is not necessary to solder and quartz instead of 18 should be set to 24 MHz. And yet you can not output the line DTR and still need to solder the line AE / Vpp to + 5V. And so the scheme is correct and working.
Pinout AT89S8252 can be found in _http://www.sibsutis.ru/~mavr/LIB/Atmel/mcs51/AT89S8252.pdf
Pinout MAX232 - _http://sub.chipdoc.ru/html.cgi/txt/ic/Maxim/interfaces/rs232/max232-249.htm?fid=12
Picture
If someone wants to recompile the source code, the compiler - Keil C51 can be taken on __http://mkmk.ras.ru/iprim/arc/ek51v600.exe
For the treatment of this program of greed will need 2 patcher, which lie here: __http://mkmk.ras.ru/iprim/arc/patchers.rar
To check the performance of the scheme with the BB, I wrote a program that reads data from the comport __http://mkmk.ras.ru/iprim/arc/COM_rw.rar.
Using it is easy. Select the com port number, baud rate, press the INIT port button, then send the data from the controller, then press the Receive button. In the editbox, the keystroke codes appear in decimal representation. At the end of the work, click the Close Port button.

Programmer circuit:
Picture

Post has been editedKlev_ - 28.07.06, 19:25
plab
Message#33
18.07.06, 21:44
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 2605
Check in: 06.09.05
HP iPAQ hx2110

Reputation:-  109  +

Klev_, well done!!!
and what makes max232 ?? I understand he performs the role of the npn transistor ??? what he really is?? Is it a programmable microcontroller? If so, what kind of binary should it be stitched ???

This illustration shows the exact working scheme _http://starostin.palmclub.ru/kbd.gif

Does it work in your PDA ??? I think that the NewtonKey prog cannot be used. I read the readme there it is written that this program is intended for the Apple Newtonkey Claudia and the layouts do not work there, I think I'll have to write my driver and program ...


--------------------
signatures are prohibited
Klev_
Message#34
18.07.06, 22:59
Old resident
*******
[offline]

Group: Developers
Messages 952
Check in: 15.07.06
HP iPAQ hx2490

Reputation:-  111  +

>plab
1) MAX232 is an integrated microcircuit on opamp. It converts logic levels from 0V - 5V ->5V - -5V. The MAX232 is not a programmable microcontroller. This microchip does not need to be programmed.
2) So far I have not done experiments with PDAs. The experiments were conducted only with a desktop computer. And first you need to get scancodes via rs232 in some terminal program or the one that I wrote and only then think about connecting to the PDA.
3) I think that the scancodes of the Apple Claudia are the same as the rest of the Claudia. Well, at least when you press the keys, we should see something like typed text.

Post has been editedKlev_ - 18.07.06, 23:00
plab
Message#35
19.07.06, 13:35
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 2605
Check in: 06.09.05
HP iPAQ hx2110

Reputation:-  109  +

The MAX232 is an integrated circuit.

and you can buy it? how much will it cost ??
I think the scancodes of the Apple Claudia are the same

I think there is no app this is ibm incompatible computers .. there is another way out for this keyboard ... and this keyboard, connects to other rs232 contacts ... I think I will have to write my driver ...


--------------------
signatures are prohibited
Mikeware
Message#36
19.07.06, 16:53
Local
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 169
Check in: 28.02.06
HP iPAQ rz1710

Reputation:-  6  +

The only thing that I have doubts in the scheme proposed for the link _http://www.hpc.ru/lib/arts/1099/- This is an NPN transistor used as an inverter for converting TTL levels<->CMOS. Such a scheme refused to work for me. Performance checks conducted with a desktop computer. The computer refused to accept the data transmitted by the controller.
Yes, no level converter. Net inverter. So it will not work on all the toons / mothers ....
Thanks for the medicine ....
plab @ 7/19/06 3:35:30
The MAX232 is an integrated circuit.
and you can buy it? how much will it cost ??
from 10 rubles, depending on the body ... _http://www.chipdip.ru/search.aspx?searchtext=max232&page=0
sshd
Message#37
19.07.06, 16:58
Experienced
******
[offline]

Group: Developers
Messages 476
Check in: 03.02.06
Samsung SGH-i780

Reputation:-  14  +

plab @ 7/19/06 3:35:30
I think there is no app this is ibm incompatible computers .. there is another way out for this keyboard ... and this keyboard, connects to other rs232 contacts ... I think I will have to write my driver ...

driver is the lesser of problems.
reading from the com port and calling keybd_event is half a day's work.
Mikeware
Message#38
19.07.06, 17:34
Local
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 169
Check in: 28.02.06
HP iPAQ rz1710

Reputation:-  6  +

driver is the lesser of problems.
reading from the com port and calling keybd_event is half a day's work.

And the mouse? Mouse driver?
Threat last driver wrote on 80 asme, and about 17 years ago ...: (
plab
Message#39
19.07.06, 19:09
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 2605
Check in: 06.09.05
HP iPAQ hx2110

Reputation:-  109  +

driver is the lesser of problems.
reading from the com port and calling keybd_event is half a day's work.

Well then, there are no problems, we have already figured out the converter with the converter (_http://starostin.palmclub.ru/kbd.gif),lagged behind only make the driver ...
Only there still soldered IR diode

But why is he needed on that scheme ??? Surely it is also an IR clave from ps / 2 can be done ??


--------------------
signatures are prohibited
Klev_
Message#40
19.07.06, 19:37
Old resident
*******
[offline]

Group: Developers
Messages 952
Check in: 15.07.06
HP iPAQ hx2490

Reputation:-  111  +

I tried to use Newtonkey as a driver. I programmed the controller to output bytes 0-255 in RS232.
Results:
asdfgzxcvbqweryt123465 = 97-80) ou (ip
lj'k; \, / nm.
In general, it is clear that this is quite normal - scancodes correspond to reality. You don't have to write the driver yourself.


>plab Yes, from the usual ps / 2, you can make IC clavus.

Post has been editedKlev_ - 21.07.06, 13:18
Anticommunist
Message#41
19.07.06, 20:28
Experienced
******
[offline]

Group: Friendssavagemessiahzine.com
Messages 502
Check in: 10.01.06
Xiaomi Redmi Note 5 3/32

Reputation:-  11  +

Klev_,
And you will not throw?


--------------------
Asus A730 ->HP hx4700 ->HTC Universal ->iPhone 1-gen ->Huawei MediaPad S7-301u (CM10.1) ->Sony Z Ultra (lte), Xiaomi Redmi Note 3 Pro ->Xiaomi Redmi Note 5

33 pagesV  < 1 2 3 4 5 6 > » 


 mobile version    Now: 11.03.19, 20:47