DEAF BOY
18.08.2011, 18:30
Hallo,
mein Schrittmotor rattert sich.
Schrittmotordaten 2,64 Volt, 2,0 Ampere
RNStepp297 Vref auf 1,02 V eingestellt
+UB = 10 V, Logikspannung 5 V
Einfache Code:
$regfile = "m323def.dat"
$crystal = 16000000
Dim I As Integer
Config Porta.0 = Output
Motor_enable Alias Porta.0
Config Porta.1 = Output
Richtung Alias Porta.1
Config Porta.2 = Output
Takt Alias Porta.2
Motor_enable = 0
Do
Motor_enable = 1
For I = 1 To 400
Takt = 0 : Waitus 1 : Takt = 1
Waitms 30
Next
loop
mein Schrittmotor rattert sich.
Schrittmotordaten 2,64 Volt, 2,0 Ampere
RNStepp297 Vref auf 1,02 V eingestellt
+UB = 10 V, Logikspannung 5 V
Einfache Code:
$regfile = "m323def.dat"
$crystal = 16000000
Dim I As Integer
Config Porta.0 = Output
Motor_enable Alias Porta.0
Config Porta.1 = Output
Richtung Alias Porta.1
Config Porta.2 = Output
Takt Alias Porta.2
Motor_enable = 0
Do
Motor_enable = 1
For I = 1 To 400
Takt = 0 : Waitus 1 : Takt = 1
Waitms 30
Next
loop