Klappt leider noch nicht habe es so angeschlossen wie du es geschrieben hattest zu mindestens so wie ich es interpretiert habe
habe es wie folgt verbunden
Beide GND Verbunden
Links OUT1 und OUT2 mit der 1 Spule
Rechts OUT3 und OUT4 mit der 2 Spule
ENA → Port 1
ENB → Port 3
INA → Port 5
INB → Port 7
INC → Port 9
IND → Port 11
es sei noch zu erwähnen das mein 12V Adapter nur 500 mA Leistung hat
und das ist mein Programm
Sub main()
#if AVR32
Port_Attribute(P1, PORT_ATTR_OUTPUT Or PORT_ATTR_INIT_LOW)
Port_Attribute(P3, PORT_ATTR_OUTPUT Or PORT_ATTR_INIT_LOW)
Port_Attribute(P5, PORT_ATTR_OUTPUT Or PORT_ATTR_INIT_LOW)
Port_Attribute(P7, PORT_ATTR_OUTPUT Or PORT_ATTR_INIT_LOW)
Port_Attribute(P9, PORT_ATTR_OUTPUT Or PORT_ATTR_INIT_LOW)
Port_Attribute(P11, PORT_ATTR_OUTPUT Or PORT_ATTR_INIT_LOW)
Port_Attribute(PORT_LED2, PORT_ATTR_OUTPUT Or PORT_ATTR_INIT_LOW)
#endif
Do While True
Port_WriteBit(PORT_LED2, PORT_ON)
Port_WriteBit(P1, 1)
Port_WriteBit(P3, 0)
Port_WriteBit(P5, 0)
Port_WriteBit(P7, 0)
Port_WriteBit(P9, 0)
Port_WriteBit(P11, 1)
AbsDelay(100)
Port_WriteBit(P1, 1) ' Off
Port_WriteBit(P3, 0)
Port_WriteBit(P5, 0)
Port_WriteBit(P7, 0)
Port_WriteBit(P9, 1)
Port_WriteBit(P11, 0)
AbsDelay(100)
Port_WriteBit(PORT_LED2, PORT_OFF)
Port_WriteBit(PORT_LED1, 0 )
Port_WriteBit(P1, 0) ' Off
Port_WriteBit(P3, 1)
Port_WriteBit(P5, 0)
Port_WriteBit(P7, 1)
Port_WriteBit(P9, 0)
Port_WriteBit(P11, 0)
AbsDelay(100)
Port_WriteBit(P1, 0) ' Off
Port_WriteBit(P3, 1)
Port_WriteBit(P5, 1)
Port_WriteBit(P7, 0)
Port_WriteBit(P9, 0)
Port_WriteBit(P11, 0)
AbsDelay(100)
End While
End Sub
hoffe es kann mir jemand weiter helfen
Grüße Osman
Lesezeichen