sACNSource

An Arduino Library for streaming ACN


tigoe.github.io

Library Examples

Library Commands:
sACNSource
begin
setUuid
setSourceName
setUniverse
setChannel
sendPacket
setSequenceNumber
getSequenceNumber
setSyncAddress
setOptions
readData
packetSize

This project is maintained by tigoe

Examples

Example 1

This sketch creates a sACN packet, then uses it to send fade information to an sACN receiver.

Example 2

This sketch creates a sACN packet, then uses it to send fade information to an sACN receiver. It reads from one analog input to generate the channel level.

Example 3

Fading six DMX channels with six potentiometers

circuit: six potentiometers attached to pins A0 through A5

Example 4

Using a joystick to control pan, tilt, and brightness of an Elation Platinum Spot LED Pro II in standard mode. Datasheet is at this link.

DMX channels:

Example 5

Rotary encoder controlling the hue of a DMX-controlled light using HSI calculations, with the following channels:

The color of the light will depend on the angle of the encoder relative to its zero position. 0 degrees = red, 120 degrees = green, 240 degrees = blue. The calculation of angle on the encoder is approximate. It assumes 88 steps per rotation. Pressing the pushbutton resets the encoder to zero, and resets the colro wheel to 0 degrees (red).

Example 6

This sketch creates a sACN packet, then loops over the DMX channels, fading each one up and down at a time. It continually prints out the packet hexadecimal values, so you can see what each byte value is. It does not send the packets out via UDP, however. This sketch is for understanding the protocol only. It does not send any packets.

Example 7

This sketch creates a sACN packet, then uses it to send fade information to an sACN receiver over wired Ethernet.