LEGO power functions not sending

Was hoping someone could provide some suggestions on what to look at. Current setup:
Nano ESP32 - acts as the IR sender
Nano 33 IoT - acts as the IR receiver (for testing purposes)
have an actual lego power functions receiver listening

I have tried both the Legoino and PowerFunctions libraries to try to send IR signal to a Lego power functions device. I have an TSAL6200 IR emitter connected to the ESP32. I know it works as I have a receiver module connected to a Nano33 IoT device that can see the signals when I run the SimpleSender.ino sketch from the IRremote examples. I'm even able to see the original Lego controller signals on the receiver.

When I try to run either library I see nothing on the receiver side. Basically, nothing appears to be sending an IR signal out. I know the ports are defined for port 12 on all sketches. And i've tried all 4 channels. Any ideas on what to check for?

Verify Legoino, Lego Power device and PowerFunctions work as intended.

Post an annotated schematic showing exactly how you have wired this, be sure to include links to technical information on each of the hardware devices. Be sure to show all power sources, grounds, etc.

Best I could do on the schematic of my wiring. Power is from the USB-C cable from laptop right now, so power should be 5 to 5.5V. Plan to supply the arduino w/ 9V.

Data Sheet for the TSAL6200 IR Emitter: https://www.vishay.com/docs/81010/tsal6200.pdf

Used a calculator to get 20 ohm, 1/4 watt need on the resistor using 3.3V, forward current of 100mA, and typical forward voltage of 1.35V

I know the Lego side of this works, the receiver, the battery pack and the motors all work.

Just to confirm, I may have the diode in the wrong direction on the diagram but I have the resistor connected to the short side of the LED and that is to ground.

You have the LED backward, can your MCU output pin supply 100mA? I doubt it.

Maybe something like this?
IR

I switched over to an Uno and it is working as expected. Guess the nano can't put out enough power for the emitter. I really want the small form factor so I might attempt the suggested circuit above. Thanks.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.