3300 views|4 replies

23

Posts

0

Resources
The OP
 

[AutoChips AC7801x motor demo board evaluation] Development environment construction [Copy link]

 

In the previous article, we introduced the hardware schematic diagram of the AC7801x motor development board. Now let’s complete the construction of the development environment.

First, we come to the official website of Hefei Jiefa Technology, but there is no information we need here. We need to enter Jiekai and then jump to another page.

This is the page we are looking for. Select Technical Support to enter the Developer Resources module.

Here is the information we need to download. AutoChips provides a one-stop motor development tool, including MotorStudio and AutoGenStudio. The former is responsible for the configuration and monitoring of the motor control solution, and the latter is responsible for code generation. These two need to be used together during the development process.

Download both softwares. After installation, open MotorStudio and take a look.

The first thing you can see after opening the software is that the page is in Chinese. After all, it is our own domestic company. At the same time, the software page is also very beautiful, with flat icons and reasonable placement, which makes people see it at a glance.

The software comes with two routines. We choose the first routine to open

You can see that this is the configuration page for the motor and controller. On the left is the configuration page for the drive mode and chip peripherals. On the right, the inverter bridge and motor are displayed graphically. When you need to configure parameters, you can click the tab to enter the specific configuration.

Click on the motor to open the motor configuration page. You can see that you need to configure according to your own motor parameters. It is a pity that this page is not in Chinese, but it is understandable. After all, it is more convenient and universal to express these parameter terms in English. The motor I have is a brushless DC motor with Hall 57 produced by Beijing Times Chaoqun. In the first test, I want to use the sensorless six-step square wave method to control it, so the motor type here should be BLDC

It can be seen that after selecting BLDC, the parameters that need to be filled in are much reduced. You only need to fill in the number of pole pairs, maximum speed and maximum current of the motor.

Next, the motor speed position sensor

You can see that there are two sensing methods supported here, one is sensorless and the other is Hall sensor

Then click Inverter Parameters

Here you need to set the parameters of the inverter bridge. We are using the official development board, so you can keep the default parameters.

Next, let’s take a look at the voltage parameter settings

Here you need to configure the bus voltage and the voltage divider resistor value of the bus voltage acquisition voltage divider circuit. This resistor can be found in the schematic diagram of the development board. The schematic diagram has been discussed in the previous article, so I will not repeat it here.

Under the BLDC parameter tab on the left, you can configure some parameters of the BLDC control method. The specific contents are as above

Next, let's take a look at the motor monitoring tab.

On the basic parameter page, you can see that some parameters are presented in an intuitive graphical UI. The right column can control the start and stop of the motor, as well as display the motor's fault parameters. The current feedback speed of the motor can be displayed in real time below.

Click the register tab to see the value of the internal register of the main control chip, which is convenient for monitoring the running status of the motor.

Click on the algorithm parameters to configure the current PID parameters. You can select the output values of the two channels of the DAC of the main control chip. These two channels can be configured as different register parameters, which is convenient for observing the changes of these parameters with an oscilloscope.

In addition, MotorStudio also has a built-in serial port drawing area. After connecting through the serial port, you can display the value of the register you want to observe in real time through the drawing page. The serial port drawing page is as follows:

After setting all the parameters, you can configure the generated code. Click the gear icon at the top of the page to enter the settings of the generated code.

You can choose the compiler here. Since I use Keil, I choose MDK-ARM V5

Then set and generate the code directory and click OK. Next, you can click Start Generation next to it, and the configuration and generation of the development project is completed.

The code generation function of MotorStudio depends on AutoGen Studio. Be sure to install AutoGen Studio before using MotorStudio.

Next, let's take a look at the AutoGen Studio page

After opening the software, you can see that the page of AutoGen Studio is as simple, elegant and beautiful as ever. It is also in Chinese version, which must be praised!

We click on Create a New Project to experience the process of running the code generated by AutoGen Studio

After clicking Create a new project, you need to select the chip to be used. Here, 52 chips from AutoChips are supported. We choose the chip AC78013FDLA used on the development board.

After completing the chip selection, you can see that the specific configuration page of the on-chip peripherals has been entered here. This is very similar to ST's STM32CubeMX tool. Select the corresponding peripherals you need to use on the left, configure the parameters, and then the software can automatically generate the initialization code for the peripherals, which greatly reduces the workload of development.

In the tab below, you can select the clock configuration. You can see that the clock tree of this chip is much simpler than that of STM32. It only takes a few simple steps to configure it.

AutoChips ' chips are mainly motor control chips, so a separate PWM peripheral is on board. You can see here that the PWM function of the chip is listed separately, and you can see that there are many PWM channels, a total of eight channels, and two PWM brake signals. I have to say that this chip is really friendly to motor control developers. Thumbs up!

After completing the peripheral configuration, you can select the project settings for generating code. Here you can set the project name and location, etc.

So far, the construction of the motor development environment has been completed. I still want to say a little more here. During the entire development environment construction process, I have a better understanding of Jiefa Technology. It can be seen that this company is very serious about making products. The software and hardware tools provided are very comprehensive, and the software page design is also very beautiful and user-friendly. It can be said that it is the company that I know of that is most dedicated to motor development products in China. From hardware to software, it provides a one-stop service. Through these two development tools, the motor development cycle can be greatly shortened. At the same time, it is also very friendly to entry-level users. It provides a full Chinese development manual and a full Chinese software page. This is really a big thumbs up! I think Jiefa Technology has a promising future, and domestic chips have a promising future. If it continues to develop in this way, in a few years, our dependence on foreign chips may really decrease greatly. After all, it can be seen from Jiefa Technology that it is not that we can't make good things in China, but some companies don't do it with their heart and don't do it from the user's perspective. I really like Jiefa Technology's products, and I will try to use Jiefa's chips in future projects. I just want to make a suggestion, that is, Jiefa doesn't seem to care much about retail channels. When I searched for Jiefa Technology's chips and development boards before, I found that they were completely unavailable on Taobao. This is very annoying. Such a good product is actually unavailable. This is undoubtedly not conducive to the cultivation of new users. I hope Jiefa can pay more attention to retail, at least open a channel for individual users to purchase. The above is my feeling.

Everything is ready, only the east wind is missing. In the next article, I will complete the test of using this development board to drive the brushless DC motor, so stay tuned.

This post is from Domestic Chip Exchange

Latest reply

Is there an open source environment?   Details Published on 2023-9-8 14:09
 
 

1942

Posts

2

Resources
2
 

JieFa has quite abundant development resources, especially the AutoGen Studio software, which is very useful for assisted development!

This post is from Domestic Chip Exchange
 
 
 

7462

Posts

2

Resources
3
 

A bit like ST's MotorControl Workbench

This post is from Domestic Chip Exchange

Comments

Yes, it can be said that it is the localized MotorControl WorkBench  Details Published on 2020-11-17 22:13
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

23

Posts

0

Resources
4
 
freebsder posted on 2020-11-17 21:33 A bit like ST's MotorControl Workbench

Yes, it can be said that it is the localized MotorControl WorkBench

This post is from Domestic Chip Exchange
 
 
 

18

Posts

0

Resources
5
 

Is there an open source environment?

This post is from Domestic Chip Exchange
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list