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: Pololu 18v7 issue commands?  (Read 5219 times)

0 Members and 1 Guest are viewing this topic.

Connorsdad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 268
  • Last login:December 22, 2018, 05:56:03 pm
  • I want to build my own arcade controls!
Pololu 18v7 issue commands?
« on: April 02, 2013, 06:28:16 pm »
So I got my motor and pololu controller wired up and it didn't go bang yay :))

Now I have to learn how to send commands to it. How do you guys make it turn automatically via hyperspin or by clicking the mouse when trialling the limit switch?
    

Midlife

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:April 13, 2013, 02:49:29 am
Re: Pololu 18v7 issue commands?
« Reply #1 on: April 02, 2013, 11:58:51 pm »
You need to setup the switches as per 5.1 of the manual and you can then test the functionality from within the command centre (from the status tab).

I'm using MALA so can't help with Hyperspin, but the following thread contains info and further links for Hyperspin

http://forum.arcadecontrols.com/index.php?topic=122052.0

Connorsdad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 268
  • Last login:December 22, 2018, 05:56:03 pm
  • I want to build my own arcade controls!
Re: Re: Pololu 18v7 issue commands?
« Reply #2 on: April 03, 2013, 01:37:04 am »
You need to setup the switches as per 5.1 of the manual and you can then test the functionality from within the command centre (from the status tab).

I'm using MALA so can't help with Hyperspin, but the following thread contains info and further links for Hyperspin

http://forum.arcadecontrols.com/index.php?topic=122052.0

I already have the switches set up to be able to control them via the command centre, I was wondering how you control the motor via keyboard/mouse. Say right mouse button to go forward and left for reverse or a key combo for forward/reverse.

Seen AHK and .bat mentioned but I have no idea how to make/implement these.
    

Connorsdad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 268
  • Last login:December 22, 2018, 05:56:03 pm
  • I want to build my own arcade controls!
Re: Pololu 18v7 issue commands?
« Reply #3 on: April 03, 2013, 02:03:07 am »
Just read a little about AHK so will install later and try this.

http://www.pololu.com/docs/0J45/5.b.1

:)
    

Midlife

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:April 13, 2013, 02:49:29 am
Re: Pololu 18v7 issue commands?
« Reply #4 on: April 03, 2013, 03:42:33 am »
This thread has what you are looking for.

http://forum.arcadecontrols.com/index.php?topic=128951.0

Essentially copy the code below into a text file and once saved rename the extension of the file from txt to ahk

m:: run smccmd --speed -3200,,Hide

n:: run smccmd --speed 3200,,Hide

return


You may want to vary the speed depending on your motor and the keys to rotate which are 'm' and 'n' for the code above.

You need to install AHK. Once you have AHK installed you double click the ahk file to have it running in the bacground or put it in your startup folder so it runs on startup. AHK scripts normally just sit hidden in the background. Mine show up in the system tray (windows xp).

I just tried the code above and worked fine.


Connorsdad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 268
  • Last login:December 22, 2018, 05:56:03 pm
  • I want to build my own arcade controls!
Re: Pololu 18v7 issue commands?
« Reply #5 on: April 03, 2013, 03:53:37 am »
Brilliant :)

Thanks, will try this later today.
    

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9226
  • Last login:Yesterday at 12:43:52 pm
  • ...
Re: Pololu 18v7 issue commands?
« Reply #6 on: April 06, 2013, 02:55:17 pm »
IIRC, DNADan is has the only build I've seen use Hyperspin and rotate automatically based on the game selected.
http://forum.arcadecontrols.com/index.php/topic,110471.0.html

Not sure what methods he used, as I just looked at the pretty pictures.