How to connect the TSOP4838 to an Arduino to read the transmitted codes By using a cheap integrated IR receiver/decoder device (the venerable TSOP4838), most of the hard work is done for you!
An IR transmitter/receiver pair are positioned on either side of the fan. When the blade passes in between then, the receiver shuts off a transistor connected to one of the Arduino’s external ...