VDO Marelli Idle motor driver
Lähetetty: 30.09.2016 11:17
Hi
Have you ever try to clean that sh*t VDO Marelli? Yep, is much more easy if you have something to drive it at home. Taking piston out, moving both ways, check for noise and so on.
Here is my "test bench"
- 1 x test board
- 1 x arduino UNO
- 2 x push buttons
- 2 x 10k resistors
- 1 x L293D driver
- some wires

Code for arduino is:
And some video in "action"
http://www.youtube.com/watch?v=w8tOh3dsAzU
Have you ever try to clean that sh*t VDO Marelli? Yep, is much more easy if you have something to drive it at home. Taking piston out, moving both ways, check for noise and so on.
Here is my "test bench"
- 1 x test board
- 1 x arduino UNO
- 2 x push buttons
- 2 x 10k resistors
- 1 x L293D driver
- some wires

Code for arduino is:
Koodi: Valitse kaikki
#define motor_pin_1 2 //arduino digital 2
#define motor_pin_2 3 //arduino digital 3
#define motor_pin_3 4 //arduino digital 4
#define motor_pin_4 5 //arduino digital 5
int spin[32] = {
1,0,0,0,
1,0,1,0,
0,0,1,0,
0,1,1,0,
0,1,0,0,
0,1,0,1,
0,0,0,1,
1,0,0,1
};
void setup(){
pinMode(motor_pin_1,OUTPUT);
pinMode(motor_pin_2,OUTPUT);
pinMode(motor_pin_3,OUTPUT);
pinMode(motor_pin_4,OUTPUT);
pinMode(8,INPUT);
pinMode(9,INPUT);
}
void loop(){
if(digitalRead(8) == HIGH){
forward(1,3);
}
if(digitalRead(9) == HIGH){
backward(1,3);
}
}
void forward(int rep,int dly){
for(int x=0; x<rep;x++){
for(int t=0; t<32; t+=4){
digitalWrite(motor_pin_1, spin[t]);
digitalWrite(motor_pin_2, spin[t+1]);
digitalWrite(motor_pin_3, spin[t+2]);
digitalWrite(motor_pin_4, spin[t+3]);
delay(dly);
}
}
digitalWrite(motor_pin_1, LOW);
digitalWrite(motor_pin_2, LOW);
digitalWrite(motor_pin_3, LOW);
digitalWrite(motor_pin_4, LOW);
}
void backward(int rep,int dly){
for(int x=0; x<rep;x++){
for(int t=32; t>=0; t-=4){
digitalWrite(motor_pin_1, spin[t]);
digitalWrite(motor_pin_2, spin[t+1]);
digitalWrite(motor_pin_3, spin[t+2]);
digitalWrite(motor_pin_4, spin[t+3]);
delay(dly);
}
}
digitalWrite(motor_pin_1, LOW);
digitalWrite(motor_pin_2, LOW);
digitalWrite(motor_pin_3, LOW);
digitalWrite(motor_pin_4, LOW);
}
And some video in "action"
http://www.youtube.com/watch?v=w8tOh3dsAzU