Jump to content



Photo
- - - - -

Need Help setting up a 2nd wemos controller

led wemos dof

  • Please log in to reply
4 replies to this topic

#1 boss32178

boss32178

    Neophyte

  • Members
  • Pip
  • 4 posts

  • Flag: United Kingdom

  • Favorite Pinball: N/A

  • PS3 Gamer Tag: boss32178
  • 360 Gamer Tag: boss32178

Posted 14 May 2023 - 12:22 AM

So I got everything working great and the I added a 2nd wemos controller. Every thing but the 2nd wemos controller is working. When you first start a pinball table all LED lights flash red green blue. After that and you start to play the game the 2nd controller led light up. I think it is my cabinet.xml file. Does any one know where I can find an example or know what might be the issue?

<?xml version="1.0"?>
<Cabinet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Name>Pinball of the death that kills</Name>
  <OutputControllers>
    <WemosD1MPStripController>
      <Name>Boognish</Name>
      <NumberOfLedsStrip1>100</NumberOfLedsStrip1>
      <NumberOfLedsStrip2>100</NumberOfLedsStrip2>
      <NumberOfLedsStrip3>140</NumberOfLedsStrip3>
      <NumberOfLedsStrip4>40</NumberOfLedsStrip4>
      <NumberOfLedsStrip5>87</NumberOfLedsStrip5>
      <NumberOfLedsStrip6>40</NumberOfLedsStrip6>
      <NumberOfLedsStrip7>58</NumberOfLedsStrip7>
      <NumberOfLedsStrip8>1024</NumberOfLedsStrip8>
      <ComPortName>COM3</ComPortName>
      <ComPortTimeOutMs>300</ComPortTimeOutMs>
      <ComPortBaudRate>2000000</ComPortBaudRate>
      <ComPortOpenWaitMs>300</ComPortOpenWaitMs>
      <ComPortHandshakeStartWaitMs>100</ComPortHandshakeStartWaitMs>
      <ComPortHandshakeEndWaitMs>100</ComPortHandshakeEndWaitMs>
      <SendPerLedstripLength>true</SendPerLedstripLength>
      <UseCompression>true</UseCompression>
      <TestOnConnect>true</TestOnConnect>
    </WemosD1MPStripController>
    <WemosD1MPStripController>
      <Name>Speakers</Name>
      <NumberOfLedsStrip1>24</NumberOfLedsStrip1>
      <NumberOfLedsStrip2>24</NumberOfLedsStrip2>
      <ComPortName>COM6</ComPortName>
      <ComPortTimeOutMs>300</ComPortTimeOutMs>
      <ComPortBaudRate>2000000</ComPortBaudRate>
      <ComPortOpenWaitMs>300</ComPortOpenWaitMs>
      <ComPortHandshakeStartWaitMs>100</ComPortHandshakeStartWaitMs>
      <ComPortHandshakeEndWaitMs>100</ComPortHandshakeEndWaitMs>
      <SendPerLedstripLength>true</SendPerLedstripLength>
      <UseCompression>true</UseCompression>
      <TestOnConnect>true</TestOnConnect>
    </WemosD1MPStripController>
  </OutputControllers>
  <Toys>
    <LedStrip>
      <Name>left pf</Name>
      <Width>1</Width>
      <Height>100</Height>
      <LedStripArrangement>BottomUpRightLeft</LedStripArrangement>
      <ColorOrder>RGB</ColorOrder>
      <FirstLedNumber>1</FirstLedNumber>
      <FadingCurveName>SwissLizardsLedCurve</FadingCurveName>
      <Brightness>100</Brightness>
      <OutputControllerName>Boognish</OutputControllerName>
    </LedStrip>
    <LedStrip>
      <Name>right pf</Name>
      <Width>1</Width>
      <Height>100</Height>
      <LedStripArrangement>BottomUpLeftRight</LedStripArrangement>
      <ColorOrder>RGB</ColorOrder>
      <FirstLedNumber>101</FirstLedNumber>
      <FadingCurveName>SwissLizardsLedCurve</FadingCurveName>
      <Brightness>100</Brightness>
      <OutputControllerName>Boognish</OutputControllerName>
    </LedStrip>
    <LedStrip>
      <Name>under cab</Name>
      <Width>1</Width>
      <Height>140</Height>
      <LedStripArrangement>TopDownLeftRight</LedStripArrangement>
      <ColorOrder>RGB</ColorOrder>
      <FirstLedNumber>201</FirstLedNumber>
      <FadingCurveName>SwissLizardsLedCurve</FadingCurveName>
      <Brightness>100</Brightness>
      <OutputControllerName>Boognish</OutputControllerName>
    </LedStrip>
    <LedStrip>
      <Name>left speaker</Name>
      <Width>1</Width>
      <Height>40</Height>
      <LedStripArrangement>LeftRightTopDown</LedStripArrangement>
      <ColorOrder>RGB</ColorOrder>
      <FirstLedNumber>341</FirstLedNumber>
      <FadingCurveName>SwissLizardsLedCurve</FadingCurveName>
      <Brightness>100</Brightness>
      <OutputControllerName>Boognish</OutputControllerName>
    </LedStrip>
    <LedStrip>
      <Name>back</Name>
      <Width>1</Width>
      <Height>87</Height>
      <LedStripArrangement>TopDownLeftRight</LedStripArrangement>
      <ColorOrder>RGB</ColorOrder>
      <FirstLedNumber>381</FirstLedNumber>
      <FadingCurveName>SwissLizardsLedCurve</FadingCurveName>
      <Brightness>100</Brightness>
      <OutputControllerName>Boognish</OutputControllerName>
    </LedStrip>
    <LedStrip>
      <Name>right speaker</Name>
      <Width>1</Width>
      <Height>40</Height>
      <LedStripArrangement>LeftRightTopDown</LedStripArrangement>
      <ColorOrder>RGB</ColorOrder>
      <FirstLedNumber>468</FirstLedNumber>
      <FadingCurveName>SwissLizardsLedCurve</FadingCurveName>
      <Brightness>100</Brightness>
      <OutputControllerName>Boognish</OutputControllerName>
    </LedStrip>
    <LedStrip>
      <Name>topper</Name>
      <Width>1</Width>
      <Height>58</Height>
      <LedStripArrangement>RightLeftBottomUp</LedStripArrangement>
      <ColorOrder>RGB</ColorOrder>
      <FirstLedNumber>508</FirstLedNumber>
      <FadingCurveName>SwissLizardsLedCurve</FadingCurveName>
      <Brightness>100</Brightness>
      <OutputControllerName>Boognish</OutputControllerName>
    </LedStrip>
    <LedStrip>
      <Name>New adressable toy 0</Name>
      <Width>64</Width>
      <Height>16</Height>
      <LedStripArrangement>BottomUpAlternateRightLeft</LedStripArrangement>
      <ColorOrder>RGB</ColorOrder>
      <FirstLedNumber>566</FirstLedNumber>
      <FadingCurveName>SwissLizardsLedCurve</FadingCurveName>
      <Brightness>100</Brightness>
      <OutputControllerName>Boognish</OutputControllerName>
    </LedStrip>
    <LedStrip>
        <Name>right speaker</Name>
        <Width>24</Width>
        <Height>1</Height>
        <LedStripArrangement>TopDownLeftRight</LedStripArrangement>
        <ColorOrder>RGB</ColorOrder>
        <FirstLedNumber>1</FirstLedNumber>
        <FadingCurveName>SwissLizardsLedCurve</FadingCurveName>
        <Brightness>100</Brightness>
        <OutputControllerName>Speakers</OutputControllerName>
    </LedStrip>
    <LedStrip>
        <Name>left speaker</Name>
        <Width>24</Width>
        <Height>1</Height>
        <LedStripArrangement>TopDownLeftRight</LedStripArrangement>
        <ColorOrder>RGB</ColorOrder>
        <FirstLedNumber>25</FirstLedNumber>
        <FadingCurveName>SwissLizardsLedCurve</FadingCurveName>
        <Brightness>100</Brightness>
        <OutputControllerName>Speakers</OutputControllerName>
    </LedStrip>
    <LedWizEquivalent>
      <Name>LedWizEquivalent 30</Name>
      <Outputs>
        <LedWizEquivalentOutput>
          <OutputName>left pf</OutputName>
          <LedWizEquivalentOutputNumber>1</LedWizEquivalentOutputNumber>
        </LedWizEquivalentOutput>
        <LedWizEquivalentOutput>
          <OutputName>right pf</OutputName>
          <LedWizEquivalentOutputNumber>4</LedWizEquivalentOutputNumber>
        </LedWizEquivalentOutput>
        <LedWizEquivalentOutput>
          <OutputName>under cab</OutputName>
          <LedWizEquivalentOutputNumber>7</LedWizEquivalentOutputNumber>
        </LedWizEquivalentOutput>
        <LedWizEquivalentOutput>
          <OutputName>left speaker</OutputName>
          <LedWizEquivalentOutputNumber>10</LedWizEquivalentOutputNumber>
        </LedWizEquivalentOutput>
        <LedWizEquivalentOutput>
          <OutputName>back</OutputName>
          <LedWizEquivalentOutputNumber>13</LedWizEquivalentOutputNumber>
        </LedWizEquivalentOutput>
        <LedWizEquivalentOutput>
          <OutputName>right speaker</OutputName>
          <LedWizEquivalentOutputNumber>16</LedWizEquivalentOutputNumber>
        </LedWizEquivalentOutput>
        <LedWizEquivalentOutput>
          <OutputName>topper</OutputName>
          <LedWizEquivalentOutputNumber>19</LedWizEquivalentOutputNumber>
        </LedWizEquivalentOutput>
        <LedWizEquivalentOutput>
          <OutputName>New adressable toy 0</OutputName>
          <LedWizEquivalentOutputNumber>22</LedWizEquivalentOutputNumber>
        </LedWizEquivalentOutput>
      </Outputs>
      <LedWizNumber>30</LedWizNumber>
    </LedWizEquivalent>
    <LedWizEquivalent>
        <Name>LedWizEquivalent 31</Name>
        <Outputs>
            <LedWizEquivalentOutput>
                <OutputName>right speaker</OutputName>
                <LedWizEquivalentOutputNumber>1</LedWizEquivalentOutputNumber>
            </LedWizEquivalentOutput>
            <LedWizEquivalentOutput>
                <OutputName>left speaker</OutputName>
                <LedWizEquivalentOutputNumber>4</LedWizEquivalentOutputNumber>
            </LedWizEquivalentOutput>
        </Outputs>
        <LedWizNumber>31</LedWizNumber>
    </LedWizEquivalent>
  </Toys>
</Cabinet>


#2 zebulon

zebulon

    Cantankerous old B****D

  • Platinum Supporter
  • 1,179 posts
  • Location:Whitby, Ontario, Canada

  • Flag: Canada

  • Favorite Pinball: xenon, Medieval Madness, Royal Flush, Silverball Mania

Posted 14 May 2023 - 05:07 AM

No idea why you would want a second controller when you could just add the speaker rings to the data out side of something like the playfield strips, increase the number of the playfield strip leds by 24 per strip and then create the ledstrip object for the speaker immediately after the ledstrip for the playfield strip.

 

<NumberOfLedsStrip1>124</NumberOfLedsStrip1>

 

 

<LedStrip>
<Name>left pf</Name>
<Width>1</Width>
<Height>100</Height>
<LedStripArrangement>BottomUpRightLeft</LedStripArrangement>
<ColorOrder>RGB</ColorOrder>
<FirstLedNumber>1</FirstLedNumber>
<FadingCurveName>SwissLizardsLedCurve</FadingCurveName>
<Brightness>100</Brightness>
<OutputControllerName>Boognish</OutputControllerName>
</LedStrip>

<LedStrip>
<Name>left speaker</Name>
<Width>1</Width>
<Height>24</Height>
<LedStripArrangement>BottomUpRightLeft</LedStripArrangement>
<ColorOrder>RGB</ColorOrder>
<FirstLedNumber>101</FirstLedNumber>
<FadingCurveName>SwissLizardsLedCurve</FadingCurveName>
<Brightness>100</Brightness>
<OutputControllerName>Boognish</OutputControllerName>
</LedStrip>


 ZB%20%20Storefront1%20.png               [email protected]

Don't pm or expect an answer from me here ... the links above are my contacts.

I know so much about so little that I could teach you all there is to know about nothing......


#3 boss32178

boss32178

    Neophyte

  • Members
  • Pip
  • 4 posts

  • Flag: United Kingdom

  • Favorite Pinball: N/A

  • PS3 Gamer Tag: boss32178
  • 360 Gamer Tag: boss32178

Posted 14 May 2023 - 04:21 PM

i know I am setting up special effect for my speakers. I have some custom LED effect for some games. Plus in the future i would like to add flipper button LED.



#4 zebulon

zebulon

    Cantankerous old B****D

  • Platinum Supporter
  • 1,179 posts
  • Location:Whitby, Ontario, Canada

  • Flag: Canada

  • Favorite Pinball: xenon, Medieval Madness, Royal Flush, Silverball Mania

Posted 15 May 2023 - 01:43 PM

I'm sure that you know this already but I'll post it here for posterity.

 

The 'serial' in serial addressable means that the leds follow the logical progression in the entire chain, not just the string.

 

Whether you have 1 string of 144 leds or 13 strings of 144 leds it's all the same result at the end.  When you break it up into chunks by using a multi-output board you are still assembling a chain of leds that starts at the very 1st led and ends at the very last.  All DOF does is manipulate the position of those chunks in the chain on the fly.  It send the strip ID (ledstrip1, ledstrip2, etc ... whatever you have assigned) along with the info for that chunk (light every other led in blue on ledstrip 3 for example) but at the end of the day it is still defining that position in the entire chain.

 

Since you can run thousands of leds in a single chain, I'm struggling to see why there would ever be a need for a second controller, but hey, it's not my cab and you do you.


 ZB%20%20Storefront1%20.png               [email protected]

Don't pm or expect an answer from me here ... the links above are my contacts.

I know so much about so little that I could teach you all there is to know about nothing......


#5 boss32178

boss32178

    Neophyte

  • Members
  • Pip
  • 4 posts

  • Flag: United Kingdom

  • Favorite Pinball: N/A

  • PS3 Gamer Tag: boss32178
  • 360 Gamer Tag: boss32178

Posted 15 May 2023 - 02:12 PM

I found what your talking about and If I cant find a way to install the 2nd controller I might have to give that a try but the LEDs I am use are very hard to solder on the leads and not all of my LEDs can. I don't believe I am able to do that.(not that good at soldering and wasted some LEDs already) Thank you for the help it did give me a back up plan. 







Also tagged with one or more of these keywords: led, wemos, dof