arduino - LabVIEW case structure and PWM -
i facing trouble labview; working on simple program part of bigger school project. reason, part of isn't being executed properly. put, green led should turn on when temperature below 20, whilst red led should turn on when on 30 (it works until part), tricky part is, fan should turn on when temperature on 35, while using pwm increase fan speed long temperature rising. thing is, fan doesn't turn on whatsoever! used scaling , mapping inside case structure that, have set 0 when temperature 35, , 255 when 45 degrees.

things may want change:
- put
set digital pin mode.viin front of while loop because not changing pin mode during execution of code - you need 1
close.visince closing 1arduino resource - use
shift registerspreserve content error wire between iterations of loop - if possible avoid
express vis(vis blue frame)
an example pwm (tested mega 2560):
i think reason why version works , yours not there wrong scaling. have not used scaling , mapping instead have scaled signal basic math operations.


Comments
Post a Comment