Skip to content

Unlink forward / backward time and turning time in L298N handler #22

@espresso0000

Description

@espresso0000

I have been hand adding to the motor controller to allow improved control over the tank drive using a way to set the turn different then forward & reverse to allow for:

l298n_sleeptime=0.2
l298n_rotatetimes=2

  • l298n_lr_sleeptime=0.1
  • l298n_lr_rotatetimes=2

then adding:

if direction == 'L':
GPIO.output(StepPinLeft, GPIO.HIGH)

  • time.sleep(l298n_lr_sleeptime)

    GPIO.output(StepPinLeft, GPIO.LOW)

if direction == 'R':
GPIO.output(StepPinRight, GPIO.HIGH

  • time.sleep(l298n_lr_sleeptime

    GPIO.output(StepPinRight, GPIO.LOW)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions