# 2s9v1 Controller help with Arduino

**URL:** https://forum.pololu.com/t/2s9v1-controller-help-with-arduino/4518
**Category:** Motor controllers/drivers and motors
**Created:** [April 15, 2012, 9:39pm UTC](https://forum.pololu.com/t/2s9v1-controller-help-with-arduino/4518 "2012-04-15T21:39:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hmimthiaz](https://forum.pololu.com/user_avatar/forum.pololu.com/hmimthiaz/32/444_2.png) [@hmimthiaz](https://forum.pololu.com/u/hmimthiaz)
#### Post date: [April 15, 2012, 9:39pm UTC](https://forum.pololu.com/t/2s9v1-controller-help-with-arduino/4518/1 "2012-04-15T21:39:05Z")

</div>

Hello Everyone

Recently I purchased few items from Sparksfun for making a Arduino based Car.

Components Used:  
[Qik Dual Serial Motor Controller](http://www.sparkfun.com/products/9106)  
[Micro Metal Gearmotor 100:1](http://www.sparkfun.com/products/8910)  
[Arduino Uno SMD](http://www.sparkfun.com/products/10356)

I used the new library as mentioned in the post [Re: Arduino 1.0 library for the 2s9v1 ?](https://forum.pololu.com/t/arduino-1-0-library-for-the-2s9v1/4455/2). I am not able to make this controller work.

Connection Details

```auto
#define rxPin 2
#define txPin 3
#define rstPin 4
```

The controller works fine in Demo mode, but I know it is not enough. I am using a mac and my Arduino board is connected using USB. For the motors I have connected 4 batteries to GND,VMOT.

Can you please guide me with a sample connection diagram and code. Any help greatly appreciated.

Thanks  
[InteractiveMotorControl.ino.zip](https://forum.pololu.com/uploads/default/original/2X/6/6a4edc1d7ceb22cc72b4101bf690680dd760e425.zip) (931 Bytes)

---

<div class="post-metadata">

### Author: ![hmimthiaz](https://forum.pololu.com/user_avatar/forum.pololu.com/hmimthiaz/32/444_2.png) [@hmimthiaz](https://forum.pololu.com/u/hmimthiaz)
#### Post date: [April 16, 2012, 9:04pm UTC](https://forum.pololu.com/t/2s9v1-controller-help-with-arduino/4518/2 "2012-04-16T21:04:59Z")

</div>

I resolved the issue. I was using incorrect baud rate. I fixed the code by changing

```auto
Serial.begin(9600);
mySerial.begin(9600);
```

to

```auto
Serial.begin(9600);
mySerial.begin(38400);
```

Thanks

---

<div class="post-metadata">

### Author: ![Ben](https://forum.pololu.com/user_avatar/forum.pololu.com/ben/32/30_2.png) [@Ben](https://forum.pololu.com/u/Ben)
#### Post date: [April 16, 2012, 10:47pm UTC](https://forum.pololu.com/t/2s9v1-controller-help-with-arduino/4518/3 "2012-04-16T22:47:17Z")

</div>

Hello.

I’m happy you figured out the problem. Thank you for letting us know what it was.

- Ben
