Wednesday 4 May 2011

Trinamic Stepper Driver, and Arduino and I2C

I'm trying to work my way through communicating with a Trinamic TMC223 stepper driver from an Arduino via the I2C interface. I've not managed to find a single source of info to get me going.

I've previously used I2C to talk to some SHT temp/humidity sensors but I've not managed to simplify that enough to convert to a more generic framework.

There is some sample C code for the chips on the Trinamic web site at http://www.trinamic.com/tmc/media/Downloads/integrated_circuits/Tmc222/Application_notes/TMC222_Lib_AVR.zip

An interesting intro to I2C on the Arduino at http://tronixstuff.wordpress.com/2010/10/20/tutorial-arduino-and-the-i2c-bus/

Some sample code for I2C which I've managed to compile on the Arduino platform at http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1265556313

I've also found alternatives to the wires library at http://www.adafruit.com/forums/viewtopic.php?f=25&t=13722

I'm hoping to develop a library or sketch to do the basics with the chip.

2 comments:

  1. I have seen this http://interactive-matter.eu/2011/05/twitballoon-2/ and that http://www.kibuck.com/en/86-i2c-stepper-motor-controller.html

    ReplyDelete
  2. Clemens thanks for that. I've been quiet on this site for a while and hadn't spotted your post. I came across the Twitballoon 2 info earlier and realised you'd commented when I looked for extra info.

    The TMC262 sounds like a big improvement on the TMC223, I want one of the proposed Arduino shields.

    Bob

    ReplyDelete