[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4752: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4754: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
FMS Forum • View topic - Selfbuild an USB PC <-> PPM PIC inteface

Selfbuild an USB PC <-> PPM PIC inteface

Postby mute » Sun Nov 07, 2004 9:23 am

Hi all, i'm working on a USB interface that will be connected to the PPM output of the most common RC. Your PC will see it as a common Joystick and so you can use it with FMS or also to drive a car or to play PACMAN ;-)
Actually i'm testing it on my Hitec Focus4 and only two axes are working (i started this project 5 days ago). By the way the final circuit will theorically allow transmisson of up to 14 axes and 12 buttons. All RC compatible with my one will be supported... (i hope ;-) ).
You can find more detail about this project (FMSUSB) on my website:
Is someone interested in it? If so i will propose more details in my pages... otherwise i will only write a brief description.

Bye,

Walter
mute
 
Posts: 11
Joined: Sun Nov 07, 2004 9:14 am

Postby Scott Mark » Sun Nov 07, 2004 9:41 pm

Yes, I'm interested. But will building a PIC cable cost less than buying one? I don't have a PIC compiler, a PIC burner, etc, etc.

Scott
Scott Mark
 
Posts: 4
Joined: Sun Oct 31, 2004 8:21 am

Postby mute » Mon Nov 08, 2004 10:41 pm

I don't know if for you it will cost less than buying one, but for me the answer is yes ;-)
I have my own PIC programmer and may be that you have a friend that owns one. More or less the entire amount for the circuit will be less than 10 euro. If you need a programmer you can build my Walpic for a few euro (the scheme is also on my site).

A good news about the project, today i successfully tested the six channel version!

Now i can fly with all my RC axes! :-))

In a few days i will write the pages about the interface.

Walter
mute
 
Posts: 11
Joined: Sun Nov 07, 2004 9:14 am

Postby mute » Mon Dec 06, 2004 9:35 pm

Now 12 channels are working! :-)
The work is in progress!!!

P.S.: I added a channel mapping function to my device...
mute
 
Posts: 11
Joined: Sun Nov 07, 2004 9:14 am

Postby phildc » Tue Dec 07, 2004 1:10 pm

Can you tell us the "resolution" you achieved with this setting:
PPM -> PIC -> USB joystick
I mean how many stick positions on each side of the neutral for a 45° or 100% signal , or how many in total?

Other question: will you make your design available for others?

Thanks,
Philippe
phildc
 
Posts: 352
Joined: Fri May 14, 2004 8:57 am
Location: Brussels Belgium - Club: JDM-Nivelles

Postby mute » Fri Dec 17, 2004 4:56 pm

mute
 
Posts: 11
Joined: Sun Nov 07, 2004 9:14 am

Postby phildc » Sat Dec 18, 2004 11:16 am

Resolution is important to the behaviour of the plane in the simulator. Depending on the type of plane, you can get noticeable "flutter". Also trimming (e.g. for an horizontal flight) can be difficult or impossible.
In fact you can loose the quality of your transmitter with a limited resolution.
Typical resolution for audio input is around 23 steps on both sides, which is too little in most cases.
For PIC's going to a COM-type input (this can also end on USB, just a port conversion), you typically get over 80 on both sides. This is equal or exceeds the physical resolution that the pilot can achieve on the sticks and trims.
Your resolution of 50 on each side is medium and will probably do the job. To be tested...
My question: I did not look into the application of joystick in this particular case (PPM .... USB as a joystick), but I wonder why you can't achieve a little bit higher resolution?

Anyway, go on with your good job.

Philippe.
phildc
 
Posts: 352
Joined: Fri May 14, 2004 8:57 am
Location: Brussels Belgium - Club: JDM-Nivelles

Postby mute » Sun Dec 19, 2004 10:18 am

mute
 
Posts: 11
Joined: Sun Nov 07, 2004 9:14 am

Postby phildc » Sun Dec 19, 2004 10:30 am

phildc
 
Posts: 352
Joined: Fri May 14, 2004 8:57 am
Location: Brussels Belgium - Club: JDM-Nivelles

Postby Eric Brouwer » Mon Dec 20, 2004 8:13 am

With the USB Joystick, the resolution is set to vary between 0 and 100%, with 50% defined as the centre. This is more than adequate. I have been using this resolution with the Serial PIC interfaces, Joystick interfaces as well as the USB Joystick interfaces.

In fact, when trying to get the resolution too high (say 255), one will notice that the transmitter output pulse varies as well, and with the 1% accuracy of the PIC's 4MHz internal oscillator, the signal will vary between a couple of numbers, say for centre stick, the PIC's data will vary say between 125 and 130.

Also, depending on the method of PIC programming, a delay of typical 6us is needed to sample the PPM signal. This already results in more than 0.5% error on the original pulse length.

One must also remember to cater for special features on different transmitters. Some transmitters can be programmed to give pulses varying between 0.75 and 2.25ms. This will obviously have an effect on the final resolution.

I have been using the FMS Serial PIC, joystick as well as USB joysticks on FMS, RealFlight, RealFlight G2 and several Microsoft games, without any problem on glithcing, or unstable surfaces. In fact, with the Raptor 60 in RealFlight G2, the chopper will stay in a hover on the same spot (wind disabled) when using my USB interface.

Most of the new generation digital joysticks that I tested, make use of the standard USB paramaters, which will detect only 100 points throughout an axis movement. Don't be too critical on the resolution. I doubt it if one will notice the difference between a resolution of 80 or 150 points. Above 150 points, the inaccuracy of the PIC software, PIC power supply, or even the transmitter becomes noticable.

By
Some mistakes are too much fun to only make once.

Vanderbijlpark
South Africa
Homepage: http://myweb.absa.co.za/eric.brouwer
Eric Brouwer
 
Posts: 252
Joined: Mon Apr 22, 2002 7:53 am
Location: Vanderbijlpark, South Africa

Postby phildc » Mon Dec 20, 2004 9:48 am

You are right, Eric. You point out the limits for the PIC. From my experiences with my flight recording soft, some erratic movements may start with a resolution of around 160 points for the total 200%. This same resolution covers also the -125% to +125% with smaller and higher numbers.

Philippe
Brussels
phildc
 
Posts: 352
Joined: Fri May 14, 2004 8:57 am
Location: Brussels Belgium - Club: JDM-Nivelles

Postby mute » Tue Dec 21, 2004 8:27 am

mute
 
Posts: 11
Joined: Sun Nov 07, 2004 9:14 am

Postby mute » Tue Dec 21, 2004 2:40 pm

I published the shcematic, PCB and a pre-release of the firmware for the device:



Bye,

mute
mute
 
Posts: 11
Joined: Sun Nov 07, 2004 9:14 am

Postby Isaac » Wed Dec 22, 2004 10:56 am

Isaac
Isaac
 
Posts: 40
Joined: Sun Jul 22, 2001 9:07 pm
Location: Goiania - Brazil

Postby mute » Wed Dec 22, 2004 5:20 pm

mute
 
Posts: 11
Joined: Sun Nov 07, 2004 9:14 am

Next

Return to PIC Interface

Who is online

Users browsing this forum: No registered users and 3 guests

cron