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 16:56] – [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 === 
 + 
 +__NEMA__
  
 Left to right (socket pointing upward) Left to right (socket pointing upward)
  
-This may actually be reversed.+This may actually be reversed or just wrong.
  
 <code> <code>
Line 106: Line 109:
 </code> </code>
  
-My `generic' cable from eBay (these vary)+__MOTOR__ 
 + 
 +`generic' cable from eBay (these vary)
  
 <code> <code>
Line 114: Line 119:
 B+ BLACK B+ BLACK
 </code> </code>
 +
 +My generic cable has the two centre pins twisted.
  
 __PORT__ __PORT__
Line 121: Line 128:
 <code> <code>
 B+ B- A- A+ B+ B- A- A+
-B2 B1 A1 A2 
 </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 138: 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]]