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: pacdrive + stepper motor  (Read 1072 times)

0 Members and 1 Guest are viewing this topic.

wombleboy

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:September 09, 2013, 05:17:56 pm
  • I want to build my own arcade controls!
pacdrive + stepper motor
« on: September 08, 2013, 07:05:21 pm »
Hi all,

I'm trying to use a pacdrive to control a stepper motor (a cheap stepper + controller board from ebay). The driver board has four inputs (plus Vcc and ground, obviously) which need to pulse high. But the output from the pacdriver uses common anode, which I think it the cause of my problems ...

With the pacdrive output off on a particular output pin, the PD between the pin and ground is around 0.1 volts; PD between the pin and annode is zero. When I tell pacdrive to turn the pin 'on', the PD between the pin and ground moves to around 0.01v, while between the output and anode it rises to 5v.

That'd be fine for an LED, and I could wire them up with a common anode, as the ultimarc website suggests; but how do I make this work with the stepper please?

CraftyMech

  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 492
  • Last login:July 29, 2023, 08:08:45 pm
  • I love the smell of solder in the morning...
    • craftymech.com
Re: pacdrive + stepper motor
« Reply #1 on: September 08, 2013, 07:35:33 pm »
Steppers come in all sorts of flavors, and have a wide range of drive requirements. A couple questions which will make it easier to get the help you need:

Is your stepper motor unipolar or bipolar, and what is the voltage/current rating?

Do you have any additional info on the stepper motor controller?


BitKit 8bit FPGA Multi - http://craftymech.com

wombleboy

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:September 09, 2013, 05:17:56 pm
  • I want to build my own arcade controls!
Re: pacdrive + stepper motor
« Reply #2 on: September 08, 2013, 07:49:25 pm »
Thanks, this is it: http://www.ebay.co.uk/itm/321171450549

I'm happy with the concept of pulsing each of the four inputs high, one by one, to achieve a single step in rotation. Just can't get my head round the issue of the pacdrive sending a pulse high relative to Vcc, rather than ground

CraftyMech

  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 492
  • Last login:July 29, 2023, 08:08:45 pm
  • I love the smell of solder in the morning...
    • craftymech.com
Re: pacdrive + stepper motor
« Reply #3 on: September 08, 2013, 11:47:02 pm »
With the common anode setup you mentioned, the Pacdrive doesn't set the output pin high to turn on an LED, it actually pulls the output pin low (ground). That is why you found +5v between the output pin and the anode when the output pin was "on".

That would be a problem naturally for interfacing with the stepper controller board, where you want to put +5v on the 4 input pins in a particular sequence.

So unless there is a way to configure the Pacdrive to set the outputs to +5v when "on", you may be out of luck and will need to use another solution. Unfortunately, the board that came with your stepper motor is just a driver board (using a ULN2003 Darlington array) and doesn't provide the sequence logic for powering the motor windings.

So an alternative to the Pacdrive then would be to use a microcontroller to interface with the stepper board. This article was actually written for the exact motor/board combo you have: http://www.4tronix.co.uk/arduino/Stepper-Motors.php
« Last Edit: September 08, 2013, 11:50:56 pm by CraftyMech »
BitKit 8bit FPGA Multi - http://craftymech.com