» ArtNet arduino set v3.1
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

ArtNet arduino set v3.1

arduino dmx art-net
Credits: Original Code: Christoph Guillermet (karistouf) Nice updates and performance improvement by: David Von Schoorisse, MSberger

about

Emit to an arduino hardware, or receive data from it over network with vvvv's DMX (artnet) nodes !

Those scripts will work with arduino 1.0, and any arduino compatible with an ethernet or wifi shield.

Please notice that ethernet shields are using pins to communicate over network data to arduino. Setting digital in setup or trying to write on them will block the script. Have a look to your arduino documentation first about those used pins.

V3.1 contains:

ArtNet receiver v3.1: performances improvement by MSBerger for arduino software 1.05

ArtNet receiver SoftPwm: script for arduino 23, using software pwm to create false pwm on all io pins

ArtNet sender: you can send artnet data from your arduino over network in artnet dmx packet. Sending values of sensors and buttons will be much more easier than all osc or firmata solutions ;-)
Kasper Kamperman has adapted my artnet sender script to work with the arduino software 1.0. Its included in the ArtNet sender 10 folder.

Folder OLD contains previous sketches versions

Enjoy !

download

artnet v31.zip - 05.08.13 [09:41 UTC] by karistouf | 1360 downloads
notes: artnet sender receiver set for arduino

patrick 05/03/2012 - 16:43

This reminds me of getting back to a very important project ...

:]

karistouf 08/03/2012 - 17:03

;-)

colorsound 09/03/2012 - 12:50

great thanks ¡¡

karistouf 10/03/2012 - 00:38

hi hi ;-)

karistouf 24/04/2012 - 08:53

added Kasper's adaptation for arduino software 1.0.
I m not using this version ( it will take a while before this arduino new software 1.0 be stable) but i m very happy of this contribution.

sonofsnow 25/07/2012 - 23:04

Being new to the arduino world i have a couple of questions.

1-When setting up the Artnet Node in vvvv to communicate with an arduino UNO

  should I set it up with an ordinary spread of 512, and then for the
  sender sketch, Artnet channel 13,12,11,10,9,8,6,5 and 3 would controll    
  the output pins on the arduinoUNO board? 
  

2-And for the reciver Sketch the same has to be done but diffrent channel

  to pin mapping?

3-And for the diffrent types of inputs/outputs like digital,analog or PWM?

  PWM and analog would be like a fader with value from 0 TO 1, but digital 
  would be a toggle, value 0 OR 1?

4- As im typing my questions I see that i really would love if someone

   could make a patch I could look at =)

Tnx

karistouf 28/08/2012 - 23:41

hi, sorry for delay. Hollydays...

about your question this has nothing to do with patches:

you have to pick up values you want from the artnet array inside the sketch and distribute them to your PWM like shown at the end of the reception sketch:

//stuff to do on PWM or whatever

 analogWrite(3,buffer_dmx[3]);  
 analogWrite(5,buffer_dmx[5]); 
 analogWrite(6,buffer_dmx[6]);

if you want to write value of channel 7 to PWM 3 its easy:

 analogWrite(3,buffer_dmx[6]); 

buffer_dm6] because position [0 is Channel 1. So buffer_dm6] is channel 7, as buffer_dmx[511 is channel 512.

about digitals, you need to make a condition, like:
if(buffer_dmx[7]>0){digitalWrite(3,HIGH);}
else{digitalWrite(3,LOW);}

if you want to control more than 6 PWM consider using softPWM lib. This means some coding in arduino in IDE and basic adaptation of the sketches

Slechtvalk 19/11/2012 - 22:44

How do i select the subnet and universe?

karistouf 20/12/2012 - 23:44

just edit the arduino script, there is subnet and universe as variable

mcentyre 09/01/2013 - 01:19

I'm fairly new to Arduino and I'm running into an issue with Receiver. I'm using Sender10 fine.

I'm having difficulty with the UDP libraries. I'm getting messages from the IDE such as "The Udp class in the Ethernet library has been renamed to EthernetUdp" If I change the udp.h reference to EthernetUdp.h, I get errors on the Read statement.

Can you tell me if the code is using old library references or if I need to import the correct libraries? If so, can you point me to the correct place to download the libraries?

Thanks for your help!

davasch 06/03/2013 - 17:18

On the UDP library:
I've updated the code to make use of the new EthernetUdp library. This code code can be found on my Github accounthttps://github.com/dschoorisse/artnet.

Currently only the the sketch ARTNET_receiver_v2 is updated (to ARTNET_receiver_v3)

karistouf 07/03/2013 - 09:50

hello, David Von Schoorisse made a nice adaptation to the code being able to work with arduino 1.0.

its so ArtNet receiver V3.

The github is here: https://github.com/dschoorisse/artnet

patrick 07/03/2013 - 12:58

Keep up the good work, Christof!

karistouf 07/03/2013 - 22:25

well, its not me this time ;-) its david ;-)

sonofsnow 14/03/2013 - 17:07

Hi again. Im having proplem to make this work, and its probably my mistake.
But a quick question. If i upload the code without doing any modifications to it to the arduino Uno and set the ip of my computer to 192.168.1.100 shouldnt it be up and running immediatly.

Tnx

EDIT: I got this working with the 0023 version (V2), But still no luck with v3 for arduino 1.0

vjc4 05/06/2013 - 15:29

Exelent work, i love the idea of sending artnet and getting PWM out to control something! :)
I will try to include the servo library to do a small moving ligth :)

Guys please check this out...

http://www.deskontrol.net/blog/arduino-based-dmx-artnet-node/

it a 4 universe from an arduino mega, but its slow if you use more 2 or more,,, the guy who made it will test it with arduino due, but he need to recompile the dmx library in order to do it, whell on this thread this is already done. so it would be great if you can get it touch to see if we can get 4 outputs from arduino due at 44hz, that will be crazy :)

MSBERGER 31/07/2013 - 22:58

Hi,

did anybody use v3 for arduino >=1.0 and compared performance with v2 ?

I experienced that performance of v3 is much lower compared to v2.
In fact refresh/framerate of the arduino (tested with uno and mega 2560) with v3 is so low that it is not really usable.
The same artnet environment with v2 looks fine !?

The difference in performance is so big that i doubt that is only a problem with the new UDB library in arduino 1.0 ... maybe there is a fundemental problem/mistake in the sketch !?
Unfortunately my arduino/network knowledge is not good enough to be able to debug.

Any ideas/solutions out there ? Karistouf ?

MSBERGER 01/08/2013 - 22:59

Ha !

... found the problem.

The performance killer was setting all buffer sizes to ""UDP_TX_PACKET_MAX_SIZE" (don´t know how big this is). I reduced this to 768 (more than big enough for the max packet size of artnet) and now performance even "feels" better than in the v2 version.
... i hope reducing/fixing the buffer size to 768 does not cause other problems ... but for me it is working fine.
Testers, feedback, improvements of course are very welcome.

The modified sketch that i named v3.1. can be downloaded here:artnet-arduino-set-v3.1

Besides the buffer size i changed some more (minor) things, that made sense to me !?
Here a little "Change Log" for my version v3.1:

  • performance gain by shrinking buffer sizes from "UDP_TX_PACKET_MAX_SIZE" to 768
  • implementation of selction / filtering SubnetID and UniverseID (was already prepared by karistouf)
  • channel count starts at 0 instead of 1 (the digital and vvvv way)
  • artnet start_address+n is now mapped to "arduino-channel" 0+n (was also start_address+n bevore), now it is similar to lighting fixtures

Markus

danvil60 27/08/2013 - 23:33

Hello, I would like to know how to use ASYNCLABS Yellow Jackets (WiFi) instead of Ethernet Shield.

thanks

anonymous user login

Shoutbox

~3h ago

graphicuserinterface: anyone with quadrature plugin? to read limbs rotation direction from polar node?

~3h ago

graphicuserinterface: another massive piece of work from vux. 10x

~2d ago

Serious_Hare: @tonfilm interresting one, def going to try that one. PS: mine runs on android to :)

~2d ago

Curveau: @tonfilm: Great :)

~2d ago

io: arr Windows 8 i using vvvv grey as non active icon background ...

~2d ago

~2d ago

vux: @mrboni : ping me on skype

~2d ago

mrboni: does the BM Intensity Pro work with dx11 video in?