ruffrecords
Well-known member
I am trying to position some ALPS push button switches on a PCB so the key cap protrudes the right amount through the front panel but the mecahnical drawings are some convoluted it is driving me bonkers trying to work it out. Here's the switch:
http://uk.farnell.com/alps/spuj190900/switch-2pole-latching/dp/1123857
and its data sheet:
http://www.farnell.com/datasheets/85579.pdf
So I know the distance from the front most pin (my zero reference for the PCB footprint) to the front of the switch is 7mm and from there to the front of the plunger is 9.8mm, a total of 16.8mm. From there you need to go back 4mm I think to get to the face of the knob (key cap) (which is actually the back of the cap not the front face). So the back side of the key cap is 12.8mm from pin 1.
Now it looks like the shaft size is 2.8mm (that's the width of the plunger that the key cap fits onto) so I need to use the mini key caps like this one:
http://uk.farnell.com/alps/pb0151000g/cap-mini-grey/dp/1123891
and its data sheet is here:
http://www.farnell.com/datasheets/301064.pdf
where is says it is for shaft size 2.8mm. This key cap is 11.2mm high so the font/top of the key cap is 11.2 + 12.8 = 24mm from pin 1. The switch data sheet says the difference between the switch latched and unlatched is 2mm but it goes in 3mm before returning so I need to allow for 3mm of travel. So lets make the key cap stick out 5mm when unlatched. The front panel is 2mm thick and there is a 2mm gap between the front face of the PCB and the rear face of the front panel so the PCB front is 2 + 2 + 5mm = 9mm back from the front of the key cap. Since pin1 is 24mm from the front of the key cap then pin 1 must be set at 24 - 9mm = 15mm back from the edge of the PCB.
It has taken me all day staring at data sheets and drawing sketches to work that out. Can someone please check my figures before I commit this to a PCB.
Going for a lie down now.
Cheers
Ian
http://uk.farnell.com/alps/spuj190900/switch-2pole-latching/dp/1123857
and its data sheet:
http://www.farnell.com/datasheets/85579.pdf
So I know the distance from the front most pin (my zero reference for the PCB footprint) to the front of the switch is 7mm and from there to the front of the plunger is 9.8mm, a total of 16.8mm. From there you need to go back 4mm I think to get to the face of the knob (key cap) (which is actually the back of the cap not the front face). So the back side of the key cap is 12.8mm from pin 1.
Now it looks like the shaft size is 2.8mm (that's the width of the plunger that the key cap fits onto) so I need to use the mini key caps like this one:
http://uk.farnell.com/alps/pb0151000g/cap-mini-grey/dp/1123891
and its data sheet is here:
http://www.farnell.com/datasheets/301064.pdf
where is says it is for shaft size 2.8mm. This key cap is 11.2mm high so the font/top of the key cap is 11.2 + 12.8 = 24mm from pin 1. The switch data sheet says the difference between the switch latched and unlatched is 2mm but it goes in 3mm before returning so I need to allow for 3mm of travel. So lets make the key cap stick out 5mm when unlatched. The front panel is 2mm thick and there is a 2mm gap between the front face of the PCB and the rear face of the front panel so the PCB front is 2 + 2 + 5mm = 9mm back from the front of the key cap. Since pin1 is 24mm from the front of the key cap then pin 1 must be set at 24 - 9mm = 15mm back from the edge of the PCB.
It has taken me all day staring at data sheets and drawing sketches to work that out. Can someone please check my figures before I commit this to a PCB.
Going for a lie down now.
Cheers
Ian