GETTING START WITH GiantNEO
Author: Tom Tang
Email: aa159231@gmail.com
Twitter: @weipo_tang
Description
It is a modified InstaSPIN-FOC project for indoor smart bike trainer. The whole system is based on the open source project "InstaSPIN-FOC" from TI under BSD licience. This project presents a impedance control struct which included a PI-type torque observer and a impedance reference model. By all this skills, we can simulate the inertia and friction of flywheel by PMSM which we call it "electronic flywheel".
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
For more info. about smart trainer.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
我的開發環境
-
開發板 TI F28069M
附帶XDS100 v2電路 使用JTAG介面對TI F28069M燒錄
-
開發環境 Windows + CCSTUDIO + git bash
-
Compiler TI C2000 ccs1220
-
所有硬體設備
A QUICK START
-
下載並安裝 TI CCSTUDIO and GIT for windows
-
打開git bash
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
-
打開Code Composer Studio->project->import CCS projects
Select the “ccs” folder at the appropriate MotorWare revision, board and MCU target combination to import all projects for these labs.: Ex: C:\ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_foc\boards\drv8301kit_revD\f28x\f2806xF\projects\ccs
Do NOT select Copy the projects into the workspace work out of the parent ti\motorware\motorware_#####_## directory
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
-
Make sure all the signals are functional
- SVPWM 6pins
- ADC include current volatge total 6pins
- two Potentialmeter check DC source and two signals pins
- The 7th switch control signal 1pin and DC source for the 7th gatedrive
- Motor three phase
- Energy resistor
- DCBUS(48V)
- UART tx rx 2 pins
- The USB port to your computer
-
Navigate to proj_lab21.c and user.h. Check the defines in the user.h. it should be look like picture below at first.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
MW_DRIVER為EMTRC開發的驅動版,目前開發中。
-
Build, debug and reset the program under CCS
-
Open Scripting console and load proj_lab21.js
"D:\GIANT\GiantNEO\motorware\motorware_1_01_00_18\sw\solutions\instaspin_foc\src\proj_lab11.js"
-
Set gMotorVars.Flag_enableSys = 1 gMotorVars.Flag_Run_Identify =1
-
You are ready to go. you can also use scope to check dcbus voltage, motor phase current and the 7th switch control signal.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
-
Any update of the projects, EX: new comment message, new function …etc. git commit -a
in the git bash and write your commit.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
How to write the commits
-
git push
push ur code to the github.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
U can git log
to check the commit message
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Motor drive/control HARDWARE
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
電路原理,專案需要操作在動力機與發電機模式,當處在發電機模式會有回升電壓,因此電路架構方面需增加7th開關與功率電阻。
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- Drive board DRV8300DRGE-EVM & The 7th switch
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
input voltage |
output current |
software current limit |
6V - 100V |
30A (phase peak) |
25A |
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
DRV8300DRGE-EVM mouser
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
The 7th switch
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
TO be continue…
電路板規格
NEO規格
發電機模式
DC電壓 |
DC電流 |
Phase current(Peak) |
功率 |
110V |
20A |
85A |
2.2kW |
電動機模式
EMTRC規格
發電機模式
DC電壓 |
DC電流 |
Phase current(Peak) |
功率 |
80V |
20A |
61A |
1.6kW |
電動機模式
- 發電機模式 DCBUS 80V
- 功率電阻4歐姆
- 最大功率1.6kW
- DC 20A
TI公版規格
發電機模式
DC電壓 |
DC電流 |
Phase current(Peak) |
功率 |
48V |
10A |
25A |
600W |
電動機模式
TI InstaSPIN-FOC base feature
1. Sensorless motor drive
All labs are using sensorless control methods
include Sliding mode and High Frequency Injection.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
PMSM Sensorless FOC2. Motor Parameter IDentify
- LAB 2 Electrical parameter ID can ID Ld, Lq, Rs and lambda
- LAB 5C Physic parameter ID can ID Inertia(J) and Friction(B)
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
參數ID原理可參考The GIANT instaspin application guide3. Inverter Verifercation
- LAB 1a CPU and INVERTER setup
- LAB 1b Open loop control(V/F control) for hardware integrity verification
- LAB 1C Closed current loop for signal chain verification
4. Auto ADC offset calibration
LAB3 ADC offset calibration
5. PMSM CURRENT LOOP CONTROL
LAB04
iq電流命令為馬達的line2line電流peak值。
id電流命令可進行flux weaking控制
6. PMSM SPEED LOOP CONTROL
LAB05b Speed mode and tuning speed PI
7. IQ math optimization
當我們可以確定每個方塊輸入與輸出的數值範圍後,透過TI所提供的IQLIB,我們可以挑選合適的IQ值,對程式碼進行精確度和速度的優化,甚至在整個專案中使用多種不同的IQ值,更進一步優化程式。
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
TI IQ LIB8. DC bus comp and angle Delay Comp
DC bus comp
keeps the proper voltage output on the inverter regardless of the actual Bus. To explain the effect, if you have a nominal 350V bus, and your algorithm determines it needs 300V, it may produce a duty cycle of 85.7%. With DC Bus compensation you are measuring the actual bus, so that if the bus is actually 325V, and you still want the 300V output, you produce 92.3% duty cycle.we get this effect not by directly changing the duty cycle - which can be unstable and saturate - but by scaling the proportional gain of the current controllers.
angle Delay Comp
The angleDelayComp function compensates for the delay introduced from the time when the system inputs are sampled to when the PWM voltages are applied to the motor windings.
9. USER_checkForErrors
Checks for errors in the user parameter values.
10. Advance feature
-
LAB07 Rs Online calibration
-
LAB 11b Vibration Compensation
-
LAB 9 field weakening(弱磁控制)
-
LAB 10-a over-modulation
-
LAB 10-e Flying start
-
LAB 10-d dual motor control
-
LAB 05d e f SpinTAC Speed Controller
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
弱磁控制
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
over-modulation
Something Special in LAB 21 and LAB 11
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
6種模式切換
LAB 11 |
LAB 21 |
Sliding mode |
HFI + Sliding mode |
SPEED主動模式 |
SPEED主動模式 |
CURRENT阻力模式 |
CURRENT阻力模式 |
REFERENCE阻力模式 |
REFERENCE阻力模式 |
DCBUS保護(60V) |
DCBUS保護(60V) |
1. impedance/Admittance control
實現訓練台核心演算法IMPEDANCE CONTROL。
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
阻抗控制簡介2. Customized USER.H
對原本的user.h進行修正,可方便使用者任意更換驅動版與馬達。
3. USART
USART communicate with computer.
輸出絕對角度與扭矩,量化騎乘路感,以提供開發者不同的路感設計。
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
UART with RPI3 and serial plot4. PID type controller implement in C
系統皆為一階系統,提供PID控制器C語言實現方法,專案中提供Torque observer and Reference model,未來使用者能根據自己的需求實現更多一階PID控制器。
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
控制系統基礎複習5. DCBUS Regulate
提供dcbus regulate fun提供直流電壓保護功能與直流電壓控制功能,使系統能夠操作在發電機模式。
Development environment
- Add .gitignore to only track .c and .h files
- Add USART function in LAB11 and LAB21 only for debugging.
- Remove unnecessary files in the project.
TACXNEO馬達規格
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
本實驗所使用馬達基本參數如下表
馬達型號 |
Tacxneo 2t |
額定電壓 Rated Voltage |
100VDC |
額定功率 Rated Power |
2.2 kW |
額定轉矩 Rated Torque |
45Nm |
額定相電流 Rated Phase Current |
45.8A |
額定轉速 Rated Speed |
250 RPM |
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
電氣參數
Rs |
Ld |
Lq |
|
Kt(Nm/A) |
Ke(RPM/Vdc) |
0.0534 |
0.0000512 H |
0.0000512 H |
0.237 |
1 |
250RPM/48V |
TO DO …