Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pic_controlled_stepper_motor [2009/02/27 19:42]
lbarbour
pic_controlled_stepper_motor [2009/03/08 18:22] (current)
jonmash
Line 1: Line 1:
 ====== PIC Controlled Stepper motor ====== ====== PIC Controlled Stepper motor ======
  
-Code to send data to the PIC +  * [[Code to send desired position ​to the motor controller]]
- +
-void setup() +
-+
-   ​pinMode(3,​ OUTPUT); ​     // sets the digital pin as output +
-+
- +
-void loop() +
-{  +
-  digitalWrite(3,​ HIGH); +
-  delayMicroseconds(2000);​ +
-  digitalWrite(3,​ LOW); +
-  delay(100);​ +
-   +
-+
- +
- +
-void setup() +
-+
-   ​pinMode(3,​ OUTPUT); ​     // sets the digital pin as output +
-+
- +
-void loop() +
-{  +
-  digitalWrite(3,​ HIGH); +
-  delayMicroseconds(2000);​ +
-  digitalWrite(3,​ LOW); +
-  delay(100);​ +
-   +
-}+
  
pic_controlled_stepper_motor.1235763761.txt.gz · Last modified: 2009/02/27 19:42 by lbarbour
Back to top
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0