搜索
bottom↓
回复: 2

关于AVR493与ATMEL公司的EMAIL往复

[复制链接]

出0入0汤圆

发表于 2008-7-2 19:01:38 | 显示全部楼层 |阅读模式
发送时间: 2008-06-30  21:46:12  
收件人:
抄送:  
主题: (ATTicket:331858) Support Form: avr493 application note can not run  
  
(Please keep the subject when replying to this mail)
Hello,
First, I advice to do not use the old CD you could have received in the past. The data on the CD are very confusing, a lot of sources are not up to date .
For ATAVRMC100 boards, all sources with documentation are available on the Web :
AVR492 for BLDC motor in sensor based mode.
AVR493 for BLDC motor in sensorless mode.
The AVR493 requires an additional hardware for sensorless.
The AVR493 firmware is dedicated for sensorless motor. In that case the rotor position is delivered by external circuitry the schematic of which is referenced ATAVRMC101. Only this sensorless mode needs external hardware.
So the cause could be the hardware you have designed. Could you, please, confirm you have used the schematics we have included in the Application Note ?
Best Regards,
Gilles Labarre
AVR PWM Support
Atmel Technical Support Team


以下是我根据atmel公司的email写的回信,下次回复来了再贴上.


Hello, Gilles Labarre

first, I have tried AVR492 with avr studio and atavrmc100 with motor center software. They works well. The hardwares are JTAGEICE and ATAVRMC100, a board (may give it name series board) include max232 for series conmmunication. and the three boards still use in avr493 in my test.

After received your email,  I download the AVR493 source code to confirm the data up to date . The web is  

http://www.atmel.com/dyn/general/advanced_search_results.asp?device=1&tools=1&faqs=1&datasheets=1&appNotes=1&userGuides=1&software=1&press=1&articles=1&fHimems=1&checkAll=1&checkAllReference=1&target=avr493  

About hardware, I have made the Analog Comparators Board described on the page 13 of avr493 document.  And I connect the three input (phase A, B, C) of analog comparators board to the three phase line of motor(FL42BLS01-001) in parallel connection style. The 3 output named sensorless A, B, C connect to sensor A,B,C (J5-5,J5-6,J5-7) in ATAVRMC100.

I conncet JTAGEICE mkII to PC using USB on one side. On another side, I conncet JTAGEICE MKII to ATAVRMC100 by ISP(J3) to use On-chip debugWire.

the communication is done by the series board just used in avr492.

Then, I use IAR Assembler for AVR 5.11B/W32 (5.11.2.5) to open the bldc_sensorless.eww in the AVR493 after decompression. And I click the menu of IAR: Project->Option->General Options->Target. in the dialog window I set the Processor configuration-> --cpu=pwm3b, AT90PWM3B. After that, still click Project->Option->Debugger->setup->Driver , I chose JTAGEICE mkII.  And  still in menu Project->Option->Debugger->JTAGEICE mkII->JTAGEICE mkII 1, in communication I chose 'USB'; in download control , I chose 'allow download to RAM'.  And in menu Tools->Options-> Stack, I disabled the choice " stack pointers not valid until program reaches: main. Others keep default. Then I biuld all files and go into debuge.
in debuge state, I chose run(in menu named "go"). The communication can be setup. the communication between motor center and mc100 can be built. so I click start botton in motor center.

Obviously, the motor begin to run but only 1 or 2 seconds, then stop, after while , it run again, but after 1 or 2 seconds , it stop.  repeatly.

I can not stand for it . so I grasp the shaft of motor , make it run, it turn fater, but after 2 or 3 seconds , stop again. Only I grasp and turn it again, it run and stop again.  the current displayed in power supply reach to 2~3A, the 47uF capacitor and the 7805 chip turn to be hot if time is longer. So I click the button break in debug menu of IAR.

if want to try again, I could reset in debug menu of IAR, and click ' go ' button . the phenomenon can be act again .

now , let me  come to eliminate the suspicion of my analog comparator board.  The graph below is get by this condition:

1   the motor(FL42BLS01-001) is drived by another running motor wholly, that means no electronical power directly give to the motor we test(FL42BLS01-001) to reduce noise signal except the BEMF.
2   the phase A(input) of my analog comparator board is connect to the phase A of FL42BLS01-001.
3   the output (sensorless A,B) of my analog comparator connect to the Tektronix TDS2024B's CH1 and CH2's probe.


  CH1------sensorless A (output ) of analog comparator
  CH2------sensorless B (output ) of analog comparator
  CH3------Phase A of motor
  CH4------1KHz 5V square wave suppled by TDS2024B  

the waves of phaseb,c and sensorless c is correspondig to the wave displayed in graph below except the phase degree.


the waves of phaseb,c and sensorless c is correspondig to the wave displayed in graph below except the phase degree.

(原文件名:ourdev_332273.JPG)

so conclude that my analog comparator board is ok. Is it right?

The problem have afflict me for almost three days. In the three days I never go to bed befor 4 clock in morning. I really thanks for your help.


2008-07-02

第三封
sorry, I add one clue.
I found that in avr492
switch(position)
    {
    // cases according to rotor position
case HS_001:  if (direction==CCW)  {Set_Q1Q6();}
else   {Set_Q5Q2();}
break;
  case HS_101: if (direction==CCW)  {Set_Q3Q6();}
else   {Set_Q5Q4();}
break;
  case HS_100: if (direction==CCW)  {Set_Q3Q2();}
else   {Set_Q1Q4();}
break;
  case HS_110: if (direction==CCW)  {Set_Q5Q2();}
else   {Set_Q1Q6();}
break;
  case HS_010: if (direction==CCW)  {Set_Q5Q4();}
else   {Set_Q3Q6();}
break;
  case HS_011: if (direction==CCW)  {Set_Q1Q4();}
else   {Set_Q3Q2();}
break;
  default : break;
  }
but in avr493

switch(position)
    {
    // cases according to rotor position
        case HS_001:  if (direction==CCW)  {Set_Q1Q6();}
                    else                      {Set_Q5Q2();}
                    break;
      case HS_101:  if (direction==CCW)  {Set_Q3Q6();}
                    else                      {Set_Q5Q4();}
                    break;
      case HS_100:  if (direction==CCW)  {Set_Q3Q2();}
                    else                      {Set_Q1Q4();}
                    break;
      case HS_110:  if (direction==CCW)  {Set_Q5Q2();}
                    else                      {Set_Q1Q6();}
                    break;
      case HS_010:  if (direction==CCW)  {Set_Q5Q4();}
                    else                      {Set_Q3Q6();}
                    break;
      case HS_011:  if (direction==CCW)  {Set_Q1Q4();}
                    else                      {Set_Q3Q2();}
                    break;
      default : break;
      }
they are different.
in avr493 ,analog comparator boad replaced hall, and they function same to give out location of rotor.
but why the commutation sequence is different?
although I have coppied the avr492 commutation sequence into avr493, it still run and stop, run and stop ,again and again.

出0入0汤圆

 楼主| 发表于 2008-7-3 09:25:32 | 显示全部楼层
atmel第二封信
Hello,

Thanks for your detailed description.

First some other checks could be useful :
- did you take care that on schematics of adapator board with comparators, the pahes are A,B,C and that from top to down the comparator outputs are B,C,A ?
- are you using the motor provided in Atmel kit or another one ?

I will check with Developer of Software pacakages for differences between AVR492 and AVR493 to explain the difference.
I will let you know , I hope today.


Best Regards,
Gilles Labarre
AVR PWM Support
Atmel Technical Support Team
atmel第三封信

I got the answer from our software and motor expert :
AVR493 switching mode is different to have the neutral not at 0 but at power-supply voltage / 2. In this case the back EMF can be used. Else the negative emf will be clamped.

On the comparator board, could you, please, change the capacitors C1,C2,C3,C4,C5,C6 (100pF on schematics) with capacitors 10nF. This will improve the filtering.

Best Regards,
Gilles Labarre
AVR PWM Support
Atmel Technical Support Team

出0入0汤圆

 楼主| 发表于 2008-7-3 11:00:53 | 显示全部楼层
我的第四封信

Hello, Gilles Labarre

I appreciate for your replay in time.

first,  I checked the connection of my analog comparator board. It does be same to the schematics indicated. Also the phase A, B, C and the sensorless A, B, C is on the right location as the shematics displayed. The motor is the Atmel kit suppled.

second, I changed the capacitors C1,C2,C3,C4,C5,C6 (100pF on schematics) with capacitors 10nF. It does work better. The running time of motor turn to be much longer. sometime it even run long time no stop.  But it still run with temporarily halt.

The feeling is good , but what should I do next to make the sensorless mode really works?

Shoud I change  C1,C2,C3,C4,C5,C6 to be bigger like 100nF?
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-4-20 07:12

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表