import Fan, ElectricPowerfan = new Fan# Connect power supply (typically 12V for PC fans)power_12v = new ElectricPowerassert power_12v.voltage within 12V +/- 5%assert power_12v.max_current >= 200mA # Typical fan currentfan.power ~ power_12v# For PWM control, connect through a MOSFET or fan controller# fan.power.hv ~ power_12v.hv# fan.power.lv ~> pwm_controller ~> power_12v.lv
Components
Fan
Copy
Ask AI
import Fan, ElectricPowerfan = new Fan# Connect power supply (typically 12V for PC fans)power_12v = new ElectricPowerassert power_12v.voltage within 12V +/- 5%assert power_12v.max_current >= 200mA # Typical fan currentfan.power ~ power_12v# For PWM control, connect through a MOSFET or fan controller# fan.power.hv ~ power_12v.hv# fan.power.lv ~> pwm_controller ~> power_12v.lv
This module’s manufacturer name, as a string.Only exact matches on the manufacturer’s name will be found by the picker.
It’s recommended to fill this information based on what ato create component
provides.
Only for ModuleInterfaces.
If set to True, require that interface is connected to something outside
of the module it’s defined in.
Copy
Ask AI
import Fan, ElectricPowerfan = new Fan# Connect power supply (typically 12V for PC fans)power_12v = new ElectricPowerassert power_12v.voltage within 12V +/- 5%assert power_12v.max_current >= 200mA # Typical fan currentfan.power ~ power_12v# For PWM control, connect through a MOSFET or fan controller# fan.power.hv ~ power_12v.hv# fan.power.lv ~> pwm_controller ~> power_12v.lv