Bonjour a tous,
j'ai voulu reproduire le montage de jasonbabcock (.com/computing/breadboard/pantable1/index.html) mais sur Arduino...
L'article montre stepperMotor monté sur un I/O board via ULN2004A
materiel à disposition:
Arduino Duemilanove
ULN2004AG
PM55l-048-HPG9
PM35L-048L-HPD4
transformater 220V -> 24V 830mA 20VA
transformater 220V -> 12V 300mA 3.6VA
breadboard et quelques fils
Le seul résultat obtenu est la montée de température de l'ULN...
Quelqu'un aurait t'il un support?
/*
Simple Stepper motor test, call manualy each pin
Following the page:
jasonbabcock. dot com/computing/breadboard/pantable1/index.html
This appears to fail...
the only thing is the ULN is going hotter and hotter...
arduino? ULN2003A PM55L Mineba
. ______
5 -------- 1 -| |- 16 -------- orange
4 -------- 2 -| |- 15 -------- yellow
3 -------- 3 -| |- 14 -------- tan
2 -------- 4 -| |- 13 -------- black
----------- 5 -| |- 12
----------- 6 -| |- 11
----------- 7 -| |- 10
ground ---- 8 -|____|- 9 --------
. |___
. |___|--red 1 / red 2
. |
. + 12 V __|
pm55l mineba "datashit"
| | _|_ | |
| | | | | |
A3 B3 A2 B2 A1 B1
clockWise
1> A1 B3
2> A1 B1
3> A3 B1
4> A3 B3
counterCllockWise
1>
4>
3>
2>
1>
Array
a1 Black | A3 brown | B1 Orange | B3Yellow | A2 B2 Red
1 - | | | - | + |
2 - | | - | | + |
3 | - | - | | + |
4 | - | | - | + |
other sequence to test
1> 1010
2> 0110
3> 0101
4> 1001
Stepper Motor Controller
language: Wiring/Arduino
This program drives a unipolar or bipolar stepper motor.
The motor is attached to digital pins 8 and 9 of the Arduino.
The motor moves 100 steps in one direction, then 100 in the other.
*/
// define the pins that the motor is attached to. You can use
// any digital I/O pins.
int MotorPin1= 5;
int MotorPin2= 4;
int MotorPin3= 3;
int MotorPin4= 2;
int delayTime=50;
void setup() {
}
void loop() {
digitalWrite(MotorPin1,HIGH);
digitalWrite(MotorPin2,LOW);
digitalWrite(MotorPin3,HIGH);
digitalWrite(MotorPin4,LOW);
delay(delayTime);
digitalWrite(MotorPin1,LOW);
digitalWrite(MotorPin2,HIGH);
digitalWrite(MotorPin3,HIGH);
digitalWrite(MotorPin4,LOW);
delay(delayTime);
digitalWrite(MotorPin1,LOW);
digitalWrite(MotorPin2,HIGH);
digitalWrite(MotorPin3,LOW);
digitalWrite(MotorPin4,HIGH);
delay(delayTime);
digitalWrite(MotorPin1,HIGH);
digitalWrite(MotorPin2,LOW);
digitalWrite(MotorPin3,LOW);
digitalWrite(MotorPin4,HIGH);
delay(delayTime);
}
Le code et le pictogrammes s'affichent mieux dans arduino desolé
si quelqu'un pourrait me donner un coup de main
Par avance, Merci