公告:
精彩视频
liyang RC 新手 发消息
发表于 04-9-17 12:40:00 |显示全部楼层 来自: 中国香港
原文链接   http://www.geocities.com/deonvdw/Docs/PPJoyMain.htm

摘录其中一段:

PPM radio control IRQ interface

The PPM IRQ interface allows the PC to read the PPM signal from a Radio Control transmitter fed to the IRQ line (pin 10) on the parallel port.

中文大意:

PPM遥控器IRQ接口

PPM IRQ接口可以让PC通过并口的IRQ(10号脚)来读取遥控器传来的PPM信号。

----------------------------------------------------------
就是说不要任何复杂的电路(单片机等)就可以实现遥控器和PC的连接,而且是在Win2000/XP下。呵呵,真是神奇啊!

目前我也是刚刚发现这个软件,还没有测试,但是因为只要连连线就可以了,大家也可以自己试试。从理论上讲,通过并口连接比通过麦克风接口好,因为并口是处理的数字信号。

如果真的效果可以的话,可就省了一笔银子喽,哈哈哈哈。






















[此贴子已经被作者于2004-9-20 12:34:23编辑过]

发表于 04-9-17 14:08:00 |显示全部楼层 来自: 中国四川成都
有图片说明就更好了~
liyang RC 新手 发消息
发表于 04-9-18 21:32:00 |显示全部楼层 来自: 中国江苏无锡
关于PPM遥控器接口的说明

PPM radio control IRQ interface
The PPM IRQ interface allows the PC to read the PPM signal from a Radio Control transmitter fed to the IRQ line (pin 10) on the parallel port. No interface diagram is presented here since it is rather specific to the transmitter used. A web search should yield good results.
By default PPJoy assumes the following timing characteristics about the transmitter:

1.0ms minimum PPM pulse length. Any pulse shorter than this will produce the minimum axis value.
2.2ms maximum PPM pulse length. Any pulse longer than this, but shorter than the minimum sync, will produce the maximum axis value.
3.5ms min sync PPM pulse length. A pulse longer than this is taken to mean the start of a new frame.
You can change these values if they are not suitable for your transmitter. See Changing timing parameters on how to change these values and PPM R/C transmitter timing parameters for their meanings.
There is a debug mode you can use if your interface is not working properly. See Setting PPJoy global options to turn on the debug mode.

Now try connecting and disconnecting pin 10 (IRQ) on the parallel port to pin 18 (Ground). Each time you make or break the connection you should hear one or more clicks. Now you know that PPJoy is properly hooked up to the IRQ.

Next connect your transmitter interface to the parallel port. You should be hearing a series of clicks (it might sound like a continuous tone). This means the parallel port can detect the signal from your TX. If not the voltage from your TX interface might not be enough and you may need some form of amplifier in your interface.

If you heard a tone in the above step but stil see no joystick movement you may want to try and modify the timing parameters for the joystick. It may also mean that you TX is sending a different signal type. This interface only supports a PPM signal.

Notes
This interface is only supported on Windows 2000/XP. Windows 98/Me does not provide the support functions that PPJoy requires. This interface is also not support when the "Don't allocate ports" option is turned on.
General notes about interface construction.
诺亚 超级元老 发消息
发表于 04-9-18 20:01:00 |显示全部楼层 来自: 中国四川成都
楼主,你给的链接无法访问,请把全文贴出来供大家参考一下啦!
liyang RC 新手 发消息
发表于 04-9-20 11:23:00 |显示全部楼层 来自: 中国香港
上面帖子的电路图[upload=gif]picture/onroad/200492011232881997.gif[/upload]
liyang RC 新手 发消息
发表于 04-9-20 10:59:00 |显示全部楼层 来自: 中国香港
对了,还有一点要注意的, 就是打印口的模式要是EPP或ECP。

For PPJoy, ensure that your printer port is set to either EPP or ECP in the BIOS. This might help.
liyang RC 新手 发消息
发表于 04-9-20 11:50:00 |显示全部楼层 来自: 中国香港
如果你安装PPJoy不成功,你可以用下面这个程序,他虚拟了并口。

http://users.skynet.be/delvaux/

The cheapest interface for your RC transmitter

See your TX appear as a joystick under Windows and use it in all games.



Introduction


About a year ago I made a cable to connect my TX to the parallel port for use under FMS.

Since I also wanted to use the TX as a joystick in other programs, I started looking for suitable drivers. I didn't found a solution, so I used what I found to create a bridge between the IOCTL PPJoy virtual joystick driver and the parallel port.

For the case that I ever might switch to winXP I programmed the parallel port using a dll found at http://www.logix4u.cjb.net/.



I tested the program and it works fine under win98 and windows 2000, should work under XP. It will not work under win95.



The original interface was made for the FMS free flight simulator. Check the FMS homepage on http://n.ethz.ch/student/mmoeller/fms/index_e.html to see how to construct a parallel port interface for your transmitter (using only a connector, zener diode and resistor). Sadly it only worked under Win98. This program should solve that issue, although in a very un-elegant way. Better would be if the authors of FMS included the code in their software.

I also tried the program with other programs and yes, it is working.



The only issue is the channel mapping. Sometimes the games don’t know how to cope with all the channels that PPJoy is offering them, resulting in .e.g. a trottle channel that can not be “seen”by the program. To solve that, you can use the channel mapper of PPJoy.





Download


Version 1.0

Supports automatic detection of the parallel port pin you used to connect the TX.

Supports automatic positive / negative PPM detection

Support automatic number of channel detection



You can download the executable (http://users.skynet.be/delvaux/main.exe) or take a peek at the source code (http://users.skynet.be/delvaux/source.htm)


If you like it, Read / Sign my guestbook


Furthermore you’ll need the inpout32.dll (http://users.skynet.be/delvaux/inpout32.dll) , and PPJoySetup.zip (http://ppjoy.uni.cc/)(direct download removed on request of author)



This program uses the software PPJoy (http://ppjoy.uni.cc/ ) and a parallel port driver (http://www.logix4u.cjb.net/), which can be used for free at the moment I write this, but please check the website.



Installation


Extract the PPJoy.zip file and doubleclick the setup.exe

important note for win98 users:

Don't perform all of the "post win98 steps" mentioned in the PPJoy instructions, only add to the control panel the "Parallel port joystick bus and forget about the other ones for LPTx.

Add a joystick to the control panel by using “configure joysticks”, but make sure to select “virtual port”instead of LPT1.

Copy the parallel port driver inpout32.dll and the program main.exe to a folder (e.g. c:\Program files\transmitter) and place a link on your desktop to main.exe.



Connect the transmitter, switch it on and doubleclick the shortcut. You should see something like this:




You can now go and and choose the joystick in your program. If there are channels you can’t find, use the channel mapper of PPJoy (control panel -> configure joysticks -> mapping)

There is no need to use the windows joystick calibration utility.

In fact, it already has gotten me in trouble where it mis-calibrated things.

As a solution, I completely de-installed PPJoy and reinstalled it, and things were fine again.



Have fun!



Koen







Background


// PPM signal spec (free interpretation):

//

// we'll see a number of active HIGH pulses

// pulse duration 1ms means channel position is 0%

// pulse duration 2ms means channel position is 100%

// 1st pulse is channel1, 2nd channel2 and so on

// max number of pulses allowed is 9

// after last pulse, min. 2ms LOW functions as reset signal,

// indicating pulse 1 will follow again



liyang RC 新手 发消息
发表于 04-9-20 11:54:00 |显示全部楼层 来自: 中国香港
上面帖子的图片
[upload=jpg]picture/onroad/200492011544226833.jpg[/upload]
liyang RC 新手 发消息
发表于 04-9-20 11:05:00 |显示全部楼层 来自: 中国香港
如果过使用过程中有问题,请尝试:

Here is what I had to do with winxp to get it up and running.
1. set the parallel port in cmos to lpt1: and make sure it is in ECP mode.
2. Goto the device manager in system properties and then go the properties page of the lpt1 port. Go to the port settings tab and choose the option to use any Interrupt.
3. Once those were set, the parallel port was recognised and worked great.
liyang RC 新手 发消息
发表于 04-9-20 11:20:00 |显示全部楼层 来自: 中国香港
还有一个电路图

The 3.5V output might not work stable on all PC''s. Some ports work correct with a voltage level as low as 2.5V, but others only above 4.5V

Remember to also ensure that the parallel port is set up as ECP/EPP in the BIOS.

Note that this circuit does not work on all Windows versions. It will not work with Win2000/XP. I do not know about WinME.

Try using this circuit. It might help.



The 100K resistor is used to cater for JR transmitters, with a PPM signal as low as 0.7V.

Hope this helps



[此贴子已经被作者于2004-9-20 11:22:26编辑过]

您需要登录后才可以回帖 登录 | 注册

广告投放|联系我们|手机|投稿|Archiver|About us|Advertise|遥控迷模型网|RCFans ( 粤ICP备10210518号-1 )

版权所有 RCFans.com © 2003-2016

返回顶部