10.3 Use of the Arduino library

Support robotic arm types: myCobot280-Arduino

Use Cases: Open C:\Users\User\Documents\Arduino\libraries\MyCobotBasic\examples\ControlRobot\ControlRobot.ino, This case requires the board to be burned first and then connected to the robot arm, otherwise the upload will fail.

Using the bottom basic library you can freely develop and control our company's robotic arm under Arduino.

10.3.1 Modifications before compilation

Import the library file, if your robot arm is myCobot280-Arduino, please check if the board is Mega2560 or Uno, if it is:

1.Please put avr-libstdcpp under C:\Users\User\Documents\Arduino\libraries:

10-3-1-001

10-3-1-002

2.Please modify the size of the serial buffer in the avr official library, modify C:\Users\User\AppData\Local\arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\HardwareSerial.h, according to the following diagram:

10-3-1-003

10-3-1-004

If you are using myCobot280-Arduino, please check if the board is mega2560, if not, please open ParameterList.h, comment line 5, and uncomment the corresponding board:

10-3-1-005
1 when not using mega, add Commments "//"
2 When using uno, delete Comments "//"
3 When using mkr, delete Comments "//"
If you are using myCobot280-M5, you need to uncomment m5:

10-3-1-006
1 When using m5, delete Comments "//"
2 when not using mega, add Commments "//"

10.3.2 Selection of boards before compilation

1.Board for Uno、Mega2560, Tools --> Board --> Arduino AVR Boards --> Arduino Uno( or Arduino MEAG or Mega2560 ), see the following chart for details:

10-3-2-001
1 When using uno,select
2 When using Mega2560, select

2.Board for mkr wifi1010
Boards manager search samd, if not installed, install, first Tools --> Board --> Boards Manager, then search samd, see the following figure:

10-3-2-002

10-3-2-003

Board for mkr wifi1010, Tools --> Board --> Arduino SAMD --> Arduino MKR WiFi1010

10-3-2-004

results matching ""

    No results matching ""