Modifications

Sauter à la navigation Sauter à la recherche
125 octets supprimés ,  18 avril 2012 à 11:03
aucun résumé de modification
Ligne 122 : Ligne 122 :  
*Software: Arduino IDE,program.
 
*Software: Arduino IDE,program.
 
Connect Arduino and L298 shield according to program notes,then upload the sketch to the Arduino board.
 
Connect Arduino and L298 shield according to program notes,then upload the sketch to the Arduino board.
<syntaxhighlight lang="Arduino">
+
<nowiki>
 
int ENA=5;//connected to Arduino's port 5(output pwm)
 
int ENA=5;//connected to Arduino's port 5(output pwm)
 
int IN1=2;//connected to Arduino's port 2
 
int IN1=2;//connected to Arduino's port 2
Ligne 150 : Ligne 150 :     
}
 
}
</syntaxhighlight>
+
</nowiki>
 
=== Drive Two phase 4-wire stepping motor ===
 
=== Drive Two phase 4-wire stepping motor ===
 
[[File:Step_motor.jpg]]
 
[[File:Step_motor.jpg]]
Ligne 159 : Ligne 159 :  
Firstly,we should use the multimeter to detect the 4 wires,the 2 wires which connected is a group.In this example,the red wire and gray wires are a group(call A group),the yellow wire and green wire are a group(call B group).Connect Arduino and L298 shield according to the picture above
 
Firstly,we should use the multimeter to detect the 4 wires,the 2 wires which connected is a group.In this example,the red wire and gray wires are a group(call A group),the yellow wire and green wire are a group(call B group).Connect Arduino and L298 shield according to the picture above
 
and program notes,then upload the sketch to the Arduino board.
 
and program notes,then upload the sketch to the Arduino board.
<syntaxhighlight lang="Arduino">
+
<nowiki>
 
int ENA=2;//connected to Arduino's port 2
 
int ENA=2;//connected to Arduino's port 2
 
int IN1=3;//connected to Arduino's port 3
 
int IN1=3;//connected to Arduino's port 3
Ligne 209 : Ligne 209 :  
  delay(10);
 
  delay(10);
 
}
 
}
</syntaxhighlight>
+
</nowiki>
    
== Resources ==
 
== Resources ==
Ligne 215 : Ligne 215 :     
== How to buy  ==
 
== How to buy  ==
Dual H-Bridge Motor Driver can be ordered through the GOF store. Its product page is located [http://www.geekonfire.com/index.php?main_page=product_info&cPath=50&products_id=48 here]
+
Dual H-Bridge Motor Driver can be ordered through the GOF store. Its product page is located [http://www.mchobby.be here]
 
== Licensing  ==
 
== Licensing  ==
 
This documentation is licensed under the Creative Commons [http://creativecommons.org/licenses/by-sa/3.0/ Attribution-ShareAlike License 3.0] Source code and libraries are licensed under [http://www.gnu.org/licenses/gpl.html GPL/LGPL], see source code files for details.
 
This documentation is licensed under the Creative Commons [http://creativecommons.org/licenses/by-sa/3.0/ Attribution-ShareAlike License 3.0] Source code and libraries are licensed under [http://www.gnu.org/licenses/gpl.html GPL/LGPL], see source code files for details.
29 836

modifications

Menu de navigation