That last one has a nasty turn offVolttan said:Tomdb said:Any pictures?
Got the the pwm signal working and confirmed with the test signal?
PWM at the terminals of the power stage looks good
a) PWM frequency: 5kHz
b) deadtime: 1700ns
c) dutycycle testsignal: 50%
View attachment 3
View attachment 2
View attachment 1
c) dutycycle testsignal: 95%
doesn't look like 95% either..Arlo1 said:That last one has a nasty turn offVolttan said:Tomdb said:Any pictures?
Got the the pwm signal working and confirmed with the test signal?
PWM at the terminals of the power stage looks good
a) PWM frequency: 5kHz
b) deadtime: 1700ns
c) dutycycle testsignal: 50%
View attachment 3
View attachment 2
View attachment 1
c) dutycycle testsignal: 95%
Lebowski said:doesn't look like 95% either..
Arlo1 said:Thanks You come to the island ever? You should come ride in the CrXkiwifiat said:You are doing great work with your controller it is really impressive to see what Arlo and others have built with your controller chip.
Lebowski said:kiwifiat said:Well no, yes 4 bits but not per e-revolution. Check out the AS5040 from Austria Micro Systems that is good up to 30,000 rpm.
http://www.ams.com/eng/content/download/1285/7214
512 pulses per mechanical revolution for each channel A and B gives 2048 distinct edge transitions per mechanical revolution or 0.175 degrees mechanical. Obviously multiply this by pole pairs to get e-revolution precision but either way significantly better than available from halls. Some available devices have 4096 pulse per channel per mechanical revolution giving even higher precision. Of course the whole point of going sensorless is to avoid the cost of any kind of encoder but the cost of the AS5040 isn't too bad in my opinion.
You are doing great work with your controller it is really impressive to see what Arlo and others have built with your controller chip.
Interfacing and using a chip like this is no big deal... but there are dozens of chips like this on the market and unless there is a universal way of connecting and readout making an interface to the controller IC is no use. Also, who uses this ? Finally, this particular chip can be configured to give hall sensor like output signals, so can be used with the controller IC.
Lebowski said:Still, the whole purpose of the encoder (at least with the controller IC) is to deliver torque from standstill, also at power up.
I now understand how this encoder works, a motor revolution is divided into many hundreds or thousands of pulses on the A and B lines,
with an occasional synchronisation pulse for absolute position info... and herein lies the problem. When you power up you do not immediately
get absolute position info. A and B will tell you whether the motor moves forward or backward (relative info), but only after you receive the
synchronisation pulse do you have absolute information. So after powering up there is no absolute info, meaning you cannot drive away with
your vehicle. Hall sensors or sine/cosine sensors do give absolute info from power up, giving the critical advantage that you can drive
away with full torque...
nothing that can't be built with a dremel and a small fileheathyoung said:Price is another question though...
0xFFFF 0xFFFF 0x795E 0x0400 0xFFFF 0xFFFF 0xFFFF 0x000A
0x0000 0x07AE 0x0018 0x0000 0x01E0 0xFFFF 0xF852 0xFFE8
0x0000 0xFE20 0x0000 0x4CCD 0x0018 0x0000 0x01E0 0xFFFF
0xB333 0xFFE8 0x0000 0xFE20 0xFAB5 0xFF06 0xFFFF 0xFFFF
0x36C2 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0x0017 0x7384 0x040E 0x0103
0x003F 0x00FD 0x0687 0x001A 0x0019 0x0005 0x00C2 0x0151
0xFFFF 0x7FBC 0x0000 0x0164 0x00B2 0x03F7 0x03F4 0x03F5
0x0BB7 0x0358 0x008F 0x0592 0x0006 0x2CF9 0xFFFF 0x0DC0
0x1000 0x0000 0x0000 0xF000 0x0000 0x0000 0x00B1 0x02AF
0x0000 0x03FF 0x0590 0x0047 0x0590 0x0356 0x047C 0x0258
0x0064 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0x0003 0x0000 0x0078
0x0000 0x0000 0xFFFD 0x0000 0xFF88 0x0000 0x0000 0x0005
0x0000 0x0064 0xFFFB 0x0000 0xFF9C 0x000C 0x0000 0x00F0
0xFFF4 0x0000 0xFF10 0x05CC 0xFFFF 0xFFFF 0x026F 0x02C8
0x004E 0x014E 0x026F 0x000F 0x0010 0x0E10 0x0000 0x03E8
0x03B6 0x6000 0x01AB 0x009B 0x4000 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0x0000 0x0000 0x0000
0x0005 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0xFFFF 0xAAAA 0x6666 0x4924 0x38E3 0x2E8B 0x2762
0x2222 0x1E1E 0x1AF2 0x1861 0x1642 0x147A 0x12F6 0x11A7
0x1084 0x0F83 0x0EA0 0x0DD6 0x0D20 0x0C7C 0x0BE8 0x0B60
0x0AE4 0x0A72 0x0A0A 0x09A9 0x094F 0x08FB 0x08AD 0x0864
0x0820 *
save the following HEX lines in a text file, including the '*' termination char
acter
0x026F 0x0CD0 0x795E 0x0100 0xA94C 0x8612 0x32AE 0x000A
0x0000 0x07AE 0x0018 0x0000 0x01E0 0xFFFF 0xF852 0xFFE8
0x0000 0xFE20 0x0000 0x4CCD 0x0018 0x0000 0x01E0 0xFFFF
0xB333 0xFFE8 0x0000 0xFE20 0x024A 0x011B 0x001E 0x0017
0x1B5E 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0x0000 0xFFFF 0xFFFF 0x003E 0x09F8 0x026F 0x026F
0x0505 0x0505 0x03EB 0x0001 0x0000 0x0004 0x0103 0x009D
0x0019 0x7FBC 0x0000 0x0203 0x0101 0x03F7 0x03F6 0x03F8
0x0BB7 0x06B0 0x003B 0x0592 0x0006 0x4C99 0xFFFE 0x0180
0x1000 0x0000 0x0000 0xFFFF 0xFFFF 0xFFFF 0x0000 0x03FF
0x0000 0x03FF 0x080F 0x0067 0x02E1 0x02E1 0x0418 0x0258
0x0064 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0x0003 0x0000 0x0078
0x0000 0x0000 0xFFFD 0x0000 0xFF88 0x0000 0x0000 0x0005
0x0000 0x0064 0xFFFB 0x0000 0xFF9C 0x000C 0x0000 0x00F0
0xFFF4 0x0000 0xFF10 0x05E6 0x0C61 0x04D5 0x0137 0x01B2
0x009C 0x029D 0x026F 0x000F 0x0010 0x0E10 0x0000 0x03E8
0x03B6 0x6000 0x026A 0x009B 0x4000 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0x0000 0x0000 0x0000
0x0005 0x1000 0x1E1C 0x0001 0x5790 0x00AC 0x02A0 0x0000
0x5479 0x0492 0x0032 0x0000 0xFFFF 0x0000 0x0001 0x002C
0xFFFD 0x8000 0x6AE2 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x1000 0x810E 0x0001 0x5250 0x0155 0x02A2 0x0000
0x5563 0x03B6 0x0000 0x0000 0xFFFF 0x0000 0x0005 0x002F
0x0000 0x8000 0x0435 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0xFFFF 0xAAAA 0x6666 0x4924 0x38E3 0x2E8B 0x2762
0x2222 0x1E1E 0x1AF2 0x1861 0x1642 0x147A 0x12F6 0x11A7
0x1084 0x0F83 0x0EA0 0x0DD6 0x0D20 0x0C7C 0x0BE8 0x0B60
0x0AE4 0x0A72 0x0A0A 0x09A9 0x094F 0x08FB 0x08AD 0x0864
0x0820 *
You need to have a very short GND connection to the probe, such as when using the GND spring, if possible. The aligator lead is enough to pick up interferences.Tomdb said:Here is the ringing on the 5v currently, the question now is, is it enhanced by my measurement setup or is it really there.
Ground loops can be a bitch. All my digital is isolated from the powerstage.Tomdb said:Currently I am starting to doubt that its actually down to the capacitance on the rails. Depending on the way I am grounding my inverter or motor things change alot.
Next test will be to separate the 12v for the power electronics and the Lebowksi board. Maybe it might be needed to take some more EMC reduction steps, kind of a bummer since the board fits really nicely in the original enclosure.