Coder Social home page Coder Social logo

dmxenttecpro's People

Contributors

savinaroja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dmxenttecpro's Issues

unable to set value for a channel

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]:

Example usage

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!

Support for the DMX USB Pro Mk2

Objective

Add support for the DMX USB Pro Mk2

Details

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.