INF2004-Project v0.1
 
Loading...
Searching...
No Matches
Encoder Demo Constants

Constants for the encoder demo. More...

Macros

#define ENCODER_PIN   22
 GP22 for encoder input.
 
#define MM_TO_CM   10.0f
 Conversion factor from mm to cm.
 
#define MOTOR_PIN_ANTICLKWISE   17
 GPIO pin number for anticlockwise rotation.
 
#define MOTOR_PIN_CLKWISE   16
 GPIO pin number for clockwise rotation.
 
#define PWM_CLKDIV   100
 PWM clock divider.
 
#define PWM_PIN   0
 GPIO pin number for PWM output to control motor speed.
 
#define PWM_WRAP   62500
 PWM wrap value.
 

Detailed Description

Constants for the encoder demo.