savinaroja / dmxenttecpro Goto Github PK
View Code? Open in Web Editor NEWControl the Enttec DMX USB Pro with Python3
License: GNU General Public License v3.0
Control the Enttec DMX USB Pro with Python3
License: GNU General Public License v3.0
when i do python -m DMXEnttecPro.utils
i get
/dev/ttyUSB0
name: ttyUSB0
description: FT232R USB UART
hwid: USB VID:PID=0403:6001 SER=AL05J8AO LOCATION=1-3
vid: 1027
pid: 24577
serial_number: AL05J8AO
location: 1-3
manufacturer: FTDI
product: FT232R USB UART
interface: None
i am able to read the device , but unable to set channel 1 . it doesnt cry for an error , but at the same time the dmx controller doesnt do anything to my devices connected
In [1]: from DMXEnttecPro import Controller
In [2]: dmx = Controller('/dev/ttyUSB0', auto_submit=True)
In [3]: dmx.set_channel(1, 10)
In [4]:
Been playing with this module for abit and happy to have gotten some general on/off stuff happening! However, my combination of USB/DMX controller and light maybe introducing some weird translations in the messages reaching the light.
This is my converter
This is my light
Super cheap and cheerful! My question is, could you post an example of how to use the module? My current code maybe abit funky but it's the only way I can get something out of the light. Once the loop ends the light switches off.
from DMXEnttecPro import Controller
from DMXEnttecPro.utils import get_port_by_serial_number, get_port_by_product_id
my_port = get_port_by_serial_number('AG0JG2DN')
my_port = get_port_by_product_id(24577)
dmx = Controller(my_port)
# cycle through the channels setting them all to 255
for channel in range(1,512):
dmx.set_channel(channel, 255)
print(channel)
# keep a loop going to submit the data (keeps the light on)
try:
while True:
dmx.submit()
except:
dmx.close()
I've read up on DMX and from what I gather I should be able to set the 1st DMX channel on the light, which I have set to 1, then the instructions state channel 1-6 should control various colours/presets dependent on the value set. I however, do not get this instead I get a green light on at like channel 203 and other random numbers...
Cheers for the code!
Add support for the DMX USB Pro Mk2
I have recently had a request to support the Pro Mk2. This device has the cool feature of allowing simultaneous interaction with two DMX universes of 512 channels over just the one USB port.
After some perusal of the specification for the Mk2, it looks straightforward. The Mk2 is fairly backwards compatible with the Pro (maybe we call it the Mk1 as a retronym).
Despite this, I am learning towards making a separate controller class for the Mk2 just to keep the interfaces neater.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.