Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: rotary encoder Ipac2  (Read 1779 times)

0 Members and 1 Guest are viewing this topic.

quakebo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 67
  • Last login:January 30, 2023, 02:13:01 pm
  • I want to build my own arcade controls!
rotary encoder Ipac2
« on: June 16, 2019, 07:16:39 am »
Will a rotary encoder work with an Ipac 2.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9402
  • Last login:Today at 07:12:27 pm
  • Designated spam hunter
Re: rotary encoder Ipac2
« Reply #1 on: June 16, 2019, 05:08:57 pm »
Will a rotary encoder work with an Ipac 2.
To be clear, you're talking about one of these, right?



The one I ordered from Amazon works well with StefanBurger's Illuminated Spinner firmware on an Arduino.   ;D

It should work fine with the optical input pins on the IPac 2 (2015 or newer) as long as you don't hook the wires up wrong.
- IIRC accidently connecting 5v to a data line will damage the encoder.

On the other hand, n3wt0n mentioned here that the ones he ordered on e-bay didn't work.   :dunno


Scott

quakebo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 67
  • Last login:January 30, 2023, 02:13:01 pm
  • I want to build my own arcade controls!
« Last Edit: June 17, 2019, 01:37:48 pm by quakebo »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19400
  • Last login:April 21, 2024, 11:59:54 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: rotary encoder Ipac2
« Reply #3 on: June 17, 2019, 01:04:03 pm »
Your link is foobared, we can't reach the page. 

quakebo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 67
  • Last login:January 30, 2023, 02:13:01 pm
  • I want to build my own arcade controls!
Re: rotary encoder Ipac2
« Reply #4 on: June 17, 2019, 01:39:00 pm »
if you right click the link and open in new tab it works.

meyer980

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 385
  • Last login:March 29, 2024, 04:00:11 pm
  • Building fun things for fun
    • sergiostuff.com/2020/04/15/felix-son-arcade-game/
    • Sergio Stuff
Re: rotary encoder Ipac2
« Reply #5 on: June 17, 2019, 02:51:56 pm »
I've used the KY-040 rotary encoder with the mini-pac which is quite similar to the one you linked. So, I would think it should work.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9402
  • Last login:Today at 07:12:27 pm
  • Designated spam hunter
Re: rotary encoder Ipac2
« Reply #6 on: June 17, 2019, 07:24:15 pm »
What size is your project and how are you planning on using this encoder?
- EC11's are low resolution (24 transitions per rotation IIRC) so they are really not a good choice for an arcade spinner.
- One application where an EC11 might make sense is in a micro-cab where there isn't room for a normal rotary encoder.



If you're looking for a full-size spinner with a small/shallow footprint, check out GGG's TurboTwist Sci-Winder.


Scott

quakebo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 67
  • Last login:January 30, 2023, 02:13:01 pm
  • I want to build my own arcade controls!
Re: rotary encoder Ipac2
« Reply #7 on: June 17, 2019, 07:36:02 pm »
I will be using them on a button box for sim racing.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9402
  • Last login:Today at 07:12:27 pm
  • Designated spam hunter
Re: rotary encoder Ipac2
« Reply #8 on: June 17, 2019, 08:00:24 pm »
I will be using them on a button box for sim racing.
EC11's should work fine for that application.

How many axes will you need?

If you need more than 2 (X-axis and Y-axis) you'll probably need another optical (mouse) encoder.


Scott

quakebo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 67
  • Last login:January 30, 2023, 02:13:01 pm
  • I want to build my own arcade controls!
Re: rotary encoder Ipac2
« Reply #9 on: June 18, 2019, 07:00:11 am »
My plan was to use 4 EC11S.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9402
  • Last login:Today at 07:12:27 pm
  • Designated spam hunter
Re: rotary encoder Ipac2
« Reply #10 on: June 18, 2019, 08:16:26 am »
My plan was to use 4 EC11S.
OK.

First two EC11's on X-axis and Y-axis via the IPac's trackball pins -- no problem.   ;D

You'll need another optical (mouse) encoder for the other two axes because the IPac's normal button inputs (apply ground to the input ==> IPac outputs a keystroke) won't translate the EC11's output quadrature waveforms into mouse axis movements.



An Ultimarc U-HID Nano or an Arduino Pro Micro with a slightly-modified (i.e. not using X- or Y-axis) mouse sketch/firmware should be able to translate EC11's three and four into mouse axis movements for your racing sim.   :cheers:

Depending on how inputs are handled by the sim, Z-axis (scroll wheel) can cause the 4:1 problem in Windows.
- Instead of outputting 1 step per transition, Windows outputs 4 steps per Z-axis (scroll wheel) transition.

If possible, use X-Ro (X-Rotation) and Y-Ro (Y-Rotation) axes for three and four.


Scott

quakebo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 67
  • Last login:January 30, 2023, 02:13:01 pm
  • I want to build my own arcade controls!
Re: rotary encoder Ipac2
« Reply #11 on: June 18, 2019, 12:55:39 pm »
Thanks for that.  now I already have a Arduino Pro Micro I was going to use but wanted to know if a Ipac2 would work.