# IrReceiver.begin mess up L293D motor shield

**URL:** <https://forum.arduino.cc/t/irreceiver-begin-mess-up-l293d-motor-shield/1330232>\
**Category:** Robotics\
**Created:** [December 8, 2024, 3:01pm UTC](https://forum.arduino.cc/t/irreceiver-begin-mess-up-l293d-motor-shield/1330232 "2024-12-08T15:01:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtnguyen123](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/vtnguyen123/32/1127312_2.png) [@vtnguyen123](https://forum.arduino.cc/u/vtnguyen123)\
**Post date:** [December 8, 2024, 3:01pm UTC](https://forum.arduino.cc/t/irreceiver-begin-mess-up-l293d-motor-shield/1330232/1 "2024-12-08T15:01:08Z")

</div>

Hi, I just started messing around with Arduino and I'm stuck here  
I'm trying to control some DC motors with an IR remote. However, when I try to do it, only the M3 and M4 motors actually work as intended. When I comment the IrReceiver.begin line, the other motors came to life again. I'm running two 18650 batteries as external power, are they not enough?

---

<div class="post-metadata">

**Author:** ![van\_der\_decken](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/van_der_decken/32/1006976_2.png) [@van\_der\_decken](https://forum.arduino.cc/u/van_der_decken)\
**Post date:** [December 8, 2024, 4:46pm UTC](https://forum.arduino.cc/t/irreceiver-begin-mess-up-l293d-motor-shield/1330232/2 "2024-12-08T16:46:08Z")

</div>

I'm going to assume that you're using an Uno R3.

Because you didn't say.

I'm going to assume that you're using one of those cheap motor shields that's a clone of the discontinued more than a decade ago product by Adafruit .

Because you didn't say.

I'm going to assume that you're using the AFMotor library.

Because you didn't say.

Are all those assumptions correct? If so, throw out the motor shield, uninstall the AFMotor library, and buy a motor shield that doesn't use all the timers on an R3 (and won't work at all on pretty much anything but an R3), thereby making it difficult, if not impossible, to use anything else that might like to use a timer. Like the IRremote library, for example. Something like

> **[Adafruit Motor/Stepper/Servo Shield for Arduino v2 Kit](https://www.adafruit.com/product/1438)**
>
> The original Adafruit Motorshield kit is one of our most beloved, so we decided to make something even better. We have upgraded the shield kit to make the bestest, easiest way to drive DC ...

And I strongly suggest that you take some time and read [How to get the best out of this forum](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966) so that you provide all the relevant information when asking a question.

---

<div class="post-metadata">

**Author:** ![ArminJo](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@ArminJo](https://forum.arduino.cc/u/ArminJo)\
**Post date:** [December 10, 2024, 4:10pm UTC](https://forum.arduino.cc/t/irreceiver-begin-mess-up-l293d-motor-shield/1330232/4 "2024-12-10T16:10:57Z")

</div>

RTFM [GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols](https://github.com/Arduino-IRremote/Arduino-IRremote)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [June 8, 2025, 4:11pm UTC](https://forum.arduino.cc/t/irreceiver-begin-mess-up-l293d-motor-shield/1330232/5 "2025-06-08T16:11:47Z")

</div>

Closed on June 8, 2025, 4:11pm UTC

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