1. New to Christmas lighting? Get started with the AusChristmasLighting 101 Manual:
    auschristmaslighting.com/wiki/AusChristmasLighting-101

Another Arduino pixel controller

Discussion in 'DMX, E1.31 & Networking' started by elnino, Nov 4, 2014.

  1. JPB

    JPB Full Time Elf

    Joined:
    May 13, 2010
    Messages:
    318
    Likes Received:
    4
    Location:
    Glenwood
    I am currently running two Nanos with the ENC Ethernet modules and tonight was the first time I had them both running at the same time.
    Running Vixen3 I got a strange result in that one would operate and then stop while the second would start up and run for a bit. My show will run from off a Pi.

    I am running static IP one is 10.0.0.151 and the other is 10.0.0.152. I eventually will have a third one, .153
    Dumb question. Is this bit of the code important, I did not change it from default?
    // Set a different MAC address for each...
    const byte mymac[] = { 0x74, 0x69, 0x69, 0x2D, 0x30, 0x17 };

    I have done an ARP -A and both the ENC modules have the same MAC. Is this an issue?
     
  2. Kitman

    Kitman Full Time Elf

    Joined:
    Oct 25, 2014
    Messages:
    334
    Likes Received:
    35
    Location:
    Munno Para
    When it comes to networking every single device on your network must have a different MAC address in order to help the network differentiate between each device. Yes every device has it's own IP address but it also must have a unique MAC address. Spoofing a MAC address is how hackers normally manage to gain access to a person home WIFI network as the network will send packets to that MAC address believing it is the other device, which would explain why you get data on one then the other.
     
  3. JPB

    JPB Full Time Elf

    Joined:
    May 13, 2010
    Messages:
    318
    Likes Received:
    4
    Location:
    Glenwood
    Thanks Kitman, I feel like a goose because i should have realised that without the dumb question.
    I had always thought the MAC was hard coded in the firmware of the device and couldn't understand why that line was in the code. I now know more than i did yesterday.

    Jon
     
  4. Kitman

    Kitman Full Time Elf

    Joined:
    Oct 25, 2014
    Messages:
    334
    Likes Received:
    35
    Location:
    Munno Para
    No worries Jon. You are correct that the Mac address is hard coded into the hardware, however with the right software you can make it appear to have a different Mac address and even sometimes change the Mac address of the hardware although that is never a good idea.
     
  5. byaky

    byaky New Elf

    Joined:
    Nov 24, 2015
    Messages:
    1
    Likes Received:
    0
    Location:
    Toronto
    Elnino - Would it be possible for you to describe how you wire the led strings and powered arduino and leds. I am guessing that based on the information provided that there are 2 led strings per Uno and that each pair are wire together in series. This is were I get lost. Do you have an extended lead between the two led strings in order to get the two to have the led animation go in the same direction? How do you connect the led strings to the Uno? Do you use additional electronics (capacitors, resistors, etc.) to prevent damage to the less? I have read a lot on the internet but am getting a little confused about the connections. Most of the focus is on the sketches.
     
  6. Dmitry

    Dmitry R&D Engineer working with lighting projects

    Joined:
    Nov 27, 2015
    Messages:
    5
    Likes Received:
    0
    Location:
    Riga
    FYI,
    There is very good library for working with LED strip OctoWS2811 + Tensy (arduino compatible) device (4000 LEDs for one Tency, cascading support).
    The library has good examples (VideoDisplay Example Program) and intended to work with LED strips, may be it could be nice start for you.
     
  7. shanebou24

    shanebou24 New Elf

    Joined:
    Dec 9, 2015
    Messages:
    1
    Likes Received:
    0
    Location:
    mass
    I sill cant get this to compile I tried changing the version of the arduino ide to 1.6.1 . I cant seam to find an older version of the ethercard library

    so I changed

    //static void sACNPacket(word port, byte ip[4], const char *data, word len) {

    to

    static void sACNPacket(unsigned int port, byte ip[4], unsigned int i, const char *data, unsigned int len) {

    this is the new warning Low memory available, stability problems may occur.

    so it should work fine
     
  8. JPB

    JPB Full Time Elf

    Joined:
    May 13, 2010
    Messages:
    318
    Likes Received:
    4
    Location:
    Glenwood
    After upgrading to the v1.6.8 arduino program this program no longer compiles as a lot of extra #include statements get added that reference library files that don't exist in the original library.
    Upgrading the FastLED libraries to v3.1 generates a whole heap more errors

    I have tried to work through the errors but it is light years beyond my capabilities.

    Jon
     
  9. adam_k

    adam_k New Elf

    Joined:
    Apr 25, 2018
    Messages:
    1
    Likes Received:
    0
    Mate you're a legend- thanks to you and contributers like you I have my proof of concept up and running in a day! ^_^ now to find / spend some $$ to build a display! Many many thanks
     

Share This Page