Numbered Coins
thingiverse
This is a small collection of numbered coins I created to explore some of the features of OpenSCAD. I used the following code to generate them. The code uses variables, modules, loops, and printed text so it's a good example to learn some basics. ``` // see the ascii table chars=[for(i = [48:57]) i]; // numbers //chars=[42,43,45,47,61]; // math operators offset = 25; coinRadius=10; coinHeight=5; numCols=8; textSize=15; /* Basic ASCII 33 ! 55 7 77 M 99 c 34 " 56 8 78 N 100 d 35 # 57 9 79 O 101 e 36 $ 58 : 80 P 102 f 37 % 59 ; 81 Q 103 g 38 & 60 < 82 R 104 h 39 ' 61 = 83 S 105 i 40 ( 62 > 84 T 106 j 41 ) 63 ? 85 U 107 k 42 * 64 @ 86 V 108 l 43 + 65 A 87 W 109 m 44 , 66 B 88 X 110 n 45 - 67 C 89 Y 111 o 46 . 68 D 90 Z 112 p 47 / 69 E 91 [ 113 q 48 0 70 F 92 \ 114 r 49 1 71 G 93 ] 115 s 50 2 72 H 94 ^ 116 t 51 3 74 I 95 _ 117 u 52 4 75 K 96 ` 118 v 53 5 76 L 97 a 119 w 54 6 78 M 98 b 120 x 121 y 122 z */ /*Extended: 160 184 ¸ 207 Ï 230 æ 161 ¡ 185 ¹ 208 Ð 231 ç 162 ¢ 186 º 209 Ñ 232 è 163 £ 187 » 210 Ò 233 é 164 ¤ 188 ¼ 211 Ó 234 ê 165 ¥ 189 ½ 212 Ô 235 ë 166 ¦ 190 ¾ 213 Õ 236 ì 167 § 191 ¿ 214 Ö 237 í 168 ¨ 192 À 215 × 238 î 169 © 193 Á 216 Ø 239 ï 170 ª 194 Â 217 Ù 240 ð 171 « 195 Ã 218 Ú 241 ñ 172 ¬ 196 Ä 219 Û 242 ò 173 197 Å 220 Ü 243 ó 174 ® 198 Æ 221 Ý 244 ô 175 ¯ 199 Ç 222 Þ 245 õ 176 ° 200 È 223 ß 246 ö 177 ± 201 É 224 à 247 ÷ 178 ² 202 Ê 225 á 248 ø 179 ´ 203 Ì 226 ä 249 ù 180 µ 204 Í 227 ã 250 ú 181 ¶ 205 Î 228 å 251 û 182 · 252 ü 253 ý 254 þ 255 ÿ */ generateCoins2(chars); module generateCoins2(coinchars) { for(i = [0:len(coinchars)-1]) { row = floor(i / numCols); translate([offset*(i%numCols), row*offset, 0]) { coin(chars[i], coinRadius); } } } module coin( value, radius ) { difference() { cylinder(h=coinHeight, r=radius); translate([0,0,4]) { linear_extrude(height=2) { text(text=chr(value), size=textSize, halign="center", valign="center"); } } } } ```
With this file you will be able to print Numbered Coins with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Numbered Coins.