steppernxtv2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
steppernxtv2 [2017/08/04 16:47] – [Programming] rebeccacao | steppernxtv2 [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' | This is a continuation of the first option, but this tutorial is specifically for the audiences who doesn' | ||
\\ | \\ | ||
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:// | ||
+ | \\ | ||
+ | All the codes can be found [[https:// | ||
+ | \\ | ||
+ | \\ | ||
\\ | \\ | ||
- | Here is the [[https:// | ||
\\ | \\ | ||
- | |||
Line 36: | Line 41: | ||
{{ : | {{ : | ||
\\ | \\ | ||
- | ==== Construction ==== | + | D7 controls yellow. |
\\ | \\ | ||
+ | D6 controls orange. | ||
\\ | \\ | ||
+ | D1 controls pink. | ||
+ | \\ | ||
+ | D0 controls blue. | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | ==== Construction ==== | ||
**Step 1** | **Step 1** | ||
\\ | \\ | ||
\\ | \\ | ||
- | <Add photos | + | Insert a PCF8574A. |
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | Insert the clock line from PCF8574A | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | Insert the data line. | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | Insert the voltage source | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | Insert the ground lines, which will also be the ground to the NXT Brick. | ||
+ | \\ | ||
+ | {{: | ||
\\ | \\ | ||
\\ | \\ | ||
Line 49: | Line 84: | ||
\\ | \\ | ||
\\ | \\ | ||
- | < | + | Insert four IRF510 resistors. |
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | **Step 3** | ||
+ | \\ | ||
+ | \\ | ||
+ | Gather an NXT adaptor. | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | Insert the NXT adaptor. | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | **Step 4** | ||
+ | \\ | ||
+ | \\ | ||
+ | Gather four 100k Ohms resistors. | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | Connect the resistors to the " | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | **Step 5** | ||
+ | \\ | ||
+ | \\ | ||
+ | Connect the source of all transistors to the ground. | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | **Step 6** | ||
+ | \\ | ||
+ | \\ | ||
+ | Insert data lines from the correct output pins from the PCF8574A to the corresponding transistor' | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | **Step 7** | ||
+ | \\ | ||
+ | \\ | ||
+ | Connect the center line (red) of the stepper motor to a 9V source and the other four lines to the corresponding " | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | **Step 8** | ||
+ | \\ | ||
+ | \\ | ||
+ | Connect the battery. | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
\\ | \\ | ||
==== 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