Manuals
Master of Mosfets Documentation

Master of Mosfets Documentation

CREDITS AND ACKNOWLEDGMENTS

Cette image a un attribut alt vide ; le nom du fichier est extension-16-pwm-e1572454095758.jpg

Writing + creation: Arnoz

Based on the work of MJR: http://mjrnet.org/pinscape/

Please do not copy or publish this document without the prior permission of the author.

PRESENTATION OF THE CARD:

          a – MASTER of MOSFETS

Cette image a un attribut alt vide ; le nom du fichier est extension-16-pwm-1-2-e1572453298540.jpg

This card is wired on a KL25Z under Pinscape. It uses 4 digital outputs and 1 PWM output, as well as a 5V and a common ground for the KL25Z.

It allows 16 PWM outputs to be added to the KL25Z, and the boards can be connected one after the other to add as many PWM outputs as you want, using only the 5 cables on the KL25Z.

Each output passes through an optocoupler to properly separate the electrical signals, in a MOSFET and in a 5 * 20 format fuse holder.
Each track is calculated to pass 8 amps, and it is not recommended to exceed 40 amps at the same time all cumulative outputs.

TOYS can be controlled as an output from 0 to 48V. Orders are made through the negative terminal of the toys, the positive side of the latter will be connected to the positive terminal of the power supply dedicated to toys.

As the card is controlled using 7 signal wires, it is interesting to note that the extension card can be moved away from the KL25Z to the other end of the Pincab with its dedicated power supply. thanks to only 7 small cables, and thus reduce the power cable lengths and group it all together wherever you want, and even in several strategic places in your Pincab, because it is the same for the link between 2 expansion cards.

It has 16 in-line outputs (2 * 8) on socket numbered from 1 to 16.

1 – INSTALLING THE BOARDS:

          a – Card wiring

Above all, this card manages ONLY THE DIRECT CURRENT, do not connect any AC voltage on it, never, even under threat!)

Always wire de-energized, once the wiring is done, check it carefully for the first time, take a break for a few minutes, and recheck your wiring. The first cause of error remains humans!

All voltages given in this document are direct current DC

Let’s start with the expansion card.

This has several connectors.
(Sortie means output !)

Cette image a un attribut alt vide ; le nom du fichier est emplacement-cablage-extension-1024x798.png

The Data in (7 pins socket) is where we make the connection to the KL25Z

The Data out (7-pin socket) which allows you to connect the following expansion card if you want to add more

The Alim 12V (3 pins) that we must connect to the + 12V and to the GND of the toys power supply

The PWM Out outputs (2 x 8 pins sockets) where we will connect the negative terminal of our toys.

          DATA IN

For the Data in part, I chose 5 outputs on the KL25Z, but once this manual is finished, you can modify the configuration to wire the card to other outputs.

As for + 5V and GND, you can either take them from the power supply of the PC where your KL25Z is connected, or directly from the KL25Z (the second choice is preferable in my opinion)

For simplicity, I invite you to use my KL SHIELD where all the connections are marked for the use of the Master of Mosfets.

GSCLK → PTA13 (one PWM output)
SCLK → PTC5                (SPI SCLK PTC5 ou PTD1)
Sin → PTC6                 (SPI MOSI   PTC6 ou PTD2)
XLAT → PTC10 (one digital output)
BLANK → PTC11 (one digital output)
+5V KL → P5V_USB       (5V KL)
GND KL → GND             (GND KL)

          DATA OUT

If you have an expansion card following this one, you connect the 2 cards together simply like this:

GSCLK → GSCLK
SCLK → SCLK
Sout → Sin
XLAT → XLAT
BLANK → BLANK
+5V KL → +5V KL
GND KL → GND KL



          ALIM TOYS

Please just connect + 12V and GND to your 12V Toys power supply

Warning !

The cable that will supply the GND terminals will withstand all the intensity of the Toys (it is through which the current passes from ALL the toys)
Make sure that it is of sufficient section, and if you consume more than 20 simultaneous amps, you must double it on the connections.

          PWM OUT

Please connect each of the 16 outputs to the negative terminal of your toy, the positive terminal of the toy will be connected to the positive terminal of its power supply.

You will equip each fuse holder with a fuse corresponding to the consumption of the toy which is connected to it. Attention, an unsuitable fuse is useless!

The card being given for 8 amps per output, never put a fuse higher than 8 amps!

Connect the GND terminals of your Toys power supplies (only those of the toys, do not connect with the GND of the KL25Z or the PC)

Cette image a un attribut alt vide ; le nom du fichier est schema-KL-Extension-1024x724.png

Remember to put a suitable fuse on each fuse holder.

An unsuitable fuse is as if no protection was put on, too small it will blow immediately, too large it will never blow and therefore is useless.

To choose the appropriate fuse, you must know the toy’s consumption in amperes, either by documenting it or by measuring it, then put a fuse a bit above the toy’s consumption. If my toys consume 1.2 amps, I put a 1.5 amps MAX fuse

IN ANY CASE, no fuse should be higher than 8 amps!

At the end of this document you will find several wiring diagrams corresponding to the majority of situations, wiring of various LEDs, 12V RGB LEDs and 12V RGB strips, classic RGB LEDs, contactors (always with their anti-return diode !!! !) or solenoid, knocker and other shaker and various motors or bells.

          b – Software part

Now let’s look at the programming side of the card.

First, your KL25Z must be flashed with the latest Firmware (0605 version of 05/03/2019 minimum) and you must have installed at least DirectOutput V3.1.7011.27968 built 2019.03.13.

More info on this link:http://mjrnet.org/pinscape/BuildGuideV2/BuildGuide.php?custom=EU&expver=R3.201602xx&sid=DOF

So that your KL25Z can use these outputs, you must already declare it and configure it in the Pinscape Config Tool, this will also allow you to know where to connect the wires to the KL.

Launch the Pinscape config tool

go to SETUP as if to configure your KL, by going down a little you will find TLC5940 Setup, in « Number of TCL » enter the number of expansion cards that you connect to the KL (in my case I connect 2 cards of extension), then choose the pins to be connected to the various inputs of the expansion card, First choose the same pins as me, later if you wish you can change the configuration as you see fit.

The « SI Output » will be connected to the SIn on the expansion card (Signal OUTPUT which is plugged into Signal INPUT)

The rest is the same denomination.

If you add one or more expansion cards, and you just change the number of TLCs, the rest of the config does not move.

Then go to the part where we configure the outputs, and the, Oh surprise, a new item is available in the menu on the right (TLC5940 OUT), click on it, you will see your new outputs appear. If you have several cards, you will have as many « chips » available.

Cette image a un attribut alt vide ; le nom du fichier est config-pinscape-3-1024x569.png

If you ever see a red exclamation mark next to an output, you have assigned it to two different places, please correct that otherwise it will not work.

Assign these outputs to your toys, you do it for the outputs of the KL25Z in usual time. As you can see below, we can have more than 32 outputs, and we can wire the outputs in any order that suits us.

Cette image a un attribut alt vide ; le nom du fichier est config-pinscape-2-804x1024.png

Note which toy corresponds to each output, save all this by clicking on « PROGRAM KL25Z » at the bottom, make a backup of the config, then go to do your DOF and download the Directoutput config files.

To use more than 32 outputs with our setup, we are no longer going to declare a KL25Z
in the « account » part of the DOF CONFIG TOOL, but a Pinscape Device (in absolute terms, the KL25 runs under PINSCAPE, we should always declare as this)
And there we end up with 128 outputs available in the “Port Assignments” section.

Of course, if you only have one card, you can use the 16 outputs of the latter plus the outputs of the KL (digital or other PWM). Fill in the toys according to their outputs declared in Pinscape config tool.

Cette image a un attribut alt vide ; le nom du fichier est DOF-2.png
Cette image a un attribut alt vide ; le nom du fichier est DOF-1-1-993x1024.png

Advantage of PWM outputs to manage contactors, shakers, and other LEDs …

Using PWM outputs on our toys has an advantage, we can from the DOF vary the maximum voltages that we apply to our toys, this allows for example if the LEDs on your backboard are too powerful to limit them in a software way ( without having to go tinker with the power supply to lower its voltage), to make the contactors or solenoids sound differently by feeding them a little less, to limit the maximum speed of a shaker

Cette image a un attribut alt vide ; le nom du fichier est DOF-4.png

All this happens in the DOF config tool, in the window where you assign your toys, on the right there is this

SHAKER MOTOR is used to manage the minimum and maximum speed of the shaker, enter a value in min and max to define them.

FAN allows the same, but for the fan.

Custom Brightness is used to manage the maximum level of the lights, similarly we enter here the desired maximum value for the Strobe, the PF Strob MX (strob on addressable led teensy / wemos), the flashers (the RGB LEDs on the backboard) and Ledstrip Flasher ( the RGB strips undercab and behind the backglass)

3 – SCHÉMAS ET EXEMPLES DE CÂBLAGE

Voici des exemples de câblage avec une extension 16 PWM, mais le principe reste absolument le meme.

0

Laisser un commentaire

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur la façon dont les données de vos commentaires sont traitées.