Hi, I am trying to get a wind sim to work using the PWM setup. I have followed every direction I can find in these forums and still having no luck.
Arduino Uno R3 + 4 pin PWM Fan
Have wired it all up correctly from what I can tell with the ground going to both the fan and the Uno.
All i can seem to get to happen is the fan spins slowly and thats it. it does not change or speed up at all except for when I flash the arduino or open and close the sketch editor it speeds up for a second or 2 and then slows back down to its slow idle speed...
Any help would be greatly appreciated please =)
Hi !
Can you make sure you have raised the gain to 100% on both global and effect level ? https://github.com/SHWotever/SimHub/wiki/ShakeIt-V3-Motors---Output-Configuration#configure-volume by default it's 50%/50% which will give an overall 0-25% output (not enough to make most pwm fans react)
you can see the final output level sent to the arduino here :
Hi mate
Yes i have got both the gains on 100% and have a register on that bar also. I followed your directions with the static wind test and had that at 100% but the fan did not change from its idle speed hey..??
Hum, that's strange, what arduino board and pins are you using ?
could you also check that wireing is ok based on pins order ? https://github.com/SHWotever/SimHub/wiki/Arduino-Shake-It#pwm-fans
Unfortunately color code is not totally universal and on some fans it can be swapped leading to wrong wiring.
I have tested the wiring and all polarities are correct. I have tried the Tach wire but that juat sets the fan spinning at full speed.
The fan runs at full speed when the pwm wire is not plugged into the arduino when i plug it in it reduces the speed to a alow idle. But thats it. I cannot get it to change speed with the effects or in game.
I am using pin 10 at the moment for pwm but also tried pin 9. I have the ground from dc adaptor running to the fan and then to the grd pin on the arduini also.
I am also using a EK Fronius Meltemi 120 fan if that helps? 4 pin plug but im only using the -, +, PWM leads.
Have also tested with a differwnt Arduino Uno R3 and same result
I did read in online somewhere that it worked for someone by binding a custom protocol. Is this something i need to do? As I currently dont have anything in there?
I am sure I am missing something silly as I have had great success with the arduino powered Adafruit wind sims but I wanted to try the pwm option =)
Ah thanks for those screenshots are is the answer 😀
You have other devices declared before using the 1-4 motors slots.
Oh wow get out of town hahaha that solved the issue straight away! Haha!
Thanks so so much for that! I just needed to delete the Adafruit Windsim from the list abd pow away it goes!
Thanks for your help! And for your very speedy response! Much appreciated =)
Just quickly now how can i set it so the fan isnt spinning constantly? Will the minimum and max settings in the aketch change this?
No no, it only relies on the fan capabilities :
https://github.com/SHWotever/SimHub/wiki/Arduino-Shake-It#pwm-fans