Joystick Stepper Motor Controller

  • Rajkumar Sharma
  • 121 Views
  • medium
  • Tested
  • SKU: EL140709
  • Quote Now

This is a pulse generator for a stepper motor driver using a joystick. It is a board that contains an Arduino-compatible microcontroller and circuitry for controlling up to 2-channel (2-axis) stepper motors. The board has multiple options to develop stepper motor-related control systems, from a 2-axis analog joystick to a trimmer potentiometer to a 7-channel open collector TTL output to interface stepper drivers with optocoupler inputs, etc.

Key Features of the Hardware

  • ATMEGA328 Arduino Compatible Microcontroller
  • Connector for Arduino Programming/Bootloader
  • 2 x Axis (2 Channel Joystick) Cab used to drive stepper Forward, Reverse
  • 2 x Trimmer Potentiometer Can be used to set acceleration/deacceleration or other functions.
  • One Tactile Switch
  • Connector for 7 Outputs Open Collector Type
  • Optional Connector for Direct 7 Outputs
  • Connector CN3 and CN5 for Limits switch or other function (with Pull-ups)
  • Connector CN6 and CN7 for Analog Input
  • Connector CN8 I/O
  • One Tactile Switch Internal Joystick
  • ULN2003 Chip Open connector to connect with stepper drivers
  • Function LED Connected to D12
  • Power LED
  • Breakout Connectors with Pullups to Connect Limit Switches

Features

  • Power Supply 5VDC
  • Two Stepper Motor Controlled Using a Joystick
  • All Step and Direction Signals Open Collector Type and TTL Level (7 Outputs)
  • On Board Optional Connector CN2 for Direct Output from Arduino
  • Various hardware options are available for the development of many applications for stepper motors
  • 4 x 3 mm Mounting Holes
  • PCB Dimension 61.28 x 36.20 mm

Application

  • Stepper Motor Based Linear/Rotary Actuator
  • Turn Tables
  • Camera Sliders
  • Camera Pan Tilt Head
  • Robotics Arms
  • Robotics
  • Automation
  • Animatronics

Arduino Example Code

Arduino code is available for testing purposes. Before we start with a new ATMEGA328, it requires a bootloader and Arduino code. Check the link below to learn more about programming:

Hardware has many I/O lines. The following hardware is used in the example Arduino code:

  • Joystick 2 x Axis
  • Axis-1 Arduino D5 Step Pulse Out, D8 Direction Output (Outputs are Open Collector Types for Stepper drivers optocouplers)
  • Axis-2 Arduino D6 Step Pulse Out, D7 Direction Output (Outputs are Open Collector Types for stepper drivers optocouplers)

The user will be able to run two stepper drivers using the joystick. Pls, check the connections diagram.

 

Connections and Hardware Details

  • CN1: Pin 1 = OP11(D11), Pin 2 = VCC, Pin 3 = OP10(D10), Pin 4 = VCC, Pin 5 = OP9(D9), Pin 6 = VCC, Pin 7 = OP8(D8), Pin 8 = VCC, Pin 9 = OP7(D7), Pin 10 = VCC, Pin 11 = OP6(D6), Pin 12 = VCC, Pin 13 = OP5(D5), Pin 14 = VCC
  • CN2: DNP (D5, D6, D6, D7, D8, D9, D10, D11) Direct I/O (Optional)
  • CN3: Pin 1 = D2-Pullup, Pin 2 = VCC, Pin 3 = GND
  • CN4: Pin 1 = TX, Pin 2 = RX, Pin 3 = Reset, Pin 4 = GND, Pin 5 = VC, Pin 6 = D11, Pin 7 = D12, Pin 8 = D13
  • CN5: Pin 1 = D3-With Pullup, Pin 2 = VCC, Pin 3 = GND
  • CN6: Pin 1 VCC, Pin 2 = A4, Pin 3 = GND
  • CN7: Pin 1 VCC, Pin 2 = A5, Pin 3 = GND
  • CN8: Pin 1 = D4-With Pullup, Pin 2 = GND
  • SW1: Tactile Switch = Analog Pin A6
  • D2: LED = D12
  • D1: Power LED
  • P1: Joystick X Axis = Analog A1
  • P2: Joystick Y Axis = Analog A0
  • PR1: Trimmer Potentiometer = Analog A2
  • PR2: Trimmer Potentiometer = Analog A3

Schematic

Parts List

NOQNTY.REF.DESCMANUFACTURERSUPPLIERSUPPLIER PART NO
11CN114 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5325-ND
22CN2,CN48 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5321-ND
34CN3,CN5,CN6,CN73 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5316-ND
41CN82 PIN MALE HEADER PITCH WURTHDIGIKEY732-5315-ND
51C110uF/10V CERAMIC SMD SIZE 0805YAGEO/MURATADIGIKEY
62C2,C30.1uF/50V CERAMIC SMD SIZE 0805YAGEO/MURATADIGIKEY
72C4,C522PF/50V CERAMIC SMD SIZE 0805YAGEO/MURATADIGIKEY
82D1,D2LED RED SMD SIZE 0805OSRAMDIGIKEY475-1278-1-ND
94PR1,PR25K TRIMMER POTENTIOMETERBOURNSDIGIKEY3362P-502LF-ND
107R1,R3,R4,R5,R6,R7,R8470E 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
114R2,R12,R13,R1410K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
121R91M 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
132R10,R111K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
141SW1TACTILE SWITCHE-SWITCHDIGIKEYEG2513-ND
151U1ULN2003ATIDIGIKEY296-1368-1-ND
161U2ATMEGA328TQPF-32MICROCHIPDIGIKEYATMEGA328PB-AURCT-ND
171X116MhzECS INCDIGIKEYX1103-ND
181JOYSTICK P1,P2JOYSTICK WITH SWITCH AND POT 5/10KC&KDIGIKEY108-THB001P-ND

Connections

Gerber View

Photos

Video

ULN2003A Datasheet

Please follow and like us:
Pin Share

PCB



Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

RELATED PROJECTS

TOP PCB Companies