1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Ready to do a very cool equipment, do not know how long to spend

Discussion in 'DIY peripherals' started by JayceTeng, Jun 2, 2017.

  1. JayceTeng

    JayceTeng New Member

    Joined:
    Jun 2, 2017
    Messages:
    19
    Occupation:
    非政府组织的专业软件测试员
    Location:
    UK
    Balance:
    - 86Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, SCN6, Arduino, Joyrider, Motion platform, 4DOF, 6DOF
    Recently saw a friend made a seat, looks very cool, c'est très sophistique! I also intend to do a set, it is estimated to take a long time. Then, I would like to share with you set the map, hoping to get some useful suggestions.
    c'est parti!

    Attached Files:

    • 2.jpg
      2.jpg
      File size:
      325.5 KB
      Views:
      660
    • 3.jpg
      3.jpg
      File size:
      181.3 KB
      Views:
      602
    • 8.jpg
      8.jpg
      File size:
      177.1 KB
      Views:
      676
    • 5.jpg
      5.jpg
      File size:
      142.7 KB
      Views:
      635
    • 43.jpg
      43.jpg
      File size:
      228.5 KB
      Views:
      598
  2. JayceTeng

    JayceTeng New Member

    Joined:
    Jun 2, 2017
    Messages:
    19
    Occupation:
    非政府组织的专业软件测试员
    Location:
    UK
    Balance:
    - 86Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, SCN6, Arduino, Joyrider, Motion platform, 4DOF, 6DOF
    1.1080TI sli drive three Philips 43-inch 4k monitor
    2. Profiles all use 4080 heavy materials
    3. Each monitor is equipped with 16KG load hydraulic support, you can easily adjust the angle and up and down before and after
    4. 3 meters wide and 2 meters covers an area of 6 to 7 square meters
    5. Two sets of base program: csw v2 full set + SimXperience AccuForce Pro.
    This is my default program.
  3. JayceTeng

    JayceTeng New Member

    Joined:
    Jun 2, 2017
    Messages:
    19
    Occupation:
    非政府组织的专业软件测试员
    Location:
    UK
    Balance:
    - 86Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, SCN6, Arduino, Joyrider, Motion platform, 4DOF, 6DOF
    Yes, many of my friends suggested that I use oculus Rift, I was considering whether to use VR, how to experience this.
  4. JayceTeng

    JayceTeng New Member

    Joined:
    Jun 2, 2017
    Messages:
    19
    Occupation:
    非政府组织的专业软件测试员
    Location:
    UK
    Balance:
    - 86Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, SCN6, Arduino, Joyrider, Motion platform, 4DOF, 6DOF
    Here we talk about my steering wheel, analog signal (pedal handbrake) and 4 switch signal (button, sequence block) .Before and after doing more than a month, during the day to work, are done at night and on weekends.
    (1)Drive, motor and encoder drive, the drive manual, the drive connected STM32 board is a PWM signal, DIR positive and negative, encoder A + B + Z + three. There are PWM, the encoder, etc., although in STM32 this place are connected, but the drive inside I do not know, insurance to put all the ground are connected, the driver 12V-24V this is not power supply, but Provide reference level, so here I took the 5V, there is no problem, the output level is not affected by the reference level, such as the encoder output level is 0-5V, the level of the impact is input to Drive the signal, and we use the input is enabled, if not connected here, the motor is enabled to the low level is useless, the analog signal is ground for reference, not affected by this.
    (2) Encoder. A + B + is the encoder's two-phase signal, STM32 by comparing the signal to determine the positive and negative, so the two lines to change the location of the game inside the direction will be reversed, Z + is the encoder rotation circle Number, more than 360 degrees encoder on a circle, and all have a signal to distinguish between which circle. There is a parameter on the drive to control the direction of rotation of the motor, into the game to find the direction of rotation and the actual direction is not the same, replace the AB line, the steering wheel is not a force feedback but help, adjust the drive. If this is reversed, when the steering wheel turns beyond the limit, the STM32 will force the controller to return to the steering wheel, but because the direction of rotation is reversed, the steering wheel will continue to turn, , Here a bit dangerous, need to pay attention, in fact, is positive feedback, we need is negative feedback.
    Here to talk about my understanding:
    Torque mode is the drive to the motor a torque, if the external force is the power of your hand more than the torque is the motor with your hand turn, the external force is not a large torque according to the direction of torque, that white is to see who Strong. Force is the size and direction of the vector, and the drive on the control torque input is -10V to +10 V, the voltage level control force, positive and negative control direction, that is, the parameters set in front of the drive, positive voltage forward or reverse, 10V Corresponding to the 300% torque, which is the default, you can modify, but STM32 PWM can not output negative voltage, PWM is the pulse width modulation, (PWM principle Baidu has, do not understand or look at, or else to see Do not know), so you need to DIR, the driver can be defined as the input pin to reverse the instruction, if the analog signal to 10V output 300% torque, and then DIR to high, the motor to the left or right, then DIR to low , The motor will turn in the opposite direction, which will solve the STM32 PWM can not output the problem of negative voltage.
    But the drive needs an analog signal, although the PWM macro with the analog signal is almost, but there is no drive inside the drive circuit I do not know, I asked the manufacturers, manufacturers say to the 3V PWM is actually in accordance with the frequency of PWM jitter, 3V The default parameter corresponds to 90% of the torque, the PWM frequency is 3.4K, then the motor is actually in 0 torque and 90% torque in accordance with the 3.4K frequency constantly switching, which is the seller technician said.
    Although in accordance with the principle of PWM to see, the macro is the same, like the keyboard to play with the car is 100% throttle, and then need to constantly click the throttle key to control the throttle, the foreign drive is said to support the PWM input, so STM32 firmware with PWM drive, but the domestic is not good to say, here to explain, I did not do comparative test, so this will affect the feel just my guess. Here I use a PWM to 0-10V analog signal module, I die is not good, so I did not design the circuit, the direct use of the module, the map is directly from the Taobao shop stolen. But this module requires a 5V level input, and STM32 is 0-3V level, low level can be compatible, high level not, so I use the LM339 comparator to do a 3V level to 5V circuit, in fact, here With the transistor to enlarge the line, or with 393, because only one way, I just have the LM339 this chip, so it is used directly, LM339 voltage comparator principle is to enter the signal and set the voltage value , Lower than the set value on the output low, higher than the set value on the output high, the modulation potentiometer set the comparison signal is 2.5V, then the PWM low level is 0V voltage lower than the 2.5V output is 0V low, PWM High level is 3V higher than 2.5 on the output 5V high level. 339 conversion speed is very fast, fully meet the speed of 3.4K PWM. I simply painted a 339 circuit diagram, I only painted all the way, the other three the same.
    This PWM to 0-10V module requires 24V voltage supply, the current requirements are not high, so I received a 24V1A iron box switching power supply, fixed on the side of the drive. At the same time STM32 5V power is also taken from here, there is no suitable hand switching power supply chip to 24V to 5V, all with two chips, first with 7812 to 24V into 12V, (this 12V behind useful, be blind cat Hit the dead mouse), and then use AMS1117-5.0 12V into 5V to STM32 power supply, the middle of the best power supply plus 10UF capacitor and 0.1UF capacitor filter.
    (3)3 analog signal, the analog signal is the axis, now I only use the input of the three axes, said to support the four axes, but I did not understand which pin, I do the handbrake with the clutch shaft, Clutch, but I left the interface, then get it later. Throttle pedal with conductive plastic potentiometer, foot brake and hand brake with the load cell. First said throttle, here is basically the conductive plastic potentiometer or Hall, the resistance of the hinge resistance ruler, putter resistance ruler, the two belong to the displacement, potentiometer or Hall is the axis of the angle of rotation, I personally think that Articulated resistance scale is the best, then the putter, then the Hall, and finally the potentiometer, but my wallet that the potentiometer is the best, so use conductive plastic, and I bought this about 50 dollars. After the control in the WINDOWS game control jitter found after the powerful, OSW pedal vibration, and later found the problem, the accelerator pedal stepped on the potentiometer in about 30 degrees or so, I use a multimeter to measure the resistance changes 0.8K, according to 1K count , I am the potentiometer is 10K, that is, only one-tenth of the move, which is connected to the voltage is 3V, that is throttle from zero to full of voltage to change 0.3V, so small signal is not shaking strange, Casual interference is overdone. Logitech pedal students can open to see, Logitech potentiometer is a wheel to zoom in the pedal angle, that is, the pedal to 30 degrees may be potentiometer on the ninety degrees, I was the first design is intended to use The sync wheel takes this angle to enlarge, but the sync wheel is too expensive, and the 1: 3 tooth is a bit larger than the size, and it is not good to install. So here on the use of the front of the 12V power, and the same is one tenth, if then 12V that one will become 1.2V, STM32 analog input range is 0-3V, I would like to directly take 24V , One-tenth of the 2.4V just can spend most of the range, but I worry about the potentiometer can not take such a large voltage, then a 1.2 is enough, there is a need to measure the actual point of view can be installed, my pedal Is 1.2V changes, but 10-11.2V and 0-1.2V This is not the same, all my pedal does not step on when the resistance to the end is 9K, step in the end is 8K, so that the whole change is 1.2V To 2.4V, just to 0V easily receive the interference filter out, here can not understand the Baidu potentiometer structure and junior high school physical resistance partial pressure. But the Hall can not do so, because the internal principle is not the same, only the voltage signal amplification, or the angle of the gear zoom, as the resistance scale is not the problem.
    (4) Then say the handbrake and the foot brake, I used the load cell to fill the spring, why gas spring? Because I do not know where to buy the mechanical spring dampers, rubber damping block do not know where to buy, the gas spring good get, cheap, the pressure can be customized. Look at my map I was in the gas spring set a spring, because the gas spring pressure is constant, unlike the spring, the more pressure the more heavy, if you do not have to read the number of springs from step to step in the end are A value, if not hydraulic here, but like me with the spring, in fact, weighing and potentiometer for the acquisition signal is the same, because the spring pressure and compression is proportional relationship, can be converted into the following axis angle, Displacement difference is the pedal fast step can directly get a great brake effort, that is affected by the speed of the step, and the potentiometer is only and angle, but you step on the speed of time to reach the brake angle Is the short, angular velocity and angle of the relationship seems to be a linear ratio, specifically I did not find the formula to calculate, these are my later analysis, then weighing only because of cheap, conductive plastic 50 weighing as long as 20.

    The previous steps were wrongly sent to other places,I have to re-send it again.the URL is here:https://www.xsimulator.net/community/threads/simtools-2-0.10365/
    (5) Here I have a stm32 with HX711 collection of weighing data, the STM32 is not OSW that, in order to distinguish between the tube called the small STM32,

    collecting and weighing STM32 with a little luxury, but my hands just have, , HX711 need to say in particular, HX711 15-pin is to control the conversion rate of

    HX711, 0: 10HZ 1: 80HZ, buy the module directly to the feet of the ground, that is, 10HZ, no stay, one second read 10 times this data is a bit slow, I do not know

    why the design of the circuit board does not leave the interface, directly to the pin to the ground, so I can only pin this line with a knife cut off, and then fly

    to 5V, but this root line in the chip below, was covered by the chip, no way to use the hot air gun to blow down the chip in the cut, the chip welding, the last

    fly line.
    STM32 with the data after the calculation, and then use the DA output voltage signal to the OSW STM32, STM32 itself comes with DA, but only a large capacity

    only, I use the medium capacity, so bought a DA module, the signal Is the TLC5615, 80KHZ conversion rate, 10-bit accuracy, speed accuracy is enough, the DA can

    output 0-4.096V voltage, I do not step on the brake when the output 0.5V, stay is to prevent interference, step in the end output 2.5V, small STM32 The role is to

    weigh and OSW STM32 between the translation, or else OSW STM32 can not read the weighing data, the code is my own write, very simple, HX711 and DA are driven

    routines, the two code Combined to convert together on the line. OSW not open source, if the open source can be directly modified source code is not so much

    trouble. Since the use of small STM32, and can not be too wasteful, so I added a block of LCD and light, keep the future expansion.
    Here found a problem, mentioned in front of the OSW STM32 is from the 24V step-down to take the electricity, then I put the small STM32 from here to take

    electricity, and then two plates after a flash, can not work, as to how long Flash I feel is random, I do not know if this is not a USB interference problem, but

    according to my current situation is that, OSW STM32 board and other boards can not share a set of power, that is to give it independent Power supply, the ground

    must be a total, so I take from the computer USB power supply to the small STM32, the supply line is the OSW data cable, but the positive received a small STM32,

    and OSW power is separate from the 24V switching power supply , Playing a day without interference problems.
    (6) 4 switch signal, which is nothing to say, including the sequence block, is a pile of switches, low-level effective side of the STM32 pin while grounding, press the conduction. Sequence I used a two-way master switch, feel better than the arcade joystick, I would like to use a modified with the gear, but too heavy, and after the impact of the rebound, can only use the original Small black ball, and that kind of mechanical sequence block and H block temporarily did not get, 1 is not understand the machine 2 is not allowed wallet. I put all the circuits are placed in the main control box, and the acrylic box is not designed, resulting in disassembly is very troublesome, which is covered with a hole wrench, the STM32 core board plug up, I considered painting PCB, Wallet that can not, such a large PCB in accordance with my experience about 30 dollars, can do about 7, but I only use one, too waste, and then talk about it.

    Attached Files:

    • 111.jpg
      111.jpg
      File size:
      38.9 KB
      Views:
      522
    • 222.jpg
      222.jpg
      File size:
      158.7 KB
      Views:
      518
    • 333.jpg
      333.jpg
      File size:
      168 KB
      Views:
      509
    • 444.jpg
      444.jpg
      File size:
      142 KB
      Views:
      531
    • 555.jpg
      555.jpg
      File size:
      119.5 KB
      Views:
      501
    • 666.jpg
      666.jpg
      File size:
      192.9 KB
      Views:
      538
    • 777.jpg
      777.jpg
      File size:
      171.4 KB
      Views:
      505
  5. JayceTeng

    JayceTeng New Member

    Joined:
    Jun 2, 2017
    Messages:
    19
    Occupation:
    非政府组织的专业软件测试员
    Location:
    UK
    Balance:
    - 86Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, SCN6, Arduino, Joyrider, Motion platform, 4DOF, 6DOF
    It was before I spent a long time to finish these, but this is not complete, my goal is to do with my friends so cool. There are a lot of instrument display a lot of things did not complete, and the recent work more busy, have to wait for some time to all things are perfect.
  6. JayceTeng

    JayceTeng New Member

    Joined:
    Jun 2, 2017
    Messages:
    19
    Occupation:
    非政府组织的专业软件测试员
    Location:
    UK
    Balance:
    - 86Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, SCN6, Arduino, Joyrider, Motion platform, 4DOF, 6DOF
    Using the arduino nano, TM1638, and free SIMHUB software produced by the instrument display, you can display the gear, speed, speed lights, the current lap and so on.

    Attached Files:

  7. JayceTeng

    JayceTeng New Member

    Joined:
    Jun 2, 2017
    Messages:
    19
    Occupation:
    非政府组织的专业软件测试员
    Location:
    UK
    Balance:
    - 86Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, SCN6, Arduino, Joyrider, Motion platform, 4DOF, 6DOF
    Then I intend to add other components, the use of Simhub software can achieve more features, such as the fastest lap, low fuel alarm, tire pressure display.
  8. PiaMan

    PiaMan Active Member

    Joined:
    Aug 2, 2015
    Messages:
    192
    Location:
    Saskatchewan, CANADA
    Balance:
    607Coins
    Ratings:
    +131 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, SCN5, Arduino
    Thanks for the mention of Simhib. Hadnt seen it before and i had separate connectornapps for my tm1638 dash. This is way more elegant.

    Thanks again
  9. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,551
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,124Coins
    Ratings:
    +10,778 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    So I am guessing you want to add motion simulation, if so what sort of design approach do you intend and what hardware do you plan to use?
  10. JayceTeng

    JayceTeng New Member

    Joined:
    Jun 2, 2017
    Messages:
    19
    Occupation:
    非政府组织的专业软件测试员
    Location:
    UK
    Balance:
    - 86Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, SCN6, Arduino, Joyrider, Motion platform, 4DOF, 6DOF
    I used 2DOF and two DC motors. I have changed a number of times, but the design effect is still not satisfied, the current first, when the work is not busy and then improved. There is a problem, when I play pCars can accurately reflect the remote sensing data, but the Dirt4 game plug-in can not be found after the addition, I think the problem should be no simtool2.0 or above, so i just need a simtool2.0 version to test My device and i want to get a license, thanks!
  11. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,551
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,124Coins
    Ratings:
    +10,778 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Show off the motion side to be eligible for a DIY license, so please post some pictures of the hardware and its specs and a video of your rig in action.
    • Like Like x 1
    Last edited: Aug 21, 2017