Skip to content

Using 9axis-imu hayate_imu in this project to evaluate whether the A/B phase pulses of the encoder, which is the basis for calculating the rotation speed of motor output shaft, are correctly measured or not, and to evaluate the accuracy and accuracy of DC motor PID control.

License

Notifications You must be signed in to change notification settings

soarbear/hayate_motor_ros

Repository files navigation

hayate_motor_ros

Using 9axis-imu hayate_imu in this project to evaluate whether the A/B phase pulses of the encoder, which is the basis for calculating the rotation speed of motor output shaft, are correctly measured or not, and to evaluate the accuracy and accuracy of DC motor PID control.

Required Hardware

DC brush motor, Magnetic encoder, Arduino Leonardo, Adafruit Motor Shield v1.2 compatible board, 9-axis sensor hayate_imu v3.2, Raspberry Pi 3 or 4, PC

Required ROS packages or LIBs

rosserial, hayate_motor_ros, hayate_imu_ros, ros_lib by rosserail_arduino with Arduino IDE, Adafruit-Motor-Shield-library(modified, Timer3A/D5-pin/PWM frequency changed to 4KHz), arduino_node(ino) on Leonardo with Arduino IDE

ROS node interaction status

hayate_motor_ros ROS node interaction status

Launch

roslaunch hayate_imu_ros hayate_imu.launch

roslaunch hayate_motor_ros hayate_motor.launch

Evaluation environment

DC motor PID control evaluation environment using hayate_imu.

motor_pid_control_evaluation_environment

PID control curve

Target value of PID control, rotation speed by encoder, rotation speed curve measured by hayate_imu.

pid_anguler_velocity_by_hayate_imu_encoder_counter

PWM pulse

PWM pulse by oscilloscope.

pid_pwm_wave_by_oscilloscope

For more in Japanese

https://memo.soarcloud.com/encoder-motor-pid-control-with-hayate_imu/

About

Using 9axis-imu hayate_imu in this project to evaluate whether the A/B phase pulses of the encoder, which is the basis for calculating the rotation speed of motor output shaft, are correctly measured or not, and to evaluate the accuracy and accuracy of DC motor PID control.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published