Editing Experimenting with Stepper Motors as Rotary Encoders using a PIC running BoostC Project

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 47: Line 47:
 
|-valign="top"
 
|-valign="top"
 
|Power supply
 
|Power supply
|Not shown, 5 volts, you can use a higher voltage with a voltage regulator.  There is a suitable power supply in the [[PIC based Stepper Motor Dancing Analog Clock]]
+
|Not shown, you need two dc voltages, one for the PIC at 5 volts, and another with the right voltage for the motors.  There is a suitable power supply in the [[PIC based Stepper Motor Dancing Analog Clock]]
 
<!-------------------------------->
 
<!-------------------------------->
 +
 
|-valign="top"
 
|-valign="top"
 
|PIC16F877A
 
|PIC16F877A
|My favorate 16 series part, relatively lots of memory and pins.  Bigger than you need, but only about 8 bucks.  Try with an 18 series part, should not be hard and will leave you more up to date.  Let me know.  Other parts of the PIC circuit not discussed here.
+
|My favorate 16 series part, relatively lots of memory and pins.  Bigger than you need, but only about 8 bucks.  Try with an 18 series part, should not be hard and will leave you more up to date.  Let me know.
 
<!--------------------------------
 
<!--------------------------------
 
|-valign="top"
 
|-valign="top"
Line 62: Line 63:
 
<!-------------------------------->
 
<!-------------------------------->
 
|-valign="top"
 
|-valign="top"
|Power supply splitting resistors, form a pseodo ground at about 2.5 volts.
+
|Pull Up/Down Resistors
|100 more or less
+
|10k more or less
 
<!-------------------------------->
 
<!-------------------------------->
 
|-valign="top"
 
|-valign="top"
|RIN
+
|CQ1, CQ2 = capicators for the crystal
|about 5 to 10 K 
+
|about 20 pf seems to work, see the PIC16F877A manual
<!-------------------------------->
+
<!--------------------------------
 
|-valign="top"
 
|-valign="top"
|RFB
+
|xx
|feedback resistor should be about 4 times higher than the input resistor
+
|
 
<!--------------------------------
 
<!--------------------------------
 
|-valign="top"
 
|-valign="top"
 
|xx
 
|xx
 
|
 
|
<!--------------------------------
+
<!-------------------------------->
 
|-valign="top"
 
|-valign="top"
 
|Q = crystal
 
|Q = crystal
Line 92: Line 93:
 
|RRA2, RRA3  = Pull up resistors
 
|RRA2, RRA3  = Pull up resistors
 
|10K more or less
 
|10K more or less
<!--------------------------------
+
<!-------------------------------->
 
|-valign="top"
 
|-valign="top"
 
|C_BP  = By Pass Cap.
 
|C_BP  = By Pass Cap.
Line 104: Line 105:
 
|RMC  = Pull up resistor for master clear ( pull down with push button switch to reset ).
 
|RMC  = Pull up resistor for master clear ( pull down with push button switch to reset ).
 
|10k more or less
 
|10k more or less
<!--------------------------------
+
<!-------------------------------->
 
|-valign="top"
 
|-valign="top"
 
|PUSH_BUTTON_SWITCH  = Reset
 
|PUSH_BUTTON_SWITCH  = Reset
Line 129: Line 130:
 
|
 
|
 
|
 
|
 +
<!-------------------------------->
 +
|-valign="top"
 +
|VPLUS_VDD = Positive power
 +
|To the 5 volt power. 
 +
<!-------------------------------->
 +
|-valign="top"
 +
|G1  = Ground connection
 +
|Not show, add one to connect the power supply.
 
<!--------------------------------
 
<!--------------------------------
 
|-valign="top"
 
|-valign="top"
Line 137: Line 146:
 
|  =
 
|  =
 
|
 
|
 +
<!-------------------------------->
 +
|-valign="top"
 +
|MOUNT_1...4
 +
|Mounting holes
 
<!--------------------------------
 
<!--------------------------------
 
|-valign="top"
 
|-valign="top"

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)