Hi everyone! I like to share my advances on the topic “Motion Control with Blender”. So here is a step by step tutorial, Enjoy! This tutorial will be focused on Linux, but with minus changes works on Win too.
- Arduino IDE (version 022, download it here, on version 1.0 don’t work)
- Eibrielex Addon (whit Arduino Library, Addon and Blend file, here [attachments tab])
- Eibrielex library to control steppers
- Arduino Sketch (to load on the Arduino board, here)
- Blend File
- Arduino Board (I’ve tested my configuration on Arduino Uno)
- L293D Integrated
- Breadboard (or something to hold the components)
- A power supply for the steppers (5 to 24v)
First we will setup the hardware, first you need to connect the components following this scheme:
By default is using pins: 6, 7, 8, 9 for motor A, and 10, 11, 12, 13 for motor B.
Now you can install my stepper library. (copy the “Eibrielex” folder on “/your-arduino022-path/libraries”)
And burn the Sketch on your Arduino board (remember to use Arduino IDE 022).
If you have problems try following this steps:
Find the file “your-arduino-path/hardware/arduino/cores/arduino/wiring.h”, and comment (line 79~):
// #define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
First we will setup the software, and the communication with the Arduino board.
Download the Blender Addon and install it (the addon will be on Animation tab.
Load the blend file, and follow this instructions:
The serial port must be the Arduino port, you can find it on the Arduino IDE software (on Win look like “COM3″).
The RX and TX leds must be blinking on the board, showing the data flow.
If the stepper is properly connected will be turning following the blender animation.
That is it!
- The Addon will assume 200 cycles per turn on four stepper.
- If you turn on “Position” property, that axis will not work.
- The properties “Calibrated” and “Live, Stop Motion, Timelapse” don’t work for now.
- The movements are relatives, not absolutes. So, if you stop the playback, and start again from first frame, the stepper will take the last position as first position. (In other words, every time you jump frames the system lost calibration)
The BlenderArtist thread.
Let me know if it work for you!
A demonstration of how can be used on VFX: