Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
boards:megapi [2023/10/06 15:53] – [Pinout] darronboards:megapi [2023/10/11 17:13] (current) darron
Line 6: Line 6:
 </wrap> </wrap>
  
-This board can connect directly to a Raspberry Pi or work +This board contains an ATmega2560 and is compatible with [[:boards:mega2560|Arduino]]. 
-standalone.+ 
 +It can connect directly to a Raspberry Pi or work standalone.
  
 Power applied to the DC input jack may be between 6V and Power applied to the DC input jack may be between 6V and
Line 65: Line 66:
 NB Disable system login console on Pi to enable AVR UART2 comms. NB Disable system login console on Pi to enable AVR UART2 comms.
  
-== Motors ==+== Motor I/O ==
  
 __GPIO__ __GPIO__
Line 91: Line 92:
 </code> </code>
  
-__NEMA17__+=== Motor wiring ===
  
-Left to right (socket pointing down)+__NEMA__ 
 + 
 +Left to right (socket pointing upward) 
 + 
 +This may actually be reversed or just wrong.
  
 <code> <code>
-1 PHASE 2 START   GREEN/WHITE   A++1 PHASE 2 START   GREEN/WHITE   B  B2
 2 2
-3 PHASE 2 FINISH  GREEN         A+3 PHASE 2 FINISH  GREEN         B  B1 
-4 PHASE 1 FINISH  RED/WHITE     B-+4 PHASE 1 FINISH  RED/WHITE     A  A1
 5 5
-6 PHASE 1 START   RED           B++6 PHASE 1 START   RED           A  A2
 </code> </code>
  
-My `generic' cable from eBay (these vary)+__MOTOR__ 
 + 
 +`generic' cable from eBay (these vary)
  
 <code> <code>
Line 112: Line 119:
 B+ BLACK B+ BLACK
 </code> </code>
 +
 +My generic cable has the two centre pins twisted.
  
 __PORT__ __PORT__
Line 120: Line 129:
 B+ B- A- A+ B+ B- A- A+
 </code> </code>
 +
 +Wiring as per above will result in correct shaft direction. Reverse wiring or swap one pair of wires to rectify incorrect direction.
 ===Resources=== ===Resources===
  
Line 135: Line 146:
  
 [[https://www.ti.com/lit/ds/symlink/drv8825.pdf|TI DRV8825 data-sheet]] [[https://www.ti.com/lit/ds/symlink/drv8825.pdf|TI DRV8825 data-sheet]]
 +
 +[[http://www.ti.com/lit/an/slyt482/slyt482.pdf|Acceleraton and deceleration profiles for stepper motors]]
  
 [[https://iopscience.iop.org/article/10.1088/1757-899X/294/1/012055/pdf|Stepper motor profile in real-time]] [[https://iopscience.iop.org/article/10.1088/1757-899X/294/1/012055/pdf|Stepper motor profile in real-time]]