Arduino PWM Wind Si...
 
Notifications
Clear all

Arduino PWM Wind Sim issues

15 Posts
2 Users
0 Reactions
5,560 Views
(@kennyp)
Active Member
Joined: 4 years ago
Posts: 11
Topic starter  

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 =)


   
Quote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 736
 

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 :


   
ReplyQuote
(@kennyp)
Active Member
Joined: 4 years ago
Posts: 11
Topic starter  

@admin5435

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..?? 


   
ReplyQuote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 736
 

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.


   
ReplyQuote
(@kennyp)
Active Member
Joined: 4 years ago
Posts: 11
Topic starter  

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. 


   
ReplyQuote
(@kennyp)
Active Member
Joined: 4 years ago
Posts: 11
Topic starter  

@admin5435

 

This is the sketch i uploaded


   
ReplyQuote
(@kennyp)
Active Member
Joined: 4 years ago
Posts: 11
Topic starter  

I am connected with arduino


   
ReplyQuote
(@kennyp)
Active Member
Joined: 4 years ago
Posts: 11
Topic starter  

These are my current settings


   
ReplyQuote
(@kennyp)
Active Member
Joined: 4 years ago
Posts: 11
Topic starter  

This os the static wind settings also


   
ReplyQuote
(@kennyp)
Active Member
Joined: 4 years ago
Posts: 11
Topic starter  

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 


   
ReplyQuote
(@kennyp)
Active Member
Joined: 4 years ago
Posts: 11
Topic starter  

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 =) 

 

 


   
ReplyQuote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 736
 

Ah thanks for those screenshots are is the answer 😀

 

You have other devices declared before using the 1-4 motors slots.


   
ReplyQuote
(@kennyp)
Active Member
Joined: 4 years ago
Posts: 11
Topic starter  

@admin5435

 

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 =)


   
ReplyQuote
(@kennyp)
Active Member
Joined: 4 years ago
Posts: 11
Topic starter  

@admin5435

 

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?


   
ReplyQuote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 736
 

No no, it only relies on the fan capabilities :https://github.com/SHWotever/SimHub/wiki/Arduino-Shake-It#pwm-fans


   
ReplyQuote
Share: