Emakefun Encoder Motor Arduino Lib 1.1.1
Loading...
Searching...
No Matches
detect_phase_relation.ino File Reference

Example: Connect the encoded motor to the specified positions E0 as described in the example program. After the program runs successfully, it will print out whether kAPhaseLeads or kBPhaseLeads should be used based on the actual phase relationship between the A and B phases of the encoder during forward rotation of the motor, helping the user determine the value that should be set for the phase_relation parameter when creating an EncoderMotor object. More...

#include "encoder_motor.h"
#include "encoder_motor_lib.h"

Go to the source code of this file.

Functions

void setup ()
 
void loop ()
 

Detailed Description

Example: Connect the encoded motor to the specified positions E0 as described in the example program. After the program runs successfully, it will print out whether kAPhaseLeads or kBPhaseLeads should be used based on the actual phase relationship between the A and B phases of the encoder during forward rotation of the motor, helping the user determine the value that should be set for the phase_relation parameter when creating an EncoderMotor object.

Definition in file detect_phase_relation.ino.

Function Documentation

◆ loop()

void loop ( )

Definition at line 72 of file detect_phase_relation.ino.

◆ setup()

void setup ( )

Definition at line 63 of file detect_phase_relation.ino.