AISTEAM User Guide
AISTEAM User Guide
User Guide
i
AISTEAM User Guide
will be no errors or omissions in this document. We may make changes to the contents of
this document from time to time or periodically, which will be reflected in the new version
of this document.
Shanghai NASHENBOT Co., Ltd.
Address: 600 Yunling West Road, Putuo District, Shanghai, 4th floor
Website: https://www.nashenbot.com
Service line: 400-001-8330
ii
AISTEAM User Guide
Preface
Revision Record
August 12, 2021 1. Chapter 1, Section 2, add a description of the motor expansion
module ID
2. Chapter 1, Section 10, add a description of the V2 version of
the infrared barrier avoidance module
3. Chapter 1, Section 17, add a description of the encoder motor
module interface
4. Chapter 1, Section 18, add a description of the interface of the
V1 version of the ordinary motor module
5. The second one, section 4, menu bar: Set up, add a description
of modifying the motor expansion module ID
6. The second one, section 4 program module library: Intelligent
programming, increase the description of infrared barrier
avoidance
7. The second one, section 4 program module library : Motion
control, increase the description of ordinary motors
iii
AISTEAM User Guide
Catalog
1. Controller.........................................................................................................1
5. Switch module.................................................................................................5
iv
AISTEAM User Guide
1. Introduction.................................................................................................14
3. Install............................................................................................................ 15
Operation steps:......................................................................................15
4. Get started...................................................................................................20
menu bar................................................................................................. 20
Toolbar.....................................................................................................21
Programming.......................................................................................... 29
Programming area..................................................................................48
4) Download area.................................................................................49
v
AISTEAM User Guide
This chapter introduces the core module functions included in the AISTEAM series products
and their interface descriptions.
*Due to differences in product configuration, the modules introduced in this chapter are
not included in all product models.
1. Controller
The controller adopts the ARM Cortex-M3 architecture, the main frequency is 72MHz, and
the interface supports the fusion of rich sensor actuators on three platforms: artificial
intelligence, robots, and makers; the shell is compatible with the LASY and LEGO build
systems.
1
AISTEAM User Guide
Interface function
2
AISTEAM User Guide
3
AISTEAM User Guide
The motor expansion module adopts the ARM Cortex-M3 architecture, the main frequency
is 108MHz, and it supports ID customization (ID1~4, factory default ID1). A single module
supports the expansion of 4 closed-loop motors. At the same time, when 4 sets of
modules are connected in series, it supports the expansion of 16 closed-loop motors to
run at the same time; the shell is compatible with LASY and LEGO build systems.
Interface function
4
AISTEAM User Guide
The expansion screen module uses a 0.96-inch low-power OLED module with a resolution
of 128*64, a full-view display, and SPI communication; the exterior is equipped with a
high-transmitting acrylic protection board; the back supports building blocks to expand
and build.
The working voltage is 5v, the detection distance is 1~2cm, the interface type is digital
output; the back supports building blocks to expand and build.
5. Switch module
The working voltage is 5v, the detection distance is 1~2cm, the interface type is digital
5
AISTEAM User Guide
output; the back supports building blocks to expand and build.
Infrared remote control receiving module (left), Infrared remote control board (right)
Infrared remote control receiving: working voltage 5v, receiving range 0~1000cm, interface
type digital output; infrared remote control: working voltage 3v, remote control range
0~1000cm, infrared carrier frequency 38kHz, programmable keys have at least 15 ones; the
back supports building blocks expansion and construction.
The working voltage is 5v, the detection range is 20~90dB, the interface type is analog
output; the back supports building blocks to expand and build.
The working voltage is 5v, the detection range is 0-600LUX, 45°, the interface type is
6
AISTEAM User Guide
analog output; the back supports building blocks to expand and build.
Temperature detection mode: the working voltage is 5v, the detection range is 0~50 ℃ ±
1℃, the detection method is air contact, the interface type is digital output;
Humidity detection mode: the working voltage is 5v, the detection range is 20-90%±5%, the
detection method is air contact, the interface type is digital output; the back supports
building blocks to expand and build.
V2 version:
The working voltage is 5v, the detection range is 5-20cm, the detection accuracy is ±2cm
(white surface reflection), the interface type is analog output; the back supports building
blocks to expand and build.
Document Version V1.0.2 Copyright © Shanghai NASHENBOT Co., Ltd
7
AISTEAM User Guide
The working voltage is 5v, the detection range is 0.8~1.6cm, the interface type is analog
output; 5 channels can be integrated to return values independently; it comes with 5 visible
light sources for anti-interference; the back supports building blocks to expand and build.
The working voltage is 5v, the no-load current is 45mA, and the no-load speed is
2550RPM±15%; the blades are soft and anti-cut; the back supports building blocks to
expand and build.
8
AISTEAM User Guide
The working voltage is 5v, the colors are red, yellow, and green, and the light-emitting
angle is 180°; the back supports building blocks to expand and build.
The working voltage is 5v, the color range is RGB0~255, and the light-emitting angle is
120°; the back supports building blocks to expand and build.
The working voltage is 5v, the output sound pressure is ≥ 83dB, the interface type is
digital/analog output; the back supports building blocks to expand and build.
9
AISTEAM User Guide
Roof vision (left), front vision (right)
The working voltage is 5v, the viewing angle is 72°, the maximum resolution is 320*240, the
maximum code rate is 30Mbps, it not only supports AprilTag code recognition, face
detection, multi-color blocks (up to 4 at the same time) recognition and tracking, visual
custom data (up to 5 groups), but also supports PYTHON algorithm design, supports data-
to-graphic visualization; the structure supports pitch angle adjustment, roof vision
supports height adjustment; vehicle front vision supports bus serialization; module housing
supports building blocks to expand and build.
It can realize rich AI vision applications, such as LAB threshold debugging, template
matching, visual line inspection, and visual ranging.
Interface: 6pin, working voltage: 7.4V, rated speed: 75RPM±10%, reduction ratio: 1:120, no-
load current: 50mA, control mode: PWM speed closed loop; shell is compatible with LASY
and LEGO build system.
The interface is 2pin, with its own connection line, the working voltage is 7.4V, the rated
speed is 200RPM±10%, the reduction ratio is 1:120, the no-load current is 50mA; the shell
is compatible with the LEGO construction system.
V2 version:
10
AISTEAM User Guide
The interface is 2pin, the working voltage is 7.4V, the rated speed is 75RPM±10%, the
reduction ratio is 1:120, and the no-load current is 50mA; the shell is compatible with LASY
and LEGO construction systems.
The working voltage is 5V, the torque is 1.5kgf.cm, the angle range is 0~180°, and the
speed is 0.12 seconds/60°; the shell is compatible with the LEGO construction system.
The working voltage is 7.4V, the torque is 8kgf.cm, the angle range is ±120°, and the speed
is 0.1 second/60°; it supports the series connection of the servo bus; the shell is compatible
with the LEGO construction system.
11
AISTEAM User Guide
It support expansion such as robot bus serial screen, serial voice recording and
broadcasting module, it also supports servo bus serial robot arm and supports flame
detection, three-axis gyroscope, three-digit digital tube, etc.; AISTEAM will continue to
expand the very rich electronic modules .
The output voltage is 7.4V, the rated capacity is 1100mAh, the maximum discharge rate is
3C; the rated charging voltage is 8.4V, the rated charging current is 1A; the input and
output ports are DC5.5, supporting multiple batteries in parallel; the shell is compatible
with the LASY and LEGO building systems.
When the battery is low, you need to use a dedicated 8.4V1A charger to charge. When the
indicator light on the charger is red, it means it is charging, and when the battery is fully
charged, it turns green.
12
AISTEAM User Guide
13
AISTEAM User Guide
This chapter introduces the download and installation of programming software AIcode
and AISTEAM instructions.
*Due to the continuous update and iteration of the software version, the functions
introduced in this chapter are not included in all versions.
1. Introduction
AIcode's next-generation AI programming platform, which includes artificial intelligence
graphical programming and Python, not only can quickly complete simple, concise code
programs, but can also write complex logic algorithms.
Programming with AIcode can realize basic functions such as motion control, human-
computer interaction, and advanced functions such as intelligent vision, which can really
start the AI programming journey.
14
AISTEAM User Guide
the software supports writing user programs, updating controller firmware, and controller
distribution.
Get more help with project samples, etc. with the help of “Help” function in the software.
Operating system requirements: Only Windows 7 or above is supported.
Hardware requirements: the memory is not less than 2GB, the processor is not less than
1.5GHz, the screen resolution is not less than 1024x600.
3. Install
Prerequisite: The AIcode package has been obtained.
Operation steps:
Step 1:Unzip the acquired AIcode package.
Step 2: Find and double-click on "AIcodeSetup .exe" and read the User License
Agreement carefully.
15
AISTEAM User Guide
Step 4: Wait for the installation to complete.
Note: This procedure, which may be intercepted multiple times by the computer
security software, must "allow all operations" or will result in a failed software
installation or loss of functionality; If Blocking, exit the installation, temporarily
exit all protection software, and restart start step 1. For security reasons,
download the package on the official website.
16
AISTEAM User Guide
light
switch
USB
power
17
AISTEAM User Guide
Note: Only the first time you run the software, you must select the robot family
before you can switch between settings.
Step 5 Find the download area to see if the characters appear on the edge of the
download button.
18
AISTEAM User Guide
Note: The download area does not display characters, indicating that the
controller is not properly connected, you can try these steps accordingly:
(1) Select the right robot;
(2) Restart the controller
(3) Re-plug the USB on the controller;
(4) Change the USB interface on the computer;
(5) Reload the software.
19
AISTEAM User Guide
4. Get started
download
The shown above is the AIcode visual programming window, which is divided into menu
bar, toolbar, programming method, program library, programming area and download
area.
menu bar
1) file
New: Program
Open: Program
Save: Program
The program file format of the “new, saved and saved in other way” is .nsh; the opened
files, supporting program file. nsh and media file .jpg, . pdf、. mp4; Here is a channel for
quickly opening media files, but the media files are still opened as the default program for
the computer operating system.
20
AISTEAM User Guide
2)setting
3)help
About
Toolbar
1)Real-time data
21
AISTEAM User Guide
Real-time data is one of the most commonly used debugging tools, providing real-time
data on controller from A1 to A5 ports, motor expansion module from M3 to M4 ports,
and battery voltage.
Reference table for the return value range of each sensor module:
22
AISTEAM User Guide
return
values
14indicates ◀
15indicates ▶
16indicatesOK
Sound
The intensity is
strength 0-100%
proportional
detection
Light
The intensity is
sensitivity 0-100%
proportional
detection
23
AISTEAM User Guide
Infrared
The higher the value, the
barrier 0-4000
farther away it is
avoidance
1:0-4000
The five channels return
2:0-4000
values independently, and
Integrated
3:0-4000 the blacker the return
grayscale
value, the greater the
4:0-4000
detection
5:0-4000
24
AISTEAM User Guide
2)The image threshold
Step 2 Use a USB cable to connect the visual module directly to your computer.
Step 3 Click on the connection to turn on the image real-time monitoring function, as
shown below:
25
AISTEAM User Guide
The visual module monitoring screen is displayed at the source image in the upper left
corner of the threshold editor interface, as well as in the real-time monitoring of the image.
By setting the appropriate parameters, the visual module can also monitor specific objects,
and when the parameters shown in the following image have been adjusted, the visual
module can identify the parking sign.
Getting the LAB threshold values can be directly placed in the color recognition in the
following image.
26
AISTEAM User Guide
27
AISTEAM User Guide
3)Visual algorithms
Visual algorithm is a powerful AI vision module visual algorithm editor, you can use Python
code directly to design and edit the underlying algorithm of the visual module, with real-
time image display and LAB threshold display tools.
Stay tuned for more detailed feature introductions and examples!
28
AISTEAM User Guide
Programming
1)Modular programming and Python code programming
Showing python code is a very useful code-control feature when programming in modular;
29
AISTEAM User Guide
This is a great help to develop code programming interest and programming ability.
module
Type description Module example
type
Return the
information you get,
Information
such as text, values,
class
lists, and other
different types of data
Based on the
Boolean information obtained,
class return "True (1)" or
"False (0)"
Execute the
instructions based on
Conditional
whether the
conditions are met
30
AISTEAM User Guide
2) Intelligent programming
Perceive
Single-trail
follow
Switch
Infrared
remote
control
Sound
strength
detection
Light
sensitivity
detection
31
AISTEAM User Guide
Temperat
ure
detection
Humidity
detection
Infrared
barrier
avoidanc
e
V1&V2
Integrate
d
grayscale
Fan
Module
Physical diagram Module diagram
name
Turn on the
fan
Operation
Module
Module diagram Notes
name
32
AISTEAM User Guide
logic calculation:
Use user-created parameters or
logic referenced variables for "and"
relationship logical operations, usually in
: and conjunction with conditional
judgment. The "and" operation is
true when both logical
comparisons are true
logic calculation:
Use user-created parameters or
logic
referenced variables for "or"
relationship
logical operations, the "or"
: or
operation is the middle of two
logical comparisons, and when
fewer are true, the logic holds
33
AISTEAM User Guide
true
Control
Module
Module diagram Notes
name
If (conditional) statement in C
language, the user can set
Conditional
variables, sensor readings,
judgment
parameters to control the
condition.
34
AISTEAM User Guide
If (condition) in C language...
else... statement, the user can set
variables, sensor readings,
Judgment of
parameters to control the
supporting
conditions. If the condition meets
conditions
the requirement, the upper
statement can be executed, or
the lower statement is executed.
Variable
Variables are important concepts and functions in programming that can be used to store
data information, For example, you can save a point-in-time sensor reading into a variable,
which can then be called in a program, or to simplify the program with variables to achieve
the countdown.
Module
Module diagram Notes
name
Customization
35
AISTEAM User Guide
When the program becomes complex, we can take some of them out and put them in a
building block of our own definition, so that we only need to call the block, which also
does what we want. Defining blocks also makes it easier for us to understand the structure
of the program and facilitate later debugging.
Module
Module diagram Notes
name
Make new
Create a new building
building
block module
blocks
36
AISTEAM User Guide
3)Motion control
37
AISTEAM User Guide
Control the
wheel
chassis
translation
speed, angle
Control the
wheel
chassis The speed range -
rotation 100 to 0 is
speed, clockwise;
angle, time
The speed range 0
to 100 is
Control the
counterclockwise;
wheel
chassis The time range ≥ 0
rotation
speed, angle
Encoder motor
Module Module
Notes
name Diagram
Control the
speed of the
4 encoder
motors at Speed range -
the same 100 to 100;
time
Time range ≥
Control the 0
speed of 1
encoder
motor
38
AISTEAM User Guide
Control the
speed and
time of 1
encoder
motor
Stop the
encoder
motor
The
encoding
value of the
encoder
motor is
zeroed
Get the
encoding
value of the
encoder
motor
Ordinary motors
Module Module
Notes
name Diagram
39
AISTEAM User Guide
1 normal
motor
speed
Speed and
time of 1
normal
motor
Stop the
ordinary
motor
Rudder
Module Module
Notes
name Diagram
D1 rudder
Angle range: 0~180°
angle
ID range 1~16
S1 rudder
angle Angle range:
120~120
40
AISTEAM User Guide
4) Human-computer interaction
Display
Screen
display Display English
numbers or
variables;
Clear screen
Line range 1~4;
display
X wide range
0~128;
The screen
Y height range
is displayed
0~64
to the
coordinates
41
AISTEAM User Guide
The screen
is all black
or all white
Screen
rotation
Draw points
Draw a line
Draw a
circle
Draw a
rectangle
Monochrome light
Module Module
Notes
name Diagram
Turn on the
monochrome
light
42
AISTEAM User Guide
Full-color lights
Module Module
Notes
name Diagram
Color range
Turn on the
monochrom
e light
5)Smart voice
43
AISTEAM User Guide
Buzzer
Module Module
Notes
name Diagram
Notes C1 to 7;
Turn on the
buzzer Beat 1/2, 1/4,
1/8, 1/16
44
AISTEAM User Guide
6)Intelligent vision
Image recognition
45
AISTEAM User Guide
Color
recognition
threshold
(multi-color)
Get color
recognition
(monochro
me)
Get color
recognition
(multi-color)
Get Tag
recognition
Get face
recognition
Get
customized
data
46
AISTEAM User Guide
7)Expansion module
NASHENBOT EX
Module
Physical diagram Module diagram
name
Remote
control
handle
Digital tube
(3-bit)
Flame
sensor
Gyroscope
Audio
recording
Display (2.8
inch color)
47
AISTEAM User Guide
Programming area
1)Main program
The main program will be downloaded to the controller to execute, the program module
that is not connected to the main program is invalid and does not work after downloading.
All program modules are valid and can be executed after downloading (left) after waiting
0.5 seconds for the program module to be invalid (right)
2)View tool
48
AISTEAM User Guide
Zoom in, zoom out, and navigate to the main program view
3)Operating area
By dragging and dropping the connection of the program module, the module will prompt
the snap connection status when it is near;
The program module parameters are set by keyboard input;
The right-click is include additional actions, such as copying, pasting, adding comments,
disabling, etc.
Drag and drop blank space or drag scroll bar to move the view.
Download area
Click the arrow to select the program path to download to the controller;
Click “Download” to download the main program to the controller.
49