| Electronics > Beginners |
| Wiring a DP3T switch for Foward-Brake-Reverse Function |
| (1/2) > >> |
| TonyBarr:
I would like to wire a DP3T switch that I have (NKK M2046SS1W01) to provide forward - brake - reverse functionality. I can't figure it out. I do understand how to use this switch to reverse the polarity for the forward and reverse positions, but I'm really struggling to figure out how to short the motor terminals for braking. Please help! Thanks. Tony |
| Nominal Animal:
Your switch has 12 pins. Looking at the bottom, they are numbered 12 9 6 3 11 8 5 2 10 7 4 1 Up position connects 2-1, 5-4, 8-7, 11-10 Center position connects 2-3, 5-4, 8-9, 11-10 Down position connects 2-3, 5-6, 8-9, 11-12 If you connect pins 3 and 5 with a link, and pins 9 and 11 with another link, then: Up position connects 2-1, 8-7 Center position connects 2-4, 8-10 Down position connects 2-6, 8-12 So, let's say your motor is connected to pins 2 and 8. In the up position, the motor is connected to pins 1 and 7. So, you put + on pin 1, and - on pin 7. In the down position, the motor is connected to pins 6 and 12. So, you put - on pin 6, and + on pin 12. In the center position, the motor is connected to pins 4 and 10. So, you connect these together, to short the motor, but not the supply. What we do not know yet, is whether these connections can cause the supply to be shorted, momentarily, because we do not know if 8-7 breaks before 8-10 makes, and similarly for the three other pairs. The datasheet does not say. This means, I am not sure if this is safe. If this were safe, then the connections would be 1: + 2: Motor A 3: Linked to pin 5 4: Linked to pin 10 5: Linked to pin 3 6: - 7: - 8: Motor B 9: Linked to pin 11 10: Linked to pin 4 11: Linked to pin 9 12: + |
| tooki:
I don’t think it’s common for toggle switches to be make-before-break, which would explain that not being mentioned on the datasheet. In any case, for this particular application, I think I figured out a way to make the wiring simpler using just half the switch (or allowing the use of the physically smaller SP3T version of the switch), based on the switch's behavior and a standard direction reverser setup: 1: V- and link to 6 2: Motor A 3: link to 4 4: V+ and link to 3 5: Motor B 6: link to 1 In the up position, this results in V- going from 1 to 2, so V- on motor A, and V+ from 4 to 5, so V+ on motor B. In the down position, this results in V- going from 1 to 6 to 5, so V- on motor B, and V+ from 4 to 3 to 2, so V+ on motor A. In the center position, this results in V- going nowhere (from 1 to 6, which is open) and V+ connecting to both motor A and B, shorting them out (4 to 5, and 4 to 3 to 2). Since this switch doesn’t have a multi-position slider, but is actually basically a bunch of single-pole ON-ON-OFF toggles, I think it’s safe to assume that each individual pole can’t make before breaking. When used as a true 3-way, you’re right that it’s behavior is undefined. But when used as above, I don’t think there’s any way for an unwanted short to happen, because each pole’s “preferred” position is the one that creates the braking short desired in the center position. |
| rstofer:
As to braking, sometimes a 'short' is too abrupt. You might want to consider a low value braking resistor. Calculating value and wattage is discussed here: https://www.cressall.com/dynamic-braking/calculating-resistor-sizes/ |
| Nominal Animal:
--- Quote from: tooki on November 19, 2019, 12:03:47 pm ---I don’t think it’s common for toggle switches to be make-before-break, which would explain that not being mentioned on the datasheet. --- End quote --- I honestly just don't know; I do have some cheap ones that are make-before-break. Many rotary switches vary and say which one they are in the datasheets, though. (Probably different construction than toggle/slide switches.) My intent was not to show an optimal configuration, but to show how one would work through it. (I've never had that problem in real life either, so I literally did it step-by-step like I explained.) --- Quote from: tooki on November 19, 2019, 12:03:47 pm ---In any case, for this particular application, I think I figured out a way to make the wiring simpler using just half the switch (or allowing the use of the physically smaller SP3T version of the switch), based on the switch's behavior and a standard direction reverser setup: --- End quote --- Yes! For any SP3T switch that is break-before-make, with the same pin configuration, that works. Here's how to check: In the center position, we have 2-3 and 5-4. So, the connections are -: 1,6 +: 2,3,4,5 (A,B) I.e., both motor A and B are connected to +, thus shorted out. Good. In the up position, we have 2-1 and 5-4. So, the connections are -: 1,2,6 (A) +: 3,4,5 (B) I.e., A- and B+. Good. In the down position, we have 2-3 and 5-6. So, the connections are -: 1,5,6 (B) +: 2,3,4 (A) I.e., A+ and B-. Good. So, this would work, assuming shorting the motor leads isn't too hard on the motor. --- Quote from: rstofer on November 19, 2019, 04:45:33 pm ---As to braking, sometimes a 'short' is too abrupt. You might want to consider a low value braking resistor. --- End quote --- Good point. In my original suggestion, the braking resistor would replace the link between 4 and 10. In Tooki's suggestion, the only place it could be put is between 3 and 4. However, we would then need to limit + to one of them, otherwise the braking resistor would be useless (bypassed by the link to +). Which one? In the up position, 4 is connected to 5 (B), and in the down position, 3 is connected to 2 (A). So, whichever we choose, in the other case the + would pass through the braking resistor. So, Tooki's suggestion does not really work if a braking resistor is also needed. I wrote a quick hack to brute-force search for the possible pin configurations with zero to two hard links, and it finds Tooki's suggestion as the only possible solution for SP3T switches with the aforementioned configuration, except for symmetries like swapping A and B, and + and -. It seems there are none for SP3T with a braking resistor, without having the motor current pass through the braking resistor in either up or down position. |
| Navigation |
| Message Index |
| Next page |