APA102 WS2811 WS2812 LED and MadMapper
  • franz
    madMapper master
    Posts: 620
    Joined: Fri Feb 18, 2005 7:05 pm
    Location: Paris, France
    Contact:

    APA102 WS2811 WS2812 LED and MadMapper

    by franz » Fri Sep 25, 2015 9:34 am

    Here's a tutorial on how to control LED directly from MadMapper using a Tweensie 3.1
    No need for a DMX interface .

    Check the video here:
    https://www.youtube.com/watch?v=er_PZZw ... e=youtu.be

    and download the PDF + arduino files:
    MadMapper LED Tutorial files.zip
    (645.05 KiB) Downloaded 345 times


    enjoy

    The MADteam
  • hanz_m
    junior Member
    Posts: 3
    Joined: Fri Nov 20, 2015 4:19 pm

    Re: APA102 WS2811 WS2812 LED and MadMapper

    by hanz_m » Sun Dec 27, 2015 4:38 pm

    hello,
    can it be that in the demo version of Madmapper the dmx output for this setup is disabled?
    I've tried the turorial, with an AdaFruit Neopixel, (Adafruit NeoPixel Digital RGB LED Weatherproof Strip 60 LED, 2m) and an Arduino Mega
    (copied fastLED libraires to avr, so arduino finds the file)
    Made the whole setup,
    made a 120 size fixture, used an After Effects animation via Syphon, Madmapper recognises the animation in the fixture monitor but
    I does seem that the arduino gets a signal
    Tried the #define JUST_TEST_LEDS, and this line does work,
    I think I do something wrong, or this setup is disabled in demo version?


    regards
  • franz
    madMapper master
    Posts: 620
    Joined: Fri Feb 18, 2005 7:05 pm
    Location: Paris, France
    Contact:

    Re: APA102 WS2811 WS2812 LED and MadMapper

    by franz » Mon Jan 04, 2016 11:40 am

    yes DMX output is wonky in the demo
  • hanz_m
    junior Member
    Posts: 3
    Joined: Fri Nov 20, 2015 4:19 pm

    Re: APA102 WS2811 WS2812 LED and MadMapper

    by hanz_m » Mon Jan 04, 2016 1:44 pm

    aha, thank you for your response

    regards
  • digitalledcolor
    junior Member
    Posts: 1
    Joined: Mon Jun 06, 2016 9:17 am

    Re: APA102 WS2811 WS2812 LED and MadMapper

    by digitalledcolor » Mon Jun 06, 2016 9:21 am

    I want to know if your way can make madmapper support WS2812B led updated version WS2813 led or not
  • Xaver2k
    super8 member
    Posts: 103
    Joined: Thu Feb 20, 2014 11:23 pm
    Location: Germany

    Re: APA102 WS2811 WS2812 LED and MadMapper

    by Xaver2k » Mon Jun 06, 2016 2:26 pm

    Madmapper does not need to be updated for WS2813 because Madmapper only sends DMX data via Artnet or USB. Then your Controller like Arduino, Pixilite or the Teensy does the converting to WS2812 or WS2813. So your Controller needs to be updated or you need a new controller.
  • Myst241
    junior Member
    Posts: 1
    Joined: Thu Jul 07, 2016 5:29 am

    Re: APA102 WS2811 WS2812 LED and MadMapper

    by Myst241 » Thu Jul 07, 2016 5:43 am

    hey guys!! so i've been trying to get this to work on an Arduino Uno but with no luck. Tried everything and searched through the forum and can't seem to find anything.

    does the Arduino Uno have enough memory to run this thing? because when I try to upload to the Uno i keep getting this error:

    Sketch uses 5,312 bytes (16%) of program storage space. Maximum is 32,256 bytes.
    Global variables use 4,391 bytes (214%) of dynamic memory, leaving -2,343 bytes for local variables. Maximum is 2,048 bytes.
    processing.app.debug.RunnerException: Not enough memory; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing your footprint.
    at cc.arduino.Compiler.size(Compiler.java:319)
    at cc.arduino.Compiler.build(Compiler.java:156)
    at processing.app.Sketch.build(Sketch.java:1111)
    at processing.app.Sketch.build(Sketch.java:1081)
    at processing.app.Editor$BuildHandler.run(Editor.java:1962)
    at java.lang.Thread.run(Thread.java:745)
    Not enough memory; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing your footprint.



    the only way i can successfully load the script is when i change the "char dataFrame[4086] to a smaller number in the code below:

    // MadLED protocol buffer
    char dataFrame[4086];
    int readingFrameOnLine = -1;
    bool gotNewDataFrame = false;


    for example "char dataFrame[1400];" lets me load the script in, and then the LED test line works, but once i load up mad mapper , i can see all the outputs and the arduino, i make the fixtures, and then animate - at which point i can see the Uno receiving data and blinking but the LED strip does not show the animations. I'm using about a meter plus long WS2812 and it lights up fine in the test section of the code. I'm assuming changing that char dataFrame line is messing this up.

    I'm jumping to the conclusion that the Uno just can't run this, but it seems i have seen people on youtube able to pull it off so not sure. Hoping you guys can help. Going to be utilizing this in a cool stage / art installation. If the Uno is a no-go then i'll grab the Teensy 3.2 but wanted to give it 1 last shot.

    Thanks in advance,

    -Mysto
  • mad-matt
    garageCube team
    Posts: 343
    Joined: Mon Sep 09, 2013 5:50 pm

    Re: APA102 WS2811 WS2812 LED and MadMapper

    by mad-matt » Mon Aug 22, 2016 5:49 pm

    Don't loose time trying to get that to work with Arduino, buy a teensy for 20$ :-)
    On the arduino the data gets corrupted on the USB-serial chip depending on the chipset (FTDI or other). It's hard for us to tell which one works, so we only guarantee it works with teensy 3.1 or later.
    Cheers !
  • User avatar
    NateMac
    activ8 member
    Posts: 73
    Joined: Wed Dec 05, 2012 5:55 pm
    Location: Chicago, IL

    Re: APA102 WS2811 WS2812 LED and MadMapper

    by NateMac » Fri Oct 28, 2016 7:58 pm

    Is there a way to add ethernet to the Teensy to do Art-Net over Ethernet?

    How many universes can be run on a single teensy?

    Currently I've been use an Arduino Mega with an Ethernet Shield, each Arduino is a single universe. I've tried up to 5 universes with 5 Arduino's running a total of 612 RGB WS2811 LEDs.
  • mad-matt
    garageCube team
    Posts: 343
    Joined: Mon Sep 09, 2013 5:50 pm

    Re: APA102 WS2811 WS2812 LED and MadMapper

    by mad-matt » Mon Oct 31, 2016 7:14 pm

    I think I could run 10 bars of 100 RGB pixels, so 1000 pixels => 3000 channels => 6 universes, at 60 FPS. Maybe it was a bit more. They were APA102 all on a single line. I had no time to check if the bottleneck was USB or somewhere else. But that's already a lot for a 15$ device !
  • mad-matt
    garageCube team
    Posts: 343
    Joined: Mon Sep 09, 2013 5:50 pm

    Re: APA102 WS2811 WS2812 LED and MadMapper

    by mad-matt » Mon Apr 03, 2017 1:36 pm

    If you need latest tutorial documentation: http://www.madmapper.com/download/madla ... _files.zip
  • Martin King
    junior Member
    Posts: 8
    Joined: Thu Mar 30, 2017 11:16 am

    Re: APA102 WS2811 WS2812 LED and MadMapper

    by Martin King » Mon Apr 03, 2017 7:37 pm

    Thanks for the tutorial but there are a number of holes in it sadly, it doesn't explain what the column "Out Channel" is for and there is no explanation for using multiples lines on a Teensy. Also in the Teensy code there is the lines

    // MadLED protocol buffer
    char dataFrame[4086];

    Does that limit the number of LED's that can be connected to a Teensy? Or is the buffer emptied at the same time as it's filled?

    Also there is a small bug, if you set

    #define JUST_TEST_LEDS

    Then the test won't happen unless the board receives some serial data as it will get stuck in the loop

    while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
    }

    Probably best just to comment that section out with another comment that says "Uncomment if using a Leonardo" given that most people are likely to be using Teensys.

    Is there a physical limit to the number of LED's (or channels if you're using RGB leds) that s single Teensy can handle in either single line of multi line configuration?

    Cheers.

    Martin.
  • mad-matt
    garageCube team
    Posts: 343
    Joined: Mon Sep 09, 2013 5:50 pm

    Re: APA102 WS2811 WS2812 LED and MadMapper

    by mad-matt » Tue Apr 04, 2017 2:00 pm

    Oups the link was still an old version of sources. Please re-download.
    There's no limit to the number of LEDs except the RAM size occupied by color buffers and FastLED buffers.
  • Martin King
    junior Member
    Posts: 8
    Joined: Thu Mar 30, 2017 11:16 am

    Re: APA102 WS2811 WS2812 LED and MadMapper

    by Martin King » Tue Apr 04, 2017 5:06 pm

    Thank, what does "Out channel" refer to though? I know what out line does
  • mad-matt
    garageCube team
    Posts: 343
    Joined: Mon Sep 09, 2013 5:50 pm

    Re: APA102 WS2811 WS2812 LED and MadMapper

    by mad-matt » Fri Apr 07, 2017 9:44 pm

    Because ArtNet universe contains 512 channels and a teensy line is unbounded (only by teensy RAM), youmay want to send for instance ArtNet universe 0 channels 1-512 on teensy output 1 - channels 0-511 and ArtNet universe 1-channels 1-512 on teensy output 2-channels 512-1023. So both universes are concatenated on a single teensy output. I did up to 10 universes on a single teensy output.
    One ArtNet universe is 512 channels so 171 RGB pixels.
    Is it clear enough ?

Who is online

Users browsing this forum: No registered users and 1 guest