Skip to content

project-sternbergia/lkm_m5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lkm_m5

M5 stack library for Shanghai Lingkong technology products.

Supported framework

  • Arduino for ESP32

Supported device (ESP32)

  • M5Stack Basic V2.7

Tested LKM motors

H/W Components

How to run sample

Arduino IDE

  1. Clone MCP_CAN_LIB and lkm_m5 to Arduino Library directory.
cd ~/Arduino/libraries
git clone https://github.com/coryjfowler/MCP_CAN_lib.git
git clone https://github.com/Locoduino/RingBuffer.git
git clone https://github.com/project-sternbergia/lkm_m5.git
  1. Open lkm_m5/examples/control_mode_example.ino with Arduino IDE

  2. Build and write firmware to M5Stack

Sample Code

control_mode_example.ino

Check lkm motor behaviour using M5 stack.

  • Middle Button - Change Control Mode (Position Mode -> Speed Mode -> Current Mode)
  • Right Button - Increase control value
  • Left Button - Decrease control value

References

License

  • MIT