It is currently Fri Sep 10, 2010 4:00 pm




Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2
 Modded MOMO 
Author Message
User avatar

Joined: Wed Jan 09, 2008 9:32 pm
Posts: 1575
Location: Sydney
Post Re: Modded MOMO
Here is a zip with the scripts that combine to produce the required effect:
Attachment:
lfsscripts.zip [2.07 KiB]
Downloaded 4 times
Basically I have F9 mapped to a dedicated button F10 to another and so on.
Then I have left and right and left x 10 and right x 10 dedicated to buttons.

Also If I go into F12 the up and down are enabled, otherwise they are set to chat text...

_________________
Image


Fri Mar 19, 2010 8:35 am
Profile
User avatar

Joined: Wed Jan 09, 2008 9:32 pm
Posts: 1575
Location: Sydney
Post Re: Modded MOMO
btw, those scripts are a bit of a work in progress, they may not all be perfectly setup... but the general idea works...

_________________
Image


Fri Mar 19, 2010 8:52 pm
Profile
User avatar

Joined: Sat Mar 19, 2005 11:53 am
Posts: 86
Location: Sydney
Post Re: Modded MOMO
That is by far the most interesting thing I've seen done with prototyping board BitB, well done! :clap:

If you don't mind going into it, what HW interface are you using between the PC and the master PIC; rs232 port?


Mon Mar 22, 2010 9:56 pm
Profile WWW
User avatar

Joined: Wed Jan 09, 2008 9:32 pm
Posts: 1575
Location: Sydney
Post Re: Modded MOMO
Charles wrote:
If you don't mind going into it, what HW interface are you using between the PC and the master PIC; rs232 port?
Don't mind at all...

Actually, I'm using PICAXE chips, so the interface I use is a 3 pin rs232 port on the board with a Serial to USB converter plug. This has a driver that allows the PC to see it as a com port.

Attachment:
interface.jpg
interface.jpg [ 117.21 KiB | Viewed 79 times ]


The way I set it up there is a 6 x 2 rotary switch (you can see it on the top left corner of the 3rd image in the OP. That switch will connect the serial interface to any chip, to make it easier to develop and program...

Otherwise it's really simple, it's mainly just resistors, and wiring... Actually the most difficult thing was getting the internal gear button mounts to line up the the momo paddle levers. Obviously the original uses moulded plastic, but I had to do it will pcb and screws and glue... :doh:

Next time I do something like this I'll probably try making it native USB, I wouldn't mind giving making a usb based device a try, although I looks pretty tricky... I would have to switch to a chip like ATMega and program it in assembly (PICAXE has its own bootstrap language called basic)

_________________
Image


Mon Mar 22, 2010 10:43 pm
Profile
User avatar

Joined: Sat Mar 19, 2005 11:53 am
Posts: 86
Location: Sydney
Post Re: Modded MOMO
Ahh yes the good old FTDI USB to serial converter, useful chip that one. If you go native USB next time, also have a look at the PIC18 series, some of their low end models with high speed USB inbuilt.

What about software on the PC side? Did you have to create some sort of insim application that spits the info out your virtual serial port? How do you report the button presses to LFS?


Tue Mar 23, 2010 8:38 am
Profile WWW
User avatar

Joined: Wed Jan 09, 2008 9:32 pm
Posts: 1575
Location: Sydney
Post Re: Modded MOMO
Charles wrote:
If you go native USB next time, also have a look at the PIC18 series, some of their low end models with high speed USB inbuilt.
Yeah thanks for the suggestion I'll have a look.
Charles wrote:
What about software on the PC side? Did you have to create some sort of insim application that spits the info out your virtual serial port?
Yep. ;) Here's the source code if you want to see it. (it's still a bit of a work in progress, but it does the job so far. I haven't fleshed out the rmp.txt file yet, which will have the low and high rmp for each car.
Attachment:
LFSGauge.zip [205.78 KiB]
Downloaded 2 times
Charles wrote:
How do you report the button presses to LFS?
Well actually I cheated... The way I set it up I used the 6 front panel buttons on the momo, then I used the guts of a $5 USB paddle controller for the other buttons. So I didn't actually have to deal with button reporting. I think using two way insim interaction would probably be a little laggy for that kind of thing.

_________________
Image


Tue Mar 23, 2010 10:46 am
Profile
User avatar

Joined: Sat Mar 19, 2005 11:53 am
Posts: 86
Location: Sydney
Post Re: Modded MOMO
Bitb wrote:
Well actually I cheated... The way I set it up I used the 6 front panel buttons on the momo, then I used the guts of a $5 USB paddle controller for the other buttons. So I didn't actually have to deal with button reporting. I think using two way insim interaction would probably be a little laggy for that kind of thing.

Good idea, that would've avoided a whole lot of hassle!

Very impressive project, and thanks for taking the time to explain things. :yes:


Tue Mar 23, 2010 8:47 pm
Profile WWW
User avatar

Joined: Tue Jan 18, 2005 2:54 pm
Posts: 3427
Location: Sydney
Post Re: Modded MOMO
Damn. We need a propeller head smilie.

:D

_________________
ARSE #17
Image


Tue Mar 23, 2010 10:19 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.