I am having the same problem. I am brand new to Air Manager, so I may not know what I am doing, but here's my setup and use case:
- 12V PWM fan attached to an Arduino Mega 2560 R3
- Arduino has been flashed in Air Manager, using channel A
- Arduino status reflects as:
- Channel A
- Mode: Pin mode
- State: Connected
- 12V DC power supply attached to the Arduino barrel jack
- Power and ground pins attached to Arduino Vin and GND pins, respectively (for those who do not know, attaching a pin to Vin will give the raw power output from the barrel jack, which in this case is 12VDC)
So far, so good. The fan is powered and runs properly at 100%.
Now, here's where it no longer works.
- Fan PWM pin attached to pin D11, which, according to the aforementioned documentation, looks to be fine
- I have added a very simple hardware function to start with (obviously I'll eventually add more, but right now, this doesn't even work).
Code: Select all
pwm_id_fan = hw_output_pwm_add("ARDUINO_MEGA2560_A_D11", 25000, 0.0)
hw_output_pwm_duty_cycle(pwm_id_fan, 0.0)
I would expect that I only need the first line to turn off the fan, but I included both lines, because neither line turns off the fan when I run it.
When I run it, I get this message in the hardware tab:
- image.png (7.32 KiB) Viewed 1236 times
So it looks like it should work, but it doesn't. I don't have any meter to check what's coming out on the D11 pin, but I'm assuming there's something I'm doing wrong, first.