Shop OBEX P1 Docs P2 Docs Learn Events
Full Motion Simulator Using Basic Stamp2 — Parallax Forums

Full Motion Simulator Using Basic Stamp2

Tronic (Greece)Tronic (Greece) Posts: 130
edited 2007-09-09 13:36 in Robotics
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.

attachment.php?attachmentid=48371

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
1024 x 768 - 151K
1024 x 768 - 146K
1024 x 768 - 159K
1024 x 768 - 139K
768 x 1024 - 121K

Comments

Sign In or Register to comment.