Printer mechanism positioning problems November 06, 2009 08:38AM |
Registered: 14 years ago Posts: 17 |
boolean done = false; void loop(){ if(!done){ digitalWrite(7,HIGH);// Enable stepper motor digitalWrite(6,LOW); // Direction for(int i = 0;i < 1000;i++){ digitalWrite(5,HIGH); // step pulse delay(5); digitalWrite(5,LOW); // step pulse delay(5); } digitalWrite(6,HIGH); // reversing the direction delay(5); for(int i = 0;i < 1000;i++){ digitalWrite(5,HIGH); // step pulse delay(5); digitalWrite(5,LOW); // step pulse delay(5); } done = true; digitalWrite(7,LOW); // disable motor }
Re: Printer mechanism positioning problems November 06, 2009 09:36AM |
Admin Registered: 17 years ago Posts: 7,881 |
Re: Printer mechanism positioning problems November 06, 2009 11:04AM |
Registered: 14 years ago Posts: 17 |
Re: Printer mechanism positioning problems November 07, 2009 02:01AM |
Registered: 14 years ago Posts: 17 |
Re: Printer mechanism positioning problems November 10, 2009 05:01AM |
Registered: 16 years ago Posts: 478 |
Re: Printer mechanism positioning problems November 13, 2009 11:28PM |
Registered: 14 years ago Posts: 17 |
Re: Printer mechanism positioning problems November 14, 2009 07:08AM |
Registered: 15 years ago Posts: 248 |
Re: Printer mechanism positioning problems November 14, 2009 08:07AM |
Registered: 14 years ago Posts: 17 |
Re: Printer mechanism positioning problems November 14, 2009 01:58PM |
Admin Registered: 17 years ago Posts: 7,881 |
Re: Printer mechanism positioning problems November 15, 2009 08:29AM |
Registered: 14 years ago Posts: 17 |
Re: Printer mechanism positioning problems November 15, 2009 09:42AM |
Admin Registered: 17 years ago Posts: 7,881 |
Re: Printer mechanism positioning problems November 15, 2009 10:44AM |
Registered: 14 years ago Posts: 17 |
Re: Printer mechanism positioning problems November 18, 2009 08:47AM |
Registered: 14 years ago Posts: 17 |
Re: Printer mechanism positioning problems May 24, 2010 02:47PM |
Registered: 14 years ago Posts: 19 |