Skip to content

CircuitPython scrfipts to assist with robot mobility

Notifications You must be signed in to change notification settings

thesavant42/yoyo-gogo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yoyo-gogo

CircuitPython scrfipts to assist with robot mobility

Pin Configuration

Each ZSX11H motor driver has the following key input pins:

  1. PWM: Controls the speed of the motor.
  2. DIR: Sets the motor rotation direction (clockwise/counterclockwise).
  3. BRAKE: Activates the brake mechanism.
  4. STOP: Halts the motor.
  5. GND: Common ground.

Arduino Pin Assignments

LEFT MOTOR

Arduino Pin Motor Driver Pin Description
A0 PWM_L Speed control for left motor
A1 DIR_L Direction control for left motor
A2 BRAKE_L Brake control for left motor
A3 STOP_L Stop control for left motor
A4 SPEED_L Speed Pulse for left motor
True FWD_L Is "Fwd" correct? Invert if not

RIGHT MOTOR

Arduino Pin Motor Driver Pin Description
D9 PWM_R Speed control for right motors
D10 STOP_R Stop control for right motors
D11 BRAKE_R Brake control for right motors
D12 DIR_R Direction control for right motors
D13 SPEED_R Speed pulse for right motors
False FWD_R Is "Fwd" correct? Invert if not

The DIR_L/DIR_R pin logic is counter-intuitive. Default is 0, which turns the wheel "forward", and a 1 turns the wheel "reverse". The opposite side wheel will have logic; that's 1 to go "forward" (relative to the front of the Robot) and 0 to go "reverse".

About

CircuitPython scrfipts to assist with robot mobility

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages