KeiganMotor KM-1 control library using I2C communication
Documents web site
This library allows an Arduino/Genuino board to control KeiganMotor KM-1 using I2C communication.
Please refer to the following page.
- Japanese: https://document.keigan-motor.com/software_dev/ports_on_wire
- English: https://en.document.keigan-motor.com/development-environment/comm_on_wire.html
NOTE You should add pullup resisters as small as possible between SDA and Vdd and between SDL and Vdd.
Including the library and initialization are required to control KeiganMotor.
Initialize with I2C slave address
The default I2C address of KM-1 is "0xA0"
Start I2C communication
See "examples" folder
motor.enable(); motor.speedRpm(10); motor.runForward(); motor.wait(5000); // Wait Queue motor.runReverse(); motor.wait(5000); motor.stop();
Change I2C Address
motor.i2cSlaveAddress(0xB0); motor.saveAllRegisters(); delay(2000); motor.reboot();
- Arduino UNO / Mega / Mega 2560
- KeiganMotor KM-1 series
$ git clone https://github.com/keigan-motor/Arduino-I2C-KM1
@tkeigan Keigan Inc.