Preferred Matrix Board for CobraPin

132 views
Skip to first unread message

Bob P

unread,
Aug 11, 2023, 9:51:56 PM8/11/23
to MPF Users
Is there a board that most people use?
Where to get ? 
Hopefully available in Canada 
(or through Amazon or e-bay) 

Johan Gill

unread,
Aug 12, 2023, 2:21:53 AM8/12/23
to mpf-...@googlegroups.com
Cobra Amusements at pinside https://pinside.com/pinball/market/shops/1254-cobra-amusements, he ships internationally. If it's lamp matrix you are after, check out his xpansion board. I have it but haven't tried it with a lamp matrix, yet...


Cheers.

/Gill

--
You received this message because you are subscribed to the Google Groups "MPF Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpf-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mpf-users/a332efd5-4471-43c3-99ac-1bf0db02136en%40googlegroups.com.

Bob P

unread,
Aug 12, 2023, 4:10:47 PM8/12/23
to MPF Users
I don't see anything called a lamp matrix on the site.
Is this what I need for  more switches? 
I'm just trying to code eightball by Bally which is a simple game and I'm one switch short even without any lights yet which seems a bit odd 

Ralf G.

unread,
Aug 12, 2023, 4:32:22 PM8/12/23
to MPF Users
Bob,
are you looking for a switch matrix, or a lamp matrix? The former is already on the main Cobra board. If you are one switch short using direct switches, you may want to configure the Cobra to use a switch MATRIX rather than the direct switches.

Ralf

Johan Gill

unread,
Aug 12, 2023, 4:35:36 PM8/12/23
to mpf-...@googlegroups.com
I linked for the lamp matrix on Pinballmakers in last post. If you need more switch inputs either use a switch matrix on the Cobra pin mainboard or just get the satellite (or xpansion) board for more inputs.

/Gill

Bob P

unread,
Aug 12, 2023, 4:39:40 PM8/12/23
to MPF Users
the main cobra board just has the plugs. Don't I need an actual board?

Bob P

unread,
Aug 12, 2023, 4:42:25 PM8/12/23
to MPF Users
no lamp matrix comes up on that link

On Saturday, August 12, 2023 at 4:35:36 PM UTC-4 jo...@gill.nu wrote:

cobra18t

unread,
Aug 12, 2023, 8:19:46 PM8/12/23
to MPF Users
This link shows all the CobraPin products. The main link Gill sent sometimes doesn't show all the products since it is more of a shop highlight page:
https://pinside.com/pinball/market/shops/1254-cobra-amusements/all

The main CobraPin board can host an 8x8 switch matrix. https://pinside.com/pinball/market/shops/1254-cobra-amusements/05162-cobrapin-pinball-controller


You can use the two boards independent of each other--they are not required to be used together.

I am a bit low on main boards, Satellite, and Xpansion boards. I should be restocked in 1-2 weeks.

Bob Prince

unread,
Aug 12, 2023, 9:09:34 PM8/12/23
to mpf-...@googlegroups.com
i still don’t see any matrices on those links.

i know the main cobra board can host an 8x8 switch, that’s what i’m looking for and what my original post was asking where i can find one


On Aug 12, 2023, at 8:19 PM, cobra18t <tfule...@gmail.com> wrote:


You received this message because you are subscribed to a topic in the Google Groups "MPF Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mpf-users/yiuVyoooD3A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mpf-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mpf-users/8ff7175b-84ff-40cd-aba7-a66ed4fd8b2fn%40googlegroups.com.

cobra18t

unread,
Aug 12, 2023, 9:38:11 PM8/12/23
to MPF Users
Are you looking for a board with a matrix of switches on it? What is your use case?

Normally, people wire up their own switches since it is so dependent on your layout.

It seems like we have been answering how to host a matrix and you are asking for a matrix itself, which usually does not come in board form. Could you try asking a different way because I am honestly confused.

Since I am confused, I will also include this informational page on a switch matrix even though you probably know it: https://www.flippers.be/basics/101_switch_matrix.html

Todd Legere

unread,
Aug 13, 2023, 8:33:22 AM8/13/23
to MPF Users

Todd Legere

unread,
Aug 13, 2023, 8:39:35 AM8/13/23
to MPF Users
Bob,

A picture can be worth a thousand words. You mentioned running out of switches (Not exactly sure what you ment by that).
In the picture above you can see the 8x8 switch matrix (for 64 switches ) and 3 banks of additional switches. To run your playfield lights I typically remove them and replace them with Serial LEDs.

Let us know what you are trying to do and we can assist.

Bob P

unread,
Aug 13, 2023, 9:48:56 AM8/13/23
to MPF Users
Ok, let me start again.
I am trying to program a very simple game, 8 Ball by Bally.
I have the CobraPin main board but I have already used all the 20+ "direct switches" shown in the diagram and I'm one short, and still have lights to add.
I know I can add more "direct switches" using the 2 "Switch Matrix" connectors, or I can buy a satellite or an expansion board but my understanding is that I can also utilize something called a "Switch Matrix" (circled in red) that will give me (8x8) 64 additional switches.
Is this not a physical board of some sort? and my question is where can one purchase this? 
I want to use the "Switch Matrix" to address any possible future expansion possibilities.    

As for playfield lighting, my understanding is i can wire the original lights with "direct switches" or use programmable Serial LED's.
For the latter, can you use typical RGB strip led lights or do they have to be a specific type of led?  

Another thing I found odd is that the basic CobraPin board allows for 20+ coils. I find this odd as that would be a great deal.
It would have been far better to use that space on the board for more "direct switches.  




Capture.JPG

Johan Gill

unread,
Aug 13, 2023, 11:07:23 AM8/13/23
to mpf-...@googlegroups.com
Hi again. I would suggest that you read the cobra section at pinballmakers.com if you haven't. Heck, I read it probably >30 times myself. :D

If you already have the cobra board you can already use switch matrix, it's all about the wiring, it isn't a extra physical board. I believe Mr Cobra himself linked to a site explaining it. Think of it as a coordination system that's setup by your cables, 8 cables in rows and 8 cables in columns which gives 64 switch inputs.

If you can manage without a switch matrix you can use 38 direct switch inputs, easier and less cable management imho, also don't need to use diodes on switches, matrix switch is doable but imho it just complicate things if you really don't need it.


I'm not sure about your lamp question, I leave that to someone else. But I don't believe you can use your switch inputs for lamps, can't see how a switch input would be used as a lamp output.

You can't use "any" led strip if you want to control it.

""NeoPixel” is Adafruit's brand for individually-addressable RGB color pixels and strips based on the WS2812, WS2811 and SK6812 LED/drivers, using a single-wire control protocol." (Google answer). It's quite easy to wire in a series, I use a mixture of WS2811 and WS2812, they work great and are available on Amazon and a lot of other places.

Cheers.

/Gill


Bob P

unread,
Aug 13, 2023, 12:49:12 PM8/13/23
to MPF Users
I guess I'm not understanding what a Switch Matrix is. It sounds like its more like a wiring technique for multiple switches ?
Is there any pictures of a pinball machine using an SW? that might help.
I have read the articles but I don't seem to be getting it :(

Ernie Silverberg

unread,
Aug 13, 2023, 12:52:31 PM8/13/23
to mpf-...@googlegroups.com
How many more switch inputs do you need currently?

If you’re having trouble understanding the switch matrix, I would stick with direct switches like you’ve Already done. The remaining 1-0- inputs can be used like the 0-0- ones you used so far.

Use ws2812 leds for the remaining lights. Cobrapin sells some, Amazon has strings of pixels that can be used as well. These are wired serially and then coded in mpf.

Bob P

unread,
Aug 13, 2023, 3:50:41 PM8/13/23
to MPF Users
thanks everyone. 
sounds like better idea for me to use the remaining 1-0- inputs as direct switched. The SW sounds confusing. I guess I can always get a satellite or expansion board in the future if I need more switches
Thanks for the info on the lights too

Bob P

unread,
Aug 13, 2023, 8:46:10 PM8/13/23
to MPF Users
oh oh ....
having decided that it would be better to use the remaining 1-0- inputs as direct switches, i had ordered my Cobra board in the "standard no-glow" not the 
'direct" configuration. Is it still possible to use these 1-0-inputs as direct switches?

Ernie Silverberg

unread,
Aug 13, 2023, 8:47:34 PM8/13/23
to mpf-...@googlegroups.com
@cobra18t can send you a new stm32 that’s configured for direct. I think it’s like $8 + shipping. Super reasonable and should get you going.



Bob P

unread,
Aug 13, 2023, 8:55:07 PM8/13/23
to MPF Users
I found these files on github. Looks like firmware for the various configs.
I can't just change the one I have?Capture.JPG

Ernie Silverberg

unread,
Aug 13, 2023, 9:02:44 PM8/13/23
to mpf-...@googlegroups.com
They are but you have to have a special usb flasher to flash the firmware. Its a stm32 flashing device. 

Bob P

unread,
Aug 13, 2023, 9:12:37 PM8/13/23
to MPF Users
You're kidding? Special hardware required just to re-flash??? 
They have USB ports. Can't re-flash via those? 

cobra18t

unread,
Aug 13, 2023, 10:50:42 PM8/13/23
to MPF Users
I need to make a video explaining switch matrices for those who are unfamiliar. Going to only direct inputs is fine if you need 38 inputs or less. You are right, a switch matrix is a wiring technique that uses switches and diodes. The matrix is actively scanned by the host controller to determine which switches are active. It is attractive from a controller perspective since 16 I/O lines can read 64 switches.

You consider 24 outputs to be excessive, but many people would disagree. The current setup was designed to handle a WPC era complexity machine.

You need an STM32 flasher to flash new firmware, but you do not need any extra hardware to load a new OPP Config. Loading a new config is all you need to do to convert to all Direct inputs. There is info on Pinball Makers previously linked by Gill for loading the config through USB. It is a little convoluted which is why I try to do it for customers. You can do it though.

bobp...@rogers.com

unread,
Aug 14, 2023, 8:28:19 AM8/14/23
to mpf-...@googlegroups.com

OPP - Pinball Makers

Is it the section starting with “Check Processor Configurations” to do this?

 

 

 

 

 

From: mpf-...@googlegroups.com <mpf-...@googlegroups.com> On Behalf Of cobra18t
Sent: August 13, 2023 10:51 PM
To: MPF Users <mpf-...@googlegroups.com>
Subject: Re: [mpf-users] Preferred Matrix Board for CobraPin

 

I need to make a video explaining switch matrices for those who are unfamiliar. Going to only direct inputs is fine if you need 38 inputs or less. You are right, a switch matrix is a wiring technique that uses switches and diodes. The matrix is actively scanned by the host controller to determine which switches are active. It is attractive from a controller perspective since 16 I/O lines can read 64 switches.

 

You consider 24 outputs to be excessive, but many people would disagree. The current setup was designed to handle a WPC era complexity machine.

 

You need an STM32 flasher to flash new firmware, but you do not need any extra hardware to load a new OPP Config. Loading a new config is all you need to do to convert to all Direct inputs. There is info on Pinball Makers previously linked by Gill for loading the config through USB. It is a little convoluted which is why I try to do it for customers. You can do it though.

On Sunday, August 13, 2023 at 6:12:37 PM UTC-7 Bob P wrote:

You're kidding? Special hardware required just to re-flash??? 

They have USB ports. Can't re-flash via those? 

On Sunday, August 13, 2023 at 9:02:44 PM UTC-4 ernie.si...@gmail.com wrote:

They are but you have to have a special usb flasher to flash the firmware. Its a stm32 flashing device. 

 

On Sun, Aug 13, 2023 at 8:55 PM Bob P <bobp...@rogers.com> wrote:

I found these files on github. Looks like firmware for the various configs.

I can't just change the one I have?

 

 

 

 

--
You received this message because you are subscribed to a topic in the Google Groups "MPF Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mpf-users/yiuVyoooD3A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mpf-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mpf-users/129a2a60-ac2f-493a-88bb-aa664b996db7n%40googlegroups.com.

image001.png

Thomas Fulenwider

unread,
Aug 14, 2023, 10:20:55 AM8/14/23
to mpf-...@googlegroups.com
I would start on the CobraPin page:

More specifically, this section:

Again, you can skip the flashing steps and only do the config steps. One of the linked pages there might help:

bobp...@rogers.com

unread,
Aug 14, 2023, 12:52:53 PM8/14/23
to mpf-...@googlegroups.com

I f I read all that correctly, I only have to revise the config file on Board 1 from “Standard” to “Direct”. Board 0 can stay the same. Correct ?

Thomas Fulenwider

unread,
Aug 14, 2023, 1:11:07 PM8/14/23
to mpf-...@googlegroups.com
Yes, only Board 1 needs an updated config for Direct.

bobp...@rogers.com

unread,
Aug 14, 2023, 1:16:50 PM8/14/23
to mpf-...@googlegroups.com

Great!

Thanks a bunch!

I’ll have at it and hopefully it goes ok!

 

From: mpf-...@googlegroups.com <mpf-...@googlegroups.com> On Behalf Of Thomas Fulenwider
Sent: August 14, 2023 1:11 PM
To: mpf-...@googlegroups.com
Subject: Re: [mpf-users] Preferred Matrix Board for CobraPin

 

Yes, only Board 1 needs an updated config for Direct.

 

On Mon, Aug 14, 2023 at 9:52 AM <bobp...@rogers.com> wrote:

I f I read all that correctly, I only have to revise the config file on Board 1 from “Standard” to “Direct”. Board 0 can stay the same. Correct ?

 

 

From: mpf-...@googlegroups.com <mpf-...@googlegroups.com> On Behalf Of Thomas Fulenwider
Sent: August 14, 2023 10:21 AM
To: mpf-...@googlegroups.com
Subject: Re: [mpf-users] Preferred Matrix Board for CobraPin

 

I would start on the CobraPin page:

 

More specifically, this section:

 

Again, you can skip the flashing steps and only do the config steps. One of the linked pages there might help:

 

On Mon, Aug 14, 2023, 05:28 <bobp...@rogers.com> wrote:

OPP - Pinball Makers

Is it the section starting with “Check Processor Configurations” to do this?

 

 

 

 

 

bobp...@rogers.com

unread,
Aug 14, 2023, 2:33:04 PM8/14/23
to mpf-...@googlegroups.com

Ok I followed the instructions from here:

https://pinballmakers.com/wiki/index.php?title=Beginner%27s_Guide_to_STM32_flashing

 

Although I did have to install Python Version 2.7 first.

I installed it in a separate / different folder off the C:

 

Everything seemed to work ok configuring my Board 1, but when I go back to launch MPF I get this error message.

The Welcome slide comes up but not the game

Screenshot 2023-08-14 142551.jpg

Thomas Fulenwider

unread,
Aug 14, 2023, 3:24:40 PM8/14/23
to mpf-...@googlegroups.com
Can you run "mpf hardware scan" from your game folder with CobraPin plugged in and post the output or error?

Bob Prince

unread,
Aug 14, 2023, 3:34:36 PM8/14/23
to mpf-...@googlegroups.com
image0.jpeg

Sent from my iPhone

On Aug 14, 2023, at 3:24 PM, Thomas Fulenwider <tfule...@gmail.com> wrote:



cobra18t

unread,
Aug 14, 2023, 3:38:34 PM8/14/23
to MPF Users
What about the output of Gen2Test?

Bob Prince

unread,
Aug 14, 2023, 3:51:43 PM8/14/23
to mpf-...@googlegroups.com
image0.jpeg

Sent from my iPhone

On Aug 14, 2023, at 3:38 PM, cobra18t <tfule...@gmail.com> wrote:

What about the output of Gen2Test?

Thomas Fulenwider

unread,
Aug 14, 2023, 3:59:14 PM8/14/23