Controlling Servos from Cinema 4D using an Arduino

135 Просмотры
In this long form tutorial, I will show you how to control 3 servos connected to an Arduino or other compatible Micro Controller, from Cinema 4D. The project consists of a Cinema 4D file, that includes a Python tag which requires the "pyserial" library to function, and an Arduino Sketch.
In the process, I will explain how to install the "serial" library in Cinema 4D's python, what the code does, and how to connect the servos to the Arduino.
A big shout-out goes to Manuel Magalhaes (Twitter @valkaari - https://www.valkaari.com/) for writing the most important part of the Arduino code, the byte stream decoding. Thank you Manuel!

You can get the "pyserial" library and read the documentation here: https://pyserial.readthedocs.io/en/latest/index.html
Here are the project files: https://www.dropbox.com/s/37qytk0n2717ggz/C4D%20Arduino%20Multi%20Servo%20Project%20files.zip?dl=0

00:00 - intro
02:35 - PySerial
05:44 - Python Code in Cinema 4D
27:00 - Arduino Sketch
33:33 - Hooking Up Servos to Arduino
44:12 - Epilog

Watch more Maxon tutorials here: https://www.youtube.com/channel/UCiNkO1NyF7mZrGGo6CzgNgw
and here: https://www.youtube.com/user/MaxonC4D

Check out 3D Fluff's Youtube Channel here:

To keep getting great Cinema 4D video tutorials:
1. Like
2. Subscribe
3. Sign up at https://www.cineversity.com
4. Connect with us at https://www.facebook.com/cineversity/
5. Follow me on Twitter https://twitter.com/nosemangr
Комментариев нет.