# A library to drive old AF Motor Shield

**URL:** <https://forum.xod.io/t/a-library-to-drive-old-af-motor-shield/248>\
**Category:** Look What I’ve Done\
**Created:** [December 15, 2017, 4:15pm UTC](https://forum.xod.io/t/a-library-to-drive-old-af-motor-shield/248 "2017-12-15T16:15:33Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![nkrkv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/nkrkv/32/8_2.png) [@nkrkv](https://forum.xod.io/u/nkrkv)\
**Post date:** [December 15, 2017, 4:15pm UTC](https://forum.xod.io/t/a-library-to-drive-old-af-motor-shield/248/1 "2017-12-15T16:15:33Z")

</div>

Hello!

@warner asked how he could control motors through Adafruit-alike Motor Shield in XOD and here is [a small library](https://xod.io/libs/nkrkv/af-motor/). The shield is tricky one, its H-Bridges are placed behind a shift register chip. I couldn’t express it purely in XOD as it lacks some features yet, so I implemented the node from scratch in C++.

Here’s a quick demo:

---

_[View the full topic](https://forum.xod.io/t/a-library-to-drive-old-af-motor-shield/248)._
