# A2212/13t BLDC motor and problems

**URL:** https://community.simplefoc.com/t/a2212-13t-bldc-motor-and-problems/74
**Category:** hardware support
**Created:** [August 19, 2020, 7:04pm UTC](https://community.simplefoc.com/t/a2212-13t-bldc-motor-and-problems/74 "2020-08-19T19:04:50Z")
**Posts on this page:** 1
**Showing post:** 25

<div class="post-metadata">

### Author: ![Owen\_Williams](https://community.simplefoc.com/user_avatar/community.simplefoc.com/owen_williams/32/105_2.png) [@Owen\_Williams](https://community.simplefoc.com/u/Owen_Williams)
#### Post date: [August 24, 2020, 5:20pm UTC](https://community.simplefoc.com/t/a2212-13t-bldc-motor-and-problems/74/25 "2020-08-24T17:20:33Z")

</div>

Can I summarise where you are at.

- You can run open loop code. The motor spins forwards and backwards (depending on `+-=0.001`)
- you can manually spin the motor a whole turn and it correctly says 6.3 rads when you ask what the angle is
- when you run find\_pole\_pairs it barely moves and/or moves erratically left to right

This is odd as pole\_pairs is more or less the same as open loop.

Can you check that your  
`BLDCMotor motor = BLDCMotor(9, 5, 6, 0, 8);` is the same between pole\_pairs and open loop.  
@Antun_Skuric asked about which pins you use. I guess you are using 9,5,6,8 for motor and 10 for chip select for SPI. SPI will also be using 3 other pins (11, 12 and 13 is common for Uno I think). Uno is also using 0 and 1 for serial port. Does that sound right?  
I’d get a fresh copy of pole\_pairs especially if you’ve made changes e.g. to `pp_search_angle`

---

_[View the full topic](https://community.simplefoc.com/t/a2212-13t-bldc-motor-and-problems/74)._
