This is an old revision of the document!
====== PIC Controlled Stepper motor ====== Code to send data to the PIC: <code cpp> void setup() { pinMode(3, OUTPUT); // sets the digital pin as output } void loop() { pulseMicroseconds(3, 1500); //1.5 mS delay(100); } void pulseMicroseconds(int pin, int dur) { digitalWrite(pin, HIGH); delayMicroseconds(dur); digitalWrite(pin, LOW); } </code>
Back to top