--- /dev/null
+#!/usr/bin/python3
+# Copyright 2025 by Bdale Garbee <bdale@gag.com>. GPLv3
+#
+# Program to emit PCB footprint for Samesky SJ-63033A 3-pin phone connector.
+#
+# the official footprint calls for 2.50 x 1.00 mm slots instead of holes for
+# the three 2.00mm flat through-hole tabs. Fake with round holes for now.
+
+# dimensions in mm
+Row2Spacing = 4.80
+Hole = 2.20
+Row1_Y = 5.00
+Row2_Y = 19.80
+
+Shell_Width = 18.0
+Shell_Height = 24.0
+
+# and a couple in 1/100 of a mil
+Clearance = 1200
+
+# we're going to use the 1/100 of a mil fundamental unit form
+def mm2mils100( mm ):
+ return int( mm / 25.4 * 1000.0 * 100.0 + 0.5 )
+
+print ('# author: Bdale Garbee')
+print ('# email: bdale@gag.com')
+print ('# dist-license: GPL 3')
+print ('# use-license: unlimited')
+
+print ('Element[0x0 "sj-63033a" "" "" 0 0 0 0 0 100 0x0]')
+print ("(")
+
+print (' Pin[', \
+ 0, \
+ mm2mils100(Row1_Y), \
+ mm2mils100(Hole*2),
+ Clearance,
+ mm2mils100(Hole*2) + Clearance,
+ mm2mils100(Hole), \
+ '"pin1" "1"', '0x0001', ']')
+
+print (' Pin[', \
+ mm2mils100(-Row2Spacing), \
+ mm2mils100(Row2_Y), \
+ mm2mils100(Hole*2),
+ Clearance,
+ mm2mils100(Hole*2) + Clearance,
+ mm2mils100(Hole), \
+ '"pin2" "2"', '0x0001', ']')
+
+print (' Pin[', \
+ mm2mils100(Row2Spacing), \
+ mm2mils100(Row2_Y), \
+ mm2mils100(Hole*2),
+ Clearance,
+ mm2mils100(Hole*2) + Clearance,
+ mm2mils100(Hole), \
+ '"pin3" "3"', '0x0001', ']')
+
+
+print(' ElementLine[',\
+ mm2mils100(-Shell_Width/2), \
+ 0, \
+ mm2mils100(Shell_Width/2), \
+ 0, \
+ '1000 ]')
+
+print(' ElementLine[',\
+ mm2mils100(-Shell_Width/2), \
+ mm2mils100(Shell_Height), \
+ mm2mils100(Shell_Width/2), \
+ mm2mils100(Shell_Height), \
+ '1000 ]')
+
+print(' ElementLine[',\
+ mm2mils100(Shell_Width/2), \
+ mm2mils100(0), \
+ mm2mils100(Shell_Width/2), \
+ mm2mils100(Shell_Height), \
+ '1000 ]')
+
+print(' ElementLine[',\
+ mm2mils100(-Shell_Width/2), \
+ mm2mils100(0), \
+ mm2mils100(-Shell_Width/2), \
+ mm2mils100(Shell_Height), \
+ '1000 ]')
+
+print (")")