[UNRESOLVED] Read pulse from PC FAN via Input Capture

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
swanduron
Posts: 10
Joined: Mon Mar 13, 2017 9:03 am

[UNRESOLVED] Read pulse from PC FAN via Input Capture

Post by swanduron » Sun Jul 02, 2017 7:47 am

Hi guys,

I try to read the FAN speed from 3 pin PC fan, and my code as below.

I seen the result is incorrect and unstable, the pull-up res is 10K and connect to 3.3v pin. Anyone can help on this case?

ic_pin = pyb.Pin.board.X4
ic = t2.channel(4, pyb.Timer.IC, pin=ic_pin, polarity=pyb.Timer.RISING)
ic.capture()

Regards

Post Reply