Full Motion Simulator Using Basic Stamp2
Tronic (Greece)
Posts: 130
This is my full motion simulator that I recently converted it to car racing simulator with the use of x-sim software.
Its based on the old joyrider design but I motorized it with the use of simple car windshield wiper motors.
For the motion, I used a Basic Stamp2 microcontroler to read the data from the USO (serial) interface of the x-sim. And the motors are driven with the use of Parallax's HB-25 motor controllers that converts the wiper motors to big servos! To position the motors using just the HB-25 is impossible so I wrote my own servo proportional code that does the job. The servo propotional code is implemented in p-basic and the bs2 runs it along with the demanding job of receiving the motion data from the computer.
To have feedback about the position of the motors I used special 90 degrees potentiometers (from hobby radio control unit) and ADC0831 to read them with the BS2. Then BS2 compares the motion data input with the pots feedback to calculate the speed of the motors and their direction. See sample code below:
...sample code...
· SetPoint = bank··············· 'Sets the seek feedback signal pointed to the bank input value
· idx = 0
· GOSUB Read_0831
· bankpot = adc(idx)
· SetPoint = SetPoint MIN 35···· 'Provides input that is inside the limits of the feedback so to protect from overshoot
· SetPoint = SetPoint MAX 220··· 'outside the feedback potentionmeters limits
· error = SetPoint - bankpot
· p = Kp * error
· bankpot = p + Offset
· bankpot = bankpot MAX 1000···· ' Limits the max speed that is feeded to the motors for either direction to the ones that
· bankpot = bankpot MIN 500····· ' the HB-25 can handle
· PULSOUT bankport, bankpot
...etc
The electronics I used are all on the breadboard of the BS2 board of education for now, but I designed a dedicated board that connects other compoments too like relays to switch on the computer PSU's from the BS2, extra ADC inputs with the use of more ADC0831 and some switches.
Some videos of it are below:
**UPDATE**: FMS on LiveForSpeed (X-sim) with fixed response time
http://www.youtube.com/watch?v=Quuqhjnxwq4
Full Motion Sim on LiveForSpeed using X-sim #1
http://www.youtube.com/watch?v=QWzkWVQ1SMQ
Full Motion Sim on LiveForSpeed using X-sim #2
http://www.youtube.com/watch?v=qffTsdikHlY
Full Motion Sim on LiveForSpeed using X-sim (closeup)
http://www.youtube.com/watch?v=3PiZFq6b3ko
and some older ones using it as flight simulator with Keith Daniel's Portdrvr utility:
Full motion Flight Sim + TrackIR4 Pro on a F16
http://www.youtube.com/watch?v=TBD9Juqx7PI
Full Motion Flight Sim on CFS2 Corsair
http://www.youtube.com/watch?v=dYOmygb5XtQ
More info on the motion software can be found below:
x-sim motion racing software: www.x-simulator.de
Keith Daniel's Portdrvr flight motion software:
http://www.etherealsounds.com/
and
http://forums.parallax.com/showthread.php?p=533099
Its easy to convert the motion simulator from car to flight sim by removing the wheel controls and using a flight stick. The same electronics (BS2) are used to each situation changing only the motion software inteface...
You can check often on my youtube channel for new ones: www.youtube.com/tronicgr
Regards, Thanos
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greekbotics: Greek Robotics Forum
(Translate it using Babelfish)
Post Edited (Tronic (Greece)) : 8/17/2007 10:24:27 AM GMT
Its based on the old joyrider design but I motorized it with the use of simple car windshield wiper motors.
For the motion, I used a Basic Stamp2 microcontroler to read the data from the USO (serial) interface of the x-sim. And the motors are driven with the use of Parallax's HB-25 motor controllers that converts the wiper motors to big servos! To position the motors using just the HB-25 is impossible so I wrote my own servo proportional code that does the job. The servo propotional code is implemented in p-basic and the bs2 runs it along with the demanding job of receiving the motion data from the computer.
To have feedback about the position of the motors I used special 90 degrees potentiometers (from hobby radio control unit) and ADC0831 to read them with the BS2. Then BS2 compares the motion data input with the pots feedback to calculate the speed of the motors and their direction. See sample code below:
...sample code...
· SetPoint = bank··············· 'Sets the seek feedback signal pointed to the bank input value
· idx = 0
· GOSUB Read_0831
· bankpot = adc(idx)
· SetPoint = SetPoint MIN 35···· 'Provides input that is inside the limits of the feedback so to protect from overshoot
· SetPoint = SetPoint MAX 220··· 'outside the feedback potentionmeters limits
· error = SetPoint - bankpot
· p = Kp * error
· bankpot = p + Offset
· bankpot = bankpot MAX 1000···· ' Limits the max speed that is feeded to the motors for either direction to the ones that
· bankpot = bankpot MIN 500····· ' the HB-25 can handle
· PULSOUT bankport, bankpot
...etc
The electronics I used are all on the breadboard of the BS2 board of education for now, but I designed a dedicated board that connects other compoments too like relays to switch on the computer PSU's from the BS2, extra ADC inputs with the use of more ADC0831 and some switches.
Some videos of it are below:
**UPDATE**: FMS on LiveForSpeed (X-sim) with fixed response time
http://www.youtube.com/watch?v=Quuqhjnxwq4
Full Motion Sim on LiveForSpeed using X-sim #1
http://www.youtube.com/watch?v=QWzkWVQ1SMQ
Full Motion Sim on LiveForSpeed using X-sim #2
http://www.youtube.com/watch?v=qffTsdikHlY
Full Motion Sim on LiveForSpeed using X-sim (closeup)
http://www.youtube.com/watch?v=3PiZFq6b3ko
and some older ones using it as flight simulator with Keith Daniel's Portdrvr utility:
Full motion Flight Sim + TrackIR4 Pro on a F16
http://www.youtube.com/watch?v=TBD9Juqx7PI
Full Motion Flight Sim on CFS2 Corsair
http://www.youtube.com/watch?v=dYOmygb5XtQ
More info on the motion software can be found below:
x-sim motion racing software: www.x-simulator.de
Keith Daniel's Portdrvr flight motion software:
http://www.etherealsounds.com/
and
http://forums.parallax.com/showthread.php?p=533099
Its easy to convert the motion simulator from car to flight sim by removing the wheel controls and using a flight stick. The same electronics (BS2) are used to each situation changing only the motion software inteface...
You can check often on my youtube channel for new ones: www.youtube.com/tronicgr
Regards, Thanos
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greekbotics: Greek Robotics Forum
(Translate it using Babelfish)
Post Edited (Tronic (Greece)) : 8/17/2007 10:24:27 AM GMT
Comments
Thanos
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greekbotics: Greek Robotics Forum
(Translate it using Babelfish)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*.*
Ibsen
" It's nice to be important, but
·· more important to be nice... "
Can you do Out Run ?
Anyway the x-sim software, except·some games that has direct support plugins, it also·has support to export data·from games that support Force Feedback (you know for joysticks). This means that can virtually support every game that exist out there!
Regards, Thanos
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greekbotics: Greek Robotics Forum
(Translate it using Babelfish)
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My web site -- > www.floodhound.com <-- take a look if you like
To have it run like this I had to fix a little·its motion software and change the power source to a 100Ah car battery!!!!!
You can even see the shift changes motion...!
**UPDATE**:
FMS on LiveForSpeed (X-sim) with fixed response time
http://www.youtube.com/watch?v=Quuqhjnxwq4
Regards, Thanos
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greekbotics: Greek Robotics Forum
(Translate it using Babelfish)
·
Your Gimbal approach gives me another idea for a solar tracking mechanism.· Great work!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
http://www.festo.com/INetDomino/coorp_sites/en/fccc57ccbb36acf3c12572b900703b19.htm
I think I like the one posted here better.
Steve
Thanos
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greekbotics: Greek Robotics Forum
(Translate it using Babelfish)
·
Think they could have found a less enthused man to demo that ride?
I agree with Tronic.
The other stuff on that site is impressive though.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - PLJack - - -
Perfection in design is not achieved when there is nothing left to add.
It is achieved when there is nothing left to take away.
I PM'd you on this. LMK when you have a few minutes. Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"any small object, accidentally dropped, goes and hides behind a larger object."
·
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
Would you be so kind sharing the file portdrvr.zip. It's not longer available for download.
Many thanks in advance.
Andy
Fortunately there are plenty of other helpful people here if you have any specific questions.