Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Teensy 3.6 and DMXSimple HELP!

  1. #1
    Junior Member
    Join Date
    Mar 2019
    Posts
    10

    Teensy 3.6 and DMXSimple HELP!

    Can I run DMXSimple on the Teensy 3.6?

    I have tried with no luck.


    I have built this circuit
    https://playground.arduino.cc/DMX/DMXShield/

    Trying to run this Light with the example in the DMXsimple Library video.
    Stagg ECOPAR XS RGBW LED Spotlight Black

    What I am missing?

    Code:
    #include <DmxSimple.h>
    
    /* Welcome to DmxSimple. This library allows you to control DMX stage and
    ** architectural lighting and visual effects easily from Arduino. DmxSimple
    ** is compatible with the Tinker.it! DMX shield and all known DIY Arduino
    ** DMX control circuits.
    **
    ** DmxSimple is available from: http://code.google.com/p/tinkerit/
    ** Help and support: http://groups.google.com/group/dmxsimple       */
    
    /* To use DmxSimple, you will need the following line. Arduino will
    ** auto-insert it if you select Sketch > Import Library > DmxSimple. */
    
    
    
    void setup() {
      /* The most common pin for DMX output is pin 3, which DmxSimple
      ** uses by default. If you need to change that, do it here. */
      DmxSimple.usePin(3);
    
      /* DMX devices typically need to receive a complete set of channels
      ** even if you only need to adjust the first channel. You can
      ** easily change the number of channels sent here. If you don't
      ** do this, DmxSimple will set the maximum channel number to the
      ** highest channel you DmxSimple.write() to. */
         DmxSimple.maxChannel(7);
    }
    
    void loop() {
      
       DmxSimple.write(1, 255);
       DmxSimple.write(2, 255);
       DmxSimple.write(3, 0);
       DmxSimple.write(4, 0);
       DmxSimple.write(5, 0);
       DmxSimple.write(6, 0);
       DmxSimple.write(7, 0);
        
     delay(500);
    
    }

  2. #2
    Senior Member
    Join Date
    Mar 2017
    Location
    Oakland, CA, USA
    Posts
    169
    If you wish to try an alternative library, see https://github.com/ssilverman/TeensyDMX. There are loads of examples and, as long as you choose a TX pin that's attached to one of the serial ports, it will work.

    In the shield diagram, however, I find it a little odd that both the receiver and driver are enabled. RS485 is a half-duplex transport and only one of those buffers should be driving the line at a time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •