Ligne 181 : |
Ligne 181 : |
| </nowiki> | | </nowiki> |
| | | |
− | === Drive Two phase 4-wire stepping motor === | + | === Contrôler un moteur Pas-à-pas (deux phases, 4-fils) === |
| [[File:L298N_Step_motor.jpg]] | | [[File:L298N_Step_motor.jpg]] |
| | | |
− | To do this Demo required:
| + | Pour réaliser cette démonstration vous aurez besoin: |
− | *Hardware: one 4-wires stepping motors, one Arduino, one L298 Shield,external power supply. | + | *Matériel: Un moteur pas-à-pas 4-fils, un Arduino, un breakoutboard L298, une source d'alimentation externe. |
− | *Software: Arduino IDE,program. | + | *Logiciel: Arduino IDE et le programme ci-dessous. |
− | 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
| + | |
| + | Premièrement, vous aurez besoin d'un multimètre pour tester les 4 fils et détecter les groupes (bobines). Les deux fils qui sont connectés ensembles (qui présente une résistance) forment un groupe. |
| + | |
| + | DIn 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. |
| <nowiki> | | <nowiki> |