-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.md~
131 lines (102 loc) · 4.46 KB
/
README.md~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Infineon TLE94112LE Test
## Interactive test platform for the infineon TLE94112LE Shield for Arduino

## Design note
This is the software application created with the Arduino IDE 1.8.3 to run the
test platform.
This application is specific for the hardware building but can be easily modified
to run with different kind of brushed motors and other inductive components.
The test platform has been created to manage interactively most (almost all) of
the features and functions of the motor controller shield. This version
uses 6 brushed geared micro motors running at 6V max (power is set to 5.5V).
Warning: using and higher power for motors a the LCD backlight should be powered
bt the Arduino 5V to avoid damage.

### Functional components
The platform has a LCD display to interactively show the motor settings. Every
single motor can be set separately or all together. The TLE94112LE shield motors
are powered by a 5.5V regulated DC-DC small board while a potentiometer connected
to the Arduino channel A0 is used to dynamically modify the PWM duty cycle.
Please note that the duty cycle configuration is related to the PWM even also the
software permit setting different duty cycle values for every single motor it is
not working due the limitation of the board. The duty cycle setting should be
used selecting all the motors together. This issue will be updated in future
versions.
### MCU

This software is compatible with Arduino UNO R3, Genuino 101 and Arduino 101 but
the best performances are reached with the Infineon XMC1100 Boot kit Arduino
compatible board.
## Commands
Excluding the potentiometer on the board all the controls are sent via terminal
through a USB-to-serial connection. When the system is in _running_ mode it
can accept configuration commands that will be effective after a _stop_ and
_start_ call.
If errors occur while the system is running these are shown in detail on the
serial terminal and are notified on the LCD screen
The available commands are listed below:
### Direction control
- __cw__ : clockwise rotation
- __ccw__ : counterclockwise rotation
- __accel__ : Enable the acceleration when motor start
- __noaccel__ : Disable the acceleration when motor start
### Action commands
- __start__ : start all motors
- __stop__ : stop all motors
- __reset__ : reset the system to the default
### Duty cycle settings to PWM channels
- __dcmanual__ : Set the duty cycle value depending on the pot
- __dcauto__ : Set the duty cycle current limits
- __dcmin__ : Set the min duty cycle value via pot
- __dcmax__ : Set the max duty cycle value via pot
- __dcinfo__ : Shows the duty cycle range for the selected PWM channel
### PWM channel selection for duty cycle settings
- __dc80__ : Set the duty cycle to the PWM channel 80Hz
- __dc100__ : Set the duty cycle to the PWM channel 100Hz
- __dc200__ : Set the duty cycle to the PWM channel 200Hz
- __dcPWM__ : Set the duty cycle to all the PWM channels
### Motor select for settings
- __all__ : Select and enable all motors
- __none__ : Disble all motors
- __m1__ : select motor 1
- __m2__ : select motor 2
- __m3__ : select motor 3
- __m4__ : select motor 4
- __m5__ : select motor 5
- __m6__ : select motor 6
### Motor enable
- __m1+__ : enable motor 1
- __m2+__ : enable motor 2
- __m3+__ : enable motor 3
- __m4+__ : enable motor 4
- __m5+__ : enable motor 5
- __m6+__ : enable motor 6
_Enabling motors does not change their status nor the enabling_
### PWM Frequency selector (assign PWM channels to motors)
- __noPWM__ : No PWM
- __80__ : PWM 80 Hz
- __100__ : PWM 100 Hz
- __200__ : PWM 200 Hz
### Freewheeling mode motor(s) setting
- __fwactive__ : Fereewheeling active
- __fwpassive__ : Freewheeling passive
### Show all motorws configuration
- __conf__ : Dump the current settings
### Configuration dump
Below the default settings in the tables shown on the terminal
after a _conf_ command call.
### Motors settings
Motor|Enabled|Active FW|Dir|PWM
|-----|-------|---------|---|---
| M1 | No | Yes | CW| No|
| M2 | No | Yes | CW| No|
| M3 | No | Yes | CW| No|
| M4 | No | Yes | CW| No|
| M5 | No | Yes | CW| No|
| M6 | No | Yes | CW| No|
### PWM settings
PWM Chan|DC Min|DC Max|DC Man|Accel
|--------|------|------|------|----
| 80 Hz | 50 | 255 | No | No |
| 100 Hz | 50 | 255 | No | No |
| 200 Hz | 50 | 255 | No | No |