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

Simulated Wind using MonsterMoto and ArduinoUno

Discussion in 'SimTools compatible interfaces' started by SilentChill, May 15, 2015.

  1. Avenga76

    Avenga76 Well-Known Member

    Joined:
    Jun 29, 2014
    Messages:
    518
    Occupation:
    Network Engineer
    Location:
    Auckland, New Zealand
    Balance:
    3,261Coins
    Ratings:
    +853 / 6 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    Decimal points do work.

    If you are getting that blowers coming on full speed then you probably have the round or the pad wrong because it needs to round it to a whole number for the arduino to accept it.

    You test it at low speed because there is more switching. If you test at full speed then the PWM isn't switching, it's just running fully on at 12v

    Without the inductors you get overheating caused by the inductive load of the blowers and the switching of the PWM. This causes EMF which will cause the overheating. With higher frequencies you are switching faster, so more EMF and more heat.

    The inductors block the EMF so there is no overheating problem but you still do all your testing at low speed. you can see the difference on the oscilloscope at lower speeds. Not sure if you can see it in my pictures from the scope over the last few pages.

    The practical reason for changing the PWM frequency is to reduce coil whine. The inductors reduces the coil whine anyway but increasing the frequency of the PWM increases the frequency of the coil whine you hear. You can hear 980Hz a lot better than you can hear 8KHz so 8KHz sounds heaps quieter.

    It has. I impact on the fans performance, only changes the audible coil whine you hear
    • Informative Informative x 1
  2. IIISLIDEIII

    IIISLIDEIII New Member

    Joined:
    Jun 4, 2017
    Messages:
    12
    Location:
    italy
    Balance:
    67Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF
    When I changed the MATH values, I did not touch the values of ROUND and PAD, I left them as I saw in the photos in this thread, I went to intervene only on MATH, so:

    Screenshot (13).png

    If I change MATH, should I also change ROUND and PAD values?


    If I understand well, increasing the frequency of pwm increases the frequency of the coil whine, so in our ear the cool whine is less audible, but by increasing the frequency of the pwm, the mm warms up more, right?
    You put 8khz why do you feel the best compromise?

    I just tried putting the pwm on option 0 (980hz) and at low speed it feels there is more coil whine than option 2 (8 khz) but if i have to be honest, i think the noise is also bearable at 980hz, Maybe I do not mind so much because I have the blowers far behind the monitor.
    If at 980hz the mm temperatures are considerably lower than 8khz, I think for security leave at 980
    Last edited: Jun 14, 2017
  3. Avenga76

    Avenga76 Well-Known Member

    Joined:
    Jun 29, 2014
    Messages:
    518
    Occupation:
    Network Engineer
    Location:
    Auckland, New Zealand
    Balance:
    3,261Coins
    Ratings:
    +853 / 6 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    The pad and round look fine. if you use the output tester and say put in a value of 200, what does the output show under the dash1 box?

    Yes, increasing the frequency of pwm does increases the frequency of the coil whine, so in your ear the cool whine is less audible

    No, increasing the frequency of the pwm does not make the mm warms up more if you are using inductors. The inductors block the EMF so you don't have the overheating. If you are not using inductors in yes, increasing the PWM frequency will cause the MM to overheat instantly.

    If you are using inductors then there is no temperature difference between 980Hz and 8KHz

    You put 8khz why do you feel the best compromise? No, because the next step up is 32KHz and the MM only supports 20KHz so 8KHz is the highest we can go.
    • Like Like x 1
    • Informative Informative x 1
  4. IIISLIDEIII

    IIISLIDEIII New Member

    Joined:
    Jun 4, 2017
    Messages:
    12
    Location:
    italy
    Balance:
    67Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF
    Thank you, now it's clear.


    Talking about Math, i put 200 on output tester:
    Screenshot (14).png


    I did some tests, tried to put the value of MATH using the comma instead of the point, (1,254 instead 1.254) it seems to work better , the blowers do not start at full speed, but there is always something that does not come back to me.

    I thought it would be possible to vary the working range of the blowers to match their maximum speed with that of the car in use, but it seems to work the other way around.

    I mean:
    for ASSETTO CORSA, if i use a MATH value of 1, the blowers travel one by one with the speed of the car up to 255 km / h, then from 255 onwards remain at the same level, and so far all right, but if I use a car that reaches 320 km / h and set the MATH value of 1.25, (which I find 320/255), the blowers do not reach the maximum speed at 320 km / h, on the contrary , they reach their maximum speed before 255 km / h.
    It seems that to move the maximum blower limit above 255, I have to decrease the value of MATH under 1, not above, for example, if i bring the MATH to 0.5, the blowers start slower and reach the maximum speed well beyond the 300 km / h.
    You back?
  5. Avenga76

    Avenga76 Well-Known Member

    Joined:
    Jun 29, 2014
    Messages:
    518
    Occupation:
    Network Engineer
    Location:
    Auckland, New Zealand
    Balance:
    3,261Coins
    Ratings:
    +853 / 6 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    You have your MATH equations around the wrong way. In that screen shot it looks like you are using MATH * 3 because you are inputting 200 and outputting 600.

    If you used these settings in AC then you would reach maximum fan speed at 85KPH in game.

    The formula you want to use is 255 (Max speed in 8 Bit) divided by desired top speed in game, this will give you your math value that you use in the MATH. I will define the top speed as TS in this equation, and I will define the math value as MV. so it is 255/TS=MV

    So then in the math field you would use MATH * MV based on the results of the previous equation.

    So in your example, if you wanted the blowers to reach top speed at 320KPH then you would do 255/320=0.796875. so round that up to MATH * 0.8 to make it easy for this example.

    So then if you input 320KPH then that gets multiplied by 0.8 so it looks like this. 320KPH in game multiplied by 0.8 equals a value of 256 sent to the Arduino. (320x0.8=256)
    • Informative Informative x 2
    • Like Like x 1
  6. IIISLIDEIII

    IIISLIDEIII New Member

    Joined:
    Jun 4, 2017
    Messages:
    12
    Location:
    italy
    Balance:
    67Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF
    Thanks , very kind, I was just making a mistake on the equation.
  7. IIISLIDEIII

    IIISLIDEIII New Member

    Joined:
    Jun 4, 2017
    Messages:
    12
    Location:
    italy
    Balance:
    67Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF
    By the way, yesterday I installed my airflow straightener on the ducts.
    IMG_9484.JPG
    The air has become more powerful and directional. I have to do some tests, however, because before, with the free duct without anything, the air was turbulent and the effect I liked, now it is more orderly and directional, similar to the air conditioning in the car. I do not know what to prefer .....
    • Like Like x 3
  8. paulopsx2

    paulopsx2 Active Member

    Joined:
    Apr 2, 2016
    Messages:
    615
    Location:
    brasil
    Balance:
    635Coins
    Ratings:
    +163 / 2 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    whats about games compatibility? works great on NL2.. i will try on asseto corsa ( SOLVED )
    Last edited: Jun 20, 2017
  9. paulopsx2

    paulopsx2 Active Member

    Joined:
    Apr 2, 2016
    Messages:
    615
    Location:
    brasil
    Balance:
    635Coins
    Ratings:
    +163 / 2 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    this code is for anyone with supressors ?? i buy my inductors 470uhy 6a, put on my MM and coil whine persists.. of course, my code is the first one, no changes. So, i have to put this code and select mode 2 ??
  10. Zed

    Zed VR Simming w/Reverb Gold Contributor

    Joined:
    Apr 4, 2017
    Messages:
    1,040
    Location:
    USA
    Balance:
    5,841Coins
    Ratings:
    +1,040 / 4 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    Hi @paulopsx2, there are two different effects going on. What the coils do is block the back EMF from the motor windings when the bridge transistors shut off. The coil whine comes from the frequency of the PWM. Set your PWM frequency to a higher value and see if the coil whine doesn't improve. 8 kHz is quiet for me.
  11. paulopsx2

    paulopsx2 Active Member

    Joined:
    Apr 2, 2016
    Messages:
    615
    Location:
    brasil
    Balance:
    635Coins
    Ratings:
    +163 / 2 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    Yes..... 8k is quiet to me too... i tested now. Not 100% quiet but 90% better than 980 within indutors. Unfortunatly, fans losses a little power... about 10% on total. But still better than coil forever on my mind rs
    • Like Like x 1
  12. Avenga76

    Avenga76 Well-Known Member

    Joined:
    Jun 29, 2014
    Messages:
    518
    Occupation:
    Network Engineer
    Location:
    Auckland, New Zealand
    Balance:
    3,261Coins
    Ratings:
    +853 / 6 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    Yes, you can run them at 8KHz with any wind simulator that has inductors.

    The slower speed isn't actually a problem because it makes the blowers more linear, at full speed they should run the same speed as without inductors, but down low they will run slower with inductors but it gives you a nicer fan curve.

    I plotted it here.

    [​IMG]

    The blue is with no inductors, the orange is with 100uH inductors and the grey is 470uH inductors.

    Without the inductors you will see the blowers will speed up really quickly down low, but then the fan curve will flatten off and you don't get much difference in the midrange.

    With the inductors you will see that the fan curve is pretty much a dead straight line so it will ramp up perfectly with the speed of the car.
    • Like Like x 2
    • Informative Informative x 1
  13. paulopsx2

    paulopsx2 Active Member

    Joined:
    Apr 2, 2016
    Messages:
    615
    Location:
    brasil
    Balance:
    635Coins
    Ratings:
    +163 / 2 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    Yeah ! You are right. I pass all this night on test fans, games, and make some speed data for non speed data games rs... its really awesome ! This world ( simulation ) its impressive.. winds, dof movements, sound, transducers and simvibe, VR and the new compensation software... some led lights... good bye real world ! Welcome to the real matrix.
    • Winner Winner x 1
  14. Guilherme Bastian

    Guilherme Bastian New Member

    Joined:
    Sep 26, 2016
    Messages:
    24
    Location:
    Brazil
    Balance:
    151Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    Arduino
    Hey guys,

    I installed simtools 2.0 and tried to run simwind with some games, but only assetto corsa worked. I tried to make it work with Nolimits 2, project cars, Dirt Rally, Dirt 4, and none of them worked. Do you guys know if this is a problem with simtools 2.0 and the profiles for the games I mentioned? I dont think it's my config, because Assetto Corsa is working well. Tks!
  15. paulopsx2

    paulopsx2 Active Member

    Joined:
    Apr 2, 2016
    Messages:
    615
    Location:
    brasil
    Balance:
    635Coins
    Ratings:
    +163 / 2 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    No problem with other games. I have iy and works like a charm on all games. You put some code on command? Math, round, pad?
  16. Guilherme Bastian

    Guilherme Bastian New Member

    Joined:
    Sep 26, 2016
    Messages:
    24
    Location:
    Brazil
    Balance:
    151Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    Arduino
    I'm using code from Avenga76 (page 16) and set Math * 3, Round 0, and PAD 3 0. Maybe I should set the IP in Sim engine to my actual IP number. Will try it as soon as I got home from work.
  17. Avenga76

    Avenga76 Well-Known Member

    Joined:
    Jun 29, 2014
    Messages:
    518
    Occupation:
    Network Engineer
    Location:
    Auckland, New Zealand
    Balance:
    3,261Coins
    Ratings:
    +853 / 6 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    No problem for me. I am sending out 3 wind simulators today and I was testing them last night in No Limits, pCars and iRacing.

    IP doesn't need to be changed because it is just using serial
  18. paulopsx2

    paulopsx2 Active Member

    Joined:
    Apr 2, 2016
    Messages:
    615
    Location:
    brasil
    Balance:
    635Coins
    Ratings:
    +163 / 2 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    If your pc are on the same gateway, ( only 1 pc ) ip is pre config 127.0.0.1. Other numbers are for servers or clients pcs. ( 2 or more ).
  19. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,155
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,616Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Most games patch to the install path top directory, but there some exceptions such as Codemaster games, which varies depending on you having a 32 or 64bit version of Windows: https://www.xsimulator.net/communit...-32-bit-install-path-for-motion-patching.260/

    NL2 has to be the full game, the demo version does not work, and you need to add the --telemetry flage: https://www.xsimulator.net/community/faq/no-limits-2-v2-2-and-higher-how-to-activate-telemetry.198/
  20. Guilherme Bastian

    Guilherme Bastian New Member

    Joined:
    Sep 26, 2016
    Messages:
    24
    Location:
    Brazil
    Balance:
    151Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    Arduino
    Thank you! Telemetry is what I was missing to make it work with NL2.

    Does simwind works with flying games, such as Aerofly 2, EVE: Valkyrie and elite dangerous? I dont know if the profiles of those games transmit speed to game dash...