» Motors + VVVV
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Motors + VVVV

demo node13 arduino Firmata motor rs232
Credits: kleinkariert + jan bernstein

about

Since it was quite a hands-on workshop with mostly hardware - there is not so much material to share. In the zip you will find a PDF with all the collected circuits and one stepper example (VVVV + arduino patch).

1) For Servos just use the fantastic Firmata nodes (coming with the addonpack) by jens.a.e & u7angel (upload firmata to arduino first)

> connect servo as shown in pdf and select "servo" in enumeraion IO Box for the used pin. The rest is explained quite well in the Firmata helppatch.

2) For DC-motors, also use the Firmata nodes

> connect a double h-bridge like the ln293d as shown in the pdf with an Arduino, external voltage and a motor.

In the firmata helppatch you need three pins for your motor. One digital out with a PWM ouput. Another two digital outputs just with HIGH/LOW output.
The PWM defines the speed of your motor
the other two work as followed:
pin1: HIGH, pin2: LOW -> left rotation (depending on your setup)
pin1: LOW, pin2: HIGH-> right/inverse rotation
both HIGH should stop the motor (creates a kind of shortcut) do not do this too long...

(most of the standart motorshields you get for the arduino should work the same way)

3) For Steppermotors use the stepper example and a stepperdriver like a ln293d or for better control something like the pololu 4988 or the easydriver from sparkfun, you need to upload the arduino patch "stepper_RS232_Control_ino"

One very fancy but expencive alternative for steppers are the stepperdrivers from phidget which have a plugin in vvvv.

you might want to know what PWM is:
http://en.wikipedia.org/wiki/Pulse-width_modulation

download

MotorControlWS13.zip
25.03.13 [15:32 UTC] by kleinkariert | 1665 downloads
stepper-example, circuits

ggml 25/07/2019 - 04:00

hi
in regard to steppermotors,
patch says its ment to be used with the 4988 driver (2 pins)
but the referenced ino code says its meant for direct control (4 pins)
what is the sollution here ?

anonymous user login

Shoutbox

~8h ago

joreg: But first: This Friday in Berlin: Join our full day "Getting started with Generative Design Algorithms" workshop https://nodeforum.org/announcements/workshop-getting-started-with-generative-design/

~13h ago

joreg: In #Linz for #ArsElectronica? Join us for a free 2 days #vvvv workshop sponsored by businesses/responsive-spaces-gmbh Apply here: 2-day-gamma-vvvvorkshop-at-responsive-spaces-in-linz

~2d ago

joreg: Need your custom dose of #vvvv training? Join us at our studio in #berlin: vvvv-training-at-the-source

~8d ago

~12d ago

~12d ago

domj: Dev stream: Painting with light with a Vive controller, developing using VL and Schéma. Start at 17:00 https://www.twitch.tv/dominikjancik

~14d ago

joreg: July as it happened: vvvvhat-happened-in-july-2019 #vvvv

~15d ago

levi: @mrboni thanks mrboner. solved it by turning all the lights to strobe mode so framerate drops were actually a relief :P . love

~15d ago

joreg: reminder: this thursday, just before the patching circle, there is a free 2h intro to #vvvv gamma: free-vvvv-intro-workshops-this-summer-in-berlin