Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29

Thread: Channels on wrong PIN numbers

  1. #11
    Join Date
    Dec 2014
    Location
    Southern California
    Posts
    1,278
    Post Thanks / Like

    Default Re: Channels on wrong PIN numbers

    If the Arduino MEGA runs the initial power on test at power on and then runs the random lights when Vixen is turned off then the board, sketch and relays are likely working correctly. it sounds like you do not have the patching correctly within Vixen.

    How many channels do you have configured in Vixen? 16 or 48?
    How many channels do you have configured in the sketch? 16 or 48?
    Last edited by kev; 11-23-2021 at 10:31 PM.
    Kevin

  2. #12
    Join Date
    Nov 2021
    Posts
    18
    Post Thanks / Like

    Default Re: Channels on wrong PIN numbers

    Quote Originally Posted by kev View Post
    If the Arduino MEGA runs the initial power on test at power on and then runs the random lights when Vixen is turned off then the board, sketch and relays are likely working correctly. it sounds like you do not have the patching correctly within Vixen.

    How many channels do you have configured in Vixen? 16 or 48?
    How many channels do you have configured in the sketch? 16 or 48?
    the sketch is flashed just like i posted it with no changes. in vixin i have it setup for 16 channels patched to 16 outputs

  3. #13
    Join Date
    Dec 2014
    Location
    Southern California
    Posts
    1,278
    Post Thanks / Like

    Default Re: Channels on wrong PIN numbers

    Start by commenting out the line in the sketch sei();
    That command is for UNO only.
    I would also reduce the defined channels in the sketch to 16. I don't know if it is a problem to be 48 or not.
    Also you said you have 48 channels set in the Vjxen controller config section. It should be 16. You need to be consistent with channel counts and definitions everywhere.
    Last edited by kev; 11-24-2021 at 12:47 AM.
    Kevin

  4. #14
    Join Date
    Dec 2014
    Location
    Southern California
    Posts
    1,278
    Post Thanks / Like

    Default Re: Channels on wrong PIN numbers

    Picture of your Vixen config screens might help us see something
    Kevin

  5. #15
    Join Date
    Nov 2021
    Posts
    18
    Post Thanks / Like

    Default Re: Channels on wrong PIN numbers

    Quote Originally Posted by kev View Post
    Picture of your Vixen config screens might help us see something
    Thank you I will try that this afternoon and let you know how it goes

  6. #16
    Join Date
    Oct 2012
    Posts
    318
    Post Thanks / Like

    Default Re: Channels on wrong PIN numbers

    If it was me....I always start back at the basics. Write a piece of code that just turns on and off each relay in sequence. If you suspect hardware, this would show it. If the relays all work properly, then put the comm back in and make sure that you are getting the correct data over the link. Once you know thats working, you can take the hardware off the suspect list.

  7. #17
    Join Date
    Sep 2020
    Posts
    90
    Post Thanks / Like

    Default Re: Channels on wrong PIN numbers

    I don't know if it will help, in the beginning (two years ago when I didn't know this fabulous group yet) I saw this video .... in the end I compiled the code to make 48 relays work (with mega2560).

    https://www.youtube.com/watch?v=vbHT2H2fu0k

    but i didn't care about having random lights when vixen was unplugged
    Last edited by gb70; 11-24-2021 at 04:07 PM.

  8. #18
    Join Date
    Dec 2011
    Location
    UK S80 postcode
    Posts
    1,557
    Post Thanks / Like

    Default Re: Channels on wrong PIN numbers

    Hi, in your sequincer / player is 'light 1' mapped to channel 1?
    There are a couple of mapping stages that can go wrong.

    Sequencer / Player.
    This maps a 'light' to a channel (or channels), in your case 'light 1' should be mapped to channel 1.

    Arduino.
    This maps a channel to an output, in your case channel 1 should be mapped to output 2.
    Code:
     #define CH01 2

  9. #19
    Join Date
    Oct 2014
    Location
    Sauk City, WI USA
    Posts
    2,122
    Post Thanks / Like

    Default Re: Channels on wrong PIN numbers

    pin1 is not defined to a channel (and should not be).

    This is the section of code you need to look at. See how CH01 is assigned 2? That is the "variable" CH01 (channel 1) is assigned to pin 2. (not exactly what this does but for your understanding the program, you need to think of it like that)
    // DO NOT use pings 0 and 1, as those are for the serial port to talk to the computer.
    #define CH01 2
    #define CH02 3
    #define CH03 4
    #define CH04 5
    #define CH05 6

    At this section of the code, they are placed into a zero based array. so for example channel[0] is assigned CH01 which is defined as 2.
    int channels[] = {CH01,CH02,CH03,CH04,CH05 ,CH06,CH07,CH08,CH09,
    CH10,CH11,CH12,CH13,CH14,CH15,CH16,CH17,CH18,CH19, CH20,CH21,CH22,
    CH23,CH24,CH25,CH26,CH27,CH28,CH29,CH30,CH31,CH32, CH33,CH34,CH35,
    CH36,CH37,CH38,CH39,CH40,CH41,CH42,CH43,CH44,CH45, CH46,CH47,CH48};

    both of those look okay. Check your wiring. channel 1 should be connected to pin 2. and the rest of the wiring needs to follow the assigned pins.

  10. #20
    Join Date
    Nov 2021
    Posts
    18
    Post Thanks / Like

    Default Re: Channels on wrong PIN numbers

    hey hope you all had a good turkey day and sorry took so long to get back on here . i still got the same issues and i need to correct my statement my channel 1 is set to pin 2 on the arduino channel 2 is set to pin3 and so on just like sketch . so here is what ive done to test outputs i started creating a sequence and set an event at each channel 1 at a time and when when channel 1 is activated it outputs on pin 3 instead of 2 and channel 2 outputs on on pin 4 instead of 3 and so on ,and then when i get to channel 9 even with everthing being 1 pin off which means 9 should output on pin 11 im not gettin any output for it but then channel 10 does output on pin 12 i hope im explaning this well enough
    Display Setup 11_26_2021 10_33_23 PM.jpg

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

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