UFactory uArm Controller User Manual

Page 1
uArm Controller
User Manual
V1.0.1
2018-12-28
Page 2
Product Introduction
Table of Contents
Product Introduction
Hardware Parameters
Hardware Installation
Preset Demo Tutorial
Software Installation
Github Demo
Release Note
01
02
05
06
06
08
19
uArm Controller is an open-source hardware based on Arduino MEGA 2560, and has a wide range of extendable functions. It's compatible with various peripherals and great for implementing your creative ideas.
1.27mm 4P
Extendable I/O
UART3-TTL
UART2-TTL
UART1-485
UART1-485
Type C*4
(for uarm connection)
128K EEPROM
Joystick
ADXL345
IIC IIC Digital Digital
128*64 OLED
Reset
Micro SD Card Slot
USB Input
RGB LED
Button*4
Power Switch
ATMEGA2560
Buzzer
01
Page 3
Hardware Parameters
Weight
0.15kg
Dimension(L*W*H)
150mm*132mm*281mm
Connection with PC
Micro USB
Input Voltage
USB 5V
Main Controller
ATMEGA2560 (Arduino compatible)
Display
128x64 OLED
Buttons
4
Rotary Potentionmeter
1
TypeC
4 (only for uarm connection)
RGB LED
1
Micro SD
1
4P Connector
2xDigital IOs / 2xIIC
Extendable I/O
6xdigital IOs
Operation Temperature & Humidity
0-35 30%RH-80%RH noncondensing
Storage Temperature & Humidity
-20-60 30%RH-80%RH noncondensing
Specification
1 2
128X64 Display Pin Description
BUTTON Pin Description
LCD_CS LCD_RES LCD_CD LCD_SCK LCD_MOSI
3 4
Micro SD Card Pin Description
TF_CS TF_SCK TF_MOSI TF_MISO
5 6
8
Joystick Pin Description
D13 SCK(D53) MOSI(D51) MISO(D50)
JOY_UP
A
6
1
B
C
D
4
2
JOY_DOWN JOY_LEFT JOY_RIGHT JOY_CENTRE
3
(Press Vil, Loosen Vih)
D42 D43 D44 D30 D35
D33 D41 D32 D37 D40
BUTTON_A BUTTON_B BUTTON_C BUTTON_D
(Press Vil, Loosen Vih)
RGB LED Pin Description
RGB_LED_R RGB_LED_G RGB_LED_B
(Vil On, Vih Off, Controlled by Hardware PWM)
IIC Device Address
EEPROM 24C128 Address ADXL345 Address
D47 D49 D12 D11
D2 D3 D5
D13
SCK(D53)
02
5
7 8
Buzzer Pin Description
Rotary Potentiometer Pin Description
BUZZER
(Hardware PWM Control)
7
D45
ROTARY
(Measurement Analog)
A15
03
Page 4
Peripheral Port Pin Description (1.27mm 4P)
112VNC
2GND
3TXD0
4D4
5D8
6D33
Port 1 2 3 4
Port1
SCL
SDA
5V
GND
Port 2
SCL
SDA
5V
GND
Port 4
D23
D22
5V
GND
Port 3 D25 D24 5V GND
Port1
Port2 Port3
1
1
1
1
Port4
IO Port Pin Description
TypeC Pin Description
UART2 & UART3 → TTL Serial Port Communication UART1
Note: the four-core TypeC cable in the market is not supported for this port, please link it to the test point in the back.
Type C*4
(for uarm connection)
→ RS485 Communication
UART3-TTL
UART2-TTL
UART1-485
UART1-485
04
75V 83.3V 9RXD0 10D6 11D9 12D10
Extendable I/O
1:12V(NC)
7:5V
Hardware Installation
ON
OFF
1
1
Connect the uArm Controller to your computer using the Micro USB cable.
2
Power on the uArm Controller (push up).
(For the Peripheral Port, a 1.27mm 4P cable should be purchased separately)
2
05
Page 5
Preset Demo Tutorial
1
Press the "Reset" button,reset the system.
2
Use the Joystick to control the movement (e.g. move around, up and down) when playing the snake game.
2
1
Software Installation
1.Download the Arduino IDE
2.GitHub:
https://github.com/uArm-Developer/Controller
3.Arduino Port Reference:
4.Development Language: C/C++
Note:When uArm Controller is connected with a computer,please press the "Reset" button.
When configure the Arduino IDE Hardware Platform and the COM Port (the
COM Port is allocated randomly by your computer), please use IDE for code writing or use Github routine code to develop.
06
(www.arduino.cc)
https://www.arduino.cc/reference/en/
As shown in the following picture, please press the "Upload" button to
upload firmware.
07
Page 6
Github Demo
doc→ User Manual driver→ Peripheral Routine image→ Product Image scene_demo→ Scene Demo sch→ Schematic Diagram of uArm Controller
Peripheral driver
At the moment, there are four routines under the "driver" folder (we will keep updating the routine, please check our Github content).
button_driver
For hardware connection, please refer to (Hardware Parameters→ Button Pin Description)
1.Download Project File: button_driver.ino
(https://github.com/uArm-Developer/Controller/tree/master/driver/button_driver)
About how to download a single file from Github, please refer to
(https://github.com/uArm-Developer/SwiftProForArduino/ wiki/How-to-download-single-file-from-GitHub)
2.Configure Arduino IDE,select the board as "Arduino/Genuino Mega or Mega 2560", Select the COM that allocated randomly by your computer, please refer to the follow­ing picture:
08
Note:When uArm Controller is connected with a computer, please press the
“Reset” button.
3.Press the "Upload" button to upload firmware.
09
Page 7
4.Press the "Serial Monitor" button to open Port Assistant.
5.Press button A,B,C,D to check the log of terminal printing.
2.Configure Arduino IDE,select the board as "Arduino/Genuino Mega or Mega 2560", Select the COM that allocated randomly by your computer, please refer to the following picture:
Note:When uArm Controller is connected with a computer, please press the "Reset" button.
joystick_driver
For hardware connection, please refer to (Hardware Parameters Joystick Pin Description).
1.Download Project File: joystick_driver.ino
(https://github.com/uArm-Developer/Controller/tree/master/driver/joystick_driver)
About how to download a single file from Github, please refer to:
(https://github.com/uArm-Developer/SwiftProForArduino/ wiki/How-to-download-single-file-from-GitHub)
10
3.Press the "Upload" button to upload firmware.
4.Press the "Serial Monitor" button to open Port Assistant.
11
Page 8
5.Push the Joystick to check the log of terminal printing.
Note:When uArm Controller is connected with a computer, please press the "Reset" button.
led_RGB_driver
For hardware connection, please refer to (Hardware ParametersRGB led Pin Description)
1.Download Project File: led_RGB_diver.ino
https://github.com/uArm-Developer/Controller/tree/master/driver/led_RGB_diver
About how to download a single file from Github, please refer to:
(https://github.com/uArm-Developer/SwiftProForArduino/ wiki/How-to-download-single-file-from-GitHub)
2.Configure Arduino IDE,select the board as "Arduino/Genuino Mega or Mega 2560", Select the COM that allocated randomly by your computer, please refer to the following picture:
12 13
3.Press the "Upload" button to upload firmware.
4.Test, and the RGB light will alternates with red, green and blue lights.
Page 9
oled_12864_driver
For hardware connection, please refer to (Hardware Parameters 128x64 Display Pin Description).
1.Download Project File: oled_12864_driver.ino
(https://github.com/uArm-Developer/Controller/tree/master/driver/oled_12864_driver)
About how to download a single file from Github, please refer to:
(https://github.com/uArm-Developer/SwiftProForArduino/ wiki/How-to-download-single-file-from-GitHub)
2.Configure Arduino IDE,select the board as "Arduino/Genuino Mega or Mega 2560", Select the COM that allocated randomly by your computer, please refer to the following picture:
4.Install u8glib.
Note:When uArm Controller is connected with a computer, please press the "Reset" button.
3.Open the "Manage Libraries" .
14 15
Page 10
5.Press the "Upload" button to upload firmware.
6.Check the Display Screen.
U∞g
https://www.ufactory.cc
joystick_with_uArm
1.Connect the uArm Controller and uArm Swift Pro with Type-C. (The program use the UART2-TTL interface)
2.Plug in the uArm Swift Pro.
Scene Demo
3.Connect the uArm Controller and Computer with USB.
At the moment, there is one routine under the "scene_demo" folder (we will keep updating the routine, please check our Github content).
16 17
Page 11
4.Download Project File: joystick_with_uArm.ino
Version
Description
(https://github.com/uArm-Developer/Controller/tree/master/scene_demo/joystick_with_uArm)
About how to download a single file from Github, please refer to:
(https://github.com/uArm-Developer/SwiftProForArduino/ wiki/How-to-download-single-file-from-GitHub)
5.Configure Arduino IDE,select the board as "Arduino/Genuino Mega or Mega 2560", Select the COM that allocated randomly by your computer, please refer to the following picture:
7.Install u8glib.
8.Press the "Upload" button to upload firmware.
18
Note:When uArm Controller is connected with a computer, please press the "Reset" button.
6.Open the "Manage Libraries".
9.Test, and use the Joystick to control the movement of uArm (i.e. move around); use the rotary potentiometer to control the up-and-down motion of uArm; press button C to adjust the speed; press button D to open/close the gripper.
Release Note
V1.0.0 Establish Topgun
V1.0.1 Add Preset Demo Tutorial Topgun
19
Loading...