Main > Everything Else
Online electronics parts store?
<< < (6/12) > >>
Howard_Casto:
I'm going to try and support both methods... just so we have options.  I might go ahead and get some 12 position switches as well as the rotary encoders... might as well support it all.  :)

Yeah I looked into the few games that used the optical sticks and, in mame at least, the regular 12 pos sticks should work ok the way things are hooked up(with more limited resolution of course) but it seems like things would be awkward the other way around.   I think there's an ikari clone and two kinda crappy football games or something like that.
PL1:

--- Quote from: Howard_Casto on July 02, 2019, 12:16:06 am ---I think there's an ikari clone and two kinda crappy football games or something like that.

--- End quote ---
Considering the game list, current optical rotary sticks are usually not worth the cost.

Optical Rotary Joystick Games (Loop-24 or Happ Optical Rotary Sticks)
    Caliber .50
    Exterminator
    Touchdown Fever
    Touchdown Fever II

Not sure if it would throw off gameplay in the mechanical rotary games, but you might also want to try the 12 PPR, 24 detent version here of the 12 PPR, 12 detent encoder you mentioned above.

With the right rotary encoder outputs and MAME settings, it could support both optical and mechanical rotary games.

The downside is that mechanical rotary games would either have double the sensitivity or require two clicks per step.


Scott
PL1:

--- Quote from: PL1 on July 01, 2019, 11:58:08 pm ---The good news is that the Data East handle should be easy to model, assuming I can get/guess the measurements and figure out how to round the upper and lower edge of a cylinder.

--- End quote ---
The rounded cylinder code is easier than expected -- 7 lines to minkowski sum a cylinder and a sphere vs. 100 lines to generate the 32 spheres that define the boundaries of the octagonal handle hull.   ;D


--- Code: ---$fn=180;
minkowski()
{
  cylinder(d=40,h=55);
  translate ([0, 0, 3])
  sphere(r=3);
}
--- End code ---

Animation showing the minkowski sum of a triangular shape and sphere.


Most of the remaining handle code is either plug-and-play reusable or not needed.   ;D


Scott
Howard_Casto:
Nice work man.  So the logo image... do you need vector or just a really big raster?  I used to be pretty good at flattening out and removing distortion from pics in my 3DArcade days.... that pic you included should be good enough to recreate the design. 
PL1:

--- Quote from: Howard_Casto on July 03, 2019, 01:42:59 am ---Nice work man.  So the logo image... do you need vector or just a really big raster?  I used to be pretty good at flattening out and removing distortion from pics in my 3DArcade days.... that pic you included should be good enough to recreate the design.

--- End quote ---
Great!  Either format should work.   ;D

If possible, put the logo and arrow in black on a square white background the same height/width as the removable cap.  (no circle)

The LS-30 SNK logo was made from a 666x555 px PNG that was imported, vectorized and exported as a DXF using this Inkscape plugin and this workflow procedure.


--- Code: ---Convert an image to DXF for OpenSCAD

1. Prep the image in MSPaint.

2. Open Inkscape.

3. File -- Document Properties (Shift+Ctrl+D)
==> Set document size, units = mm

4. View -- Zoom -- Page

5. File -- Import
==> Import image into inkscape

6. Select image (resizing arrows visible)

7. Path -- Trace Bitmap (Shift+Alt+B)
Adjust settings.  When preview looks good, click OK then close the "Trace Bitmap" window.

8. Select then delete the original image, leaving the traced path.

9. Clean up the path as desired.

10. Position and scale image
(Ctrl+Click+Drag Corner to maintain ratio _or_ enter the position/size info via the Inkscape toolbar)

11. Select everything (Ctrl+A) and ungroup all groups. (Ctrl+Shift+G)

12. Path -- Object to path (Ctrl+Shift+C)
==> Converts everything into paths.

13. Ungroup all groups again. (Ctrl+Shift+G)

14. Path -- Union

15. Open the layer window (Ctrl+Shift+L), create new layer, name the new layer. i.e. Layername

16. Cut/paste the paths onto the new layer.

17. Delete the old layer.

18. File -- Save

19. File -- Save as and select “OpenSCAD DXF Output” as the file type.

20. SCAD code
translate([X, Y, Z])
linear_extrude(height = 2, convexity = 10)
import(file = "Filename.dxf", layer="Layername");

NOTE: Filename (Filename.dxf) and layer (Layername) are case sensitive.

--- End code ---

Files are coming along quickly:
- Test Print (shaft diameter) - Done
- Test Print 2 (hex locknut) - Done
- Handle - Get handle/panel-clearance measurements, add comments, and set variables
- Eject pins - Set PinHeight variable
- Handle top - Update logo code and set TopDiameter variable
- Diagram - Label handle/panel-clearance measurements
- DE_Logo.svg (Inkscape) - Awaiting logo
- DE_Logo.dxf (Inkscape) - Awaiting logo


Scott
Navigation
Message Index
Next page
Previous page

Go to full version