# SparkFun\_Serial\_Controlled\_Motor\_Driver\_Arduino\_Library

**URL:** <https://community.sparkfun.com/t/sparkfun-serial-controlled-motor-driver-arduino-library/36360>\
**Category:** Development Boards\
**Tags:** samd\
**Created:** [February 21, 2019, 2:43am UTC](https://community.sparkfun.com/t/sparkfun-serial-controlled-motor-driver-arduino-library/36360 "2019-02-21T02:43:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkarimi1](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@mkarimi1](https://community.sparkfun.com/u/mkarimi1)\
**Post date:** [February 21, 2019, 2:43am UTC](https://community.sparkfun.com/t/sparkfun-serial-controlled-motor-driver-arduino-library/36360/1 "2019-02-21T02:43:44Z")

</div>

Hi,

I am using the SparkFun\_Serial\_Controlled\_Motor\_Driver\_Arduino\_Library. I used it with Arduino UNO and it worked perfectly. But when I tried to run it with Sparkfun’s SAMD21 Mini, I faced a problem with the myMotorDriver.begin() function. The code stops at this line and doesn’t go to the next line. I checked the function definition but I couldn’t find whats the problem. Could anyone help me with this? Am I having a problem with including the SCMD library in SAMD21 Mini?

Bests,

---

<div class="post-metadata">

**Author:** ![ell\_C](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/ell_c/32/10625_2.png) [@ell\_C](https://community.sparkfun.com/u/ell_C)\
**Post date:** [October 4, 2019, 5:56pm UTC](https://community.sparkfun.com/t/sparkfun-serial-controlled-motor-driver-arduino-library/36360/2 "2019-10-04T17:56:28Z")

</div>

Can you give us more information on what you are doing? Ie - what I2C vs SPI? Are you using an example?
