Main > Main Forum

$2 USB Optical rotary upgrade for most joysticks

<< < (9/13) > >>

Le Chuck:
You wait until the part won't float or sink.  I'd say closer to 25% set.  As soon as possible.  Just with some of the cheaper resins, even tho they say they're self bonding, I still notice a faint join line.  The big pain in the ass is polishing off the sprue and mould seams at the end.  I used to have a good three part mold to do embeds but it is too small for this application.  I also don't know which resin would have the durability the trackball would need.  Most of the resins look great but won't stand up very long to that kind of use. 

griffindodd:
Ordered some resin and some ping pong balls, should be here in 2 days (I love Amazon Prime) the rotary encoders are already en-route, so first of all I have to figure out how to wire them
Outputs on the encoder...

Datasheet here

quote from a post on the sparkfun web site...


--- Quote ---The datasheet doesn’t say which pin goes to what, so here you go: The side with 3 pins is the rotary encoder output – central pin looks to be common. The easiest way to use this with an arduino is to connect common to ground, and then use the Arduino inputs in pull-up mode.

The LEDs and central button are interfaced using the side with 5 pins. With the shaft facing away from you, looking at the bottom of the device, with the 5-pin side on the top and 3-pin side on the bottom, the pins are: Common (+5v), Blue, Button, Green, Red. Pressing the shaft button shorts the +5v common and the center pin. There are no internal resistors, so be sure to use one on each of the 3 LED pins. Use a 120ohm (or higher) resistor on the red, and a 68ohm (or higher) resistor on the other two, if you’re using 5v.
--- End quote ---

Looks like a will need a U-HID nano or A-PAC

- U-HID Analog  ---------------------------- Pin B   
- U-HID +5V     ---------------------------- Pin A
- U-HID -5V   ---------------------------- Pin C

On Pac64
- +5V   ---------------------------- Pin 5
- BLUE   ---------------------------- Pin 4
- GREEN   ---------------------------- Pin 2
- RED   ---------------------------- Pin 1

On iPac (If you want to use the button)
- Button   ---------------------------- Pin 3

Pressing the button shorts pin 3 to pin 5

pinballjim:
All I know is I want a Dia de los Muertos trackball.   :P  I can buy the ceramic skulls for a couple of bucks each and they're just about the perfect size.

Gray_Area:

--- Quote from: pinballjim on September 11, 2012, 09:03:39 pm ---Here I was about to object and you covered it in the last ten seconds.


Brilliant.

--- End quote ---

Yah, I was waiting for that part, too, although then I noticed I had overlooked the obvious.


The embedded idea is cool, though not everybody is going to want to replace their shafts.

The miniaturation happening is making this look better and better.

BadMouth:
A-Pac is for potentiometer based controls.

A U-hid or U-hid nano can be configured to work.
An Opti-Pac or Opti-Wiz(groovygamegear) are made specifically for optical encoders.

An old roller ball mouse hack is the other option.
Not sure if the low resolution of this encoder would be an issue.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version