User Tools

Site Tools


steppernxtv2

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
steppernxtv2 [2017/08/04 16:47] – [Programming] rebeccacaosteppernxtv2 [2017/08/15 19:24] (current) – [Parts List and Sources] rebeccacao
Line 11: Line 11:
  
 ===== Motivation and Audience ===== ===== Motivation and Audience =====
-\\ 
 This is a continuation of the first option, but this tutorial is specifically for the audiences who doesn't have the access to ULN2003A Darlington transistor array.  This is a continuation of the first option, but this tutorial is specifically for the audiences who doesn't have the access to ULN2003A Darlington transistor array. 
 \\ \\
 In this tutorial, the focus will be on using the IRF510 N-channel MOSFET to control the stepper motor, where the IRF510 acts as a switch to sending the signal into the stepper motor for the motor to turn. In this tutorial, the focus will be on using the IRF510 N-channel MOSFET to control the stepper motor, where the IRF510 acts as a switch to sending the signal into the stepper motor for the motor to turn.
 +\\
 +\\
 +\\
 \\ \\
 ==== Parts List and Sources ==== ==== Parts List and Sources ====
Line 26: Line 28:
   * (1) NXT Brick   * (1) NXT Brick
   * (various quantities) gauge wires   * (various quantities) gauge wires
 +Here is the [[https://youtu.be/TSvf9iBYM5g |demo]] of the motor turning with the following schematics and coding.
 +\\
 +All the codes can be found [[https://github.com/XKRC/NXT_Stepper_Motor|here]], titled "Stepper_IRF510_Basic.nxc".
 +\\
 +\\
 \\ \\
-Here is the [[https://youtu.be/qkKWjZSrdP4 |demo]] of the motor turning with the following schematics and coding. 
 \\ \\
- 
  
  
Line 36: Line 41:
 {{ :xinke:circuit_ver_2.png?600 |}} {{ :xinke:circuit_ver_2.png?600 |}}
 \\ \\
-==== Construction ==== +D7 controls yellow.
 \\ \\
 +D6 controls orange.
 \\ \\
 +D1 controls pink.
 +\\
 +D0 controls blue.
 +\\
 +\\
 +\\
 +\\
 +==== Construction ====
 **Step 1** **Step 1**
 \\ \\
 \\ \\
-<Add photos to make step easier to understand>+Insert a PCF8574A. 
 +\\ 
 +{{:xinke:img_7476.jpg?300|}} 
 +\\ 
 +\\ 
 +Insert the clock line from PCF8574A to the NXT adaptor. 
 +\\ 
 +{{:xinke:img_7475.jpg?300|}} 
 +\\ 
 +\\ 
 +Insert the data line. 
 +\\ 
 +{{:xinke:img_7474.jpg?300|}} 
 +\\ 
 +\\ 
 +Insert the voltage source to the PCF8574A. 
 +\\ 
 +{{:xinke:img_7473.jpg?300|}} 
 +\\ 
 +\\ 
 +Insert the ground lines, which will also be the ground to the NXT Brick. 
 +\\ 
 +{{:xinke:img_7472.jpg?300|}}
 \\ \\
 \\ \\
Line 49: Line 84:
 \\ \\
 \\ \\
-<Additional steps like **Step 3****Step 4**, etc>+Insert four IRF510 resistors. 
 +\\ 
 +{{:xinke:img_7471.jpg?300|}} 
 +\\ 
 +\\ 
 +**Step 3** 
 +\\ 
 +\\ 
 +Gather an NXT adaptor. 
 +\\ 
 +{{:xinke:img_7469.jpg?300|}} 
 +\\ 
 +\\ 
 +Insert the NXT adaptor. 
 +\\ 
 +{{:xinke:img_7468.jpg?300|}} 
 +\\ 
 +\\ 
 +**Step 4** 
 +\\ 
 +\\ 
 +Gather four 100k Ohms resistors. 
 +\\ 
 +{{:xinke:img_7467.jpg?300|}} 
 +\\ 
 +\\ 
 +Connect the resistors to the "Gate" pins of all of the transistors. 
 +\\ 
 +{{:xinke:img_7466.jpg?300|}} 
 +\\ 
 +\\ 
 +\\ 
 +{{:xinke:img_7465.jpg?300|}} 
 +\\ 
 +\\ 
 +\\ 
 +{{:xinke:img_7464.jpg?300|}} 
 +\\ 
 +\\ 
 +**Step 5** 
 +\\ 
 +\\ 
 +Connect the source of all transistors to the ground. 
 +\\ 
 +{{:xinke:img_7463.jpg?300|}} 
 +\\ 
 +\\ 
 +\\ 
 +{{:xinke:img_7462.jpg?300|}} 
 +\\ 
 +\\ 
 +\\ 
 +{{:xinke:img_7461.jpg?300|}} 
 +\\ 
 +\\ 
 +\\ 
 +{{:xinke:img_7460.jpg?300|}} 
 +\\ 
 +\\ 
 +**Step 6** 
 +\\ 
 +\\ 
 +Insert data lines from the correct output pins from the PCF8574A to the corresponding transistor's "drain" pin. 
 +\\ 
 +{{:xinke:img_7458.jpg?300|}} 
 +\\ 
 +\\ 
 +\\ 
 +{{:xinke:img_7457.jpg?300|}} 
 +\\ 
 +\\ 
 +**Step 7** 
 +\\ 
 +\\ 
 +Connect the center line (red) of the stepper motor to a 9V source and the other four lines to the corresponding "drain" pin of the transistors. 
 +\\ 
 +{{:xinke:img_7456.jpg?300|}} 
 +\\ 
 +\\ 
 +\\ 
 +{{:xinke:img_7455.jpg?300|}} 
 +\\ 
 +\\ 
 +**Step 8** 
 +\\ 
 +\\ 
 +Connect the battery. 
 +\\ 
 +{{:xinke:img_7454.jpg?300|}} 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\
 \\ \\
 ==== Programming ==== ==== Programming ====
Line 86: Line 214:
      
  
-//+\\ 
 +\\ 
 +\\ 
 +\\
  
-// 
-// 
-// 
 ==== Final Words ==== ==== Final Words ====
 +Comparing version one and version two of the stepper motor control, the only difference is the circuit diagram, which resulted in different numbers sent out of the PCF8574A from the LEGO Brick. 
 +\\ 
 +If you have any questions, please contact me at [email protected].
  
  
steppernxtv2.1501890470.txt.gz · Last modified: 2017/08/04 16:47 by rebeccacao