Trinamic Discussion Groups Forum Index Trinamic Discussion Groups
For quick support, please browse or search the forum!
 
 FAQFAQ    Impressum   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TMC236A Vibration problems

 
Post new topic   Reply to topic    Trinamic Discussion Groups Forum Index -> Getting started ICs
Print this topic :: View previous topic :: View next topic  
Author Message
e.veenendaal
User
User


Joined: 08 Oct 2007
Posts: 5

PostPosted: Mon Oct 08, 2007 1:00 pm    Post subject: TMC236A Vibration problems Reply with quote

Hello,

I'am using a TMC236A driver icm with an Atmel AVR. I have al the connections made according to the manual.
I'am using the externall reference voltage on INA en INB.
The problem is i'm not sure how to get the motor start turning. Can anyone explain me how i should proceed to get the engine turning?
When I set the reference voltage to 2V and apply maximum current over the SPI interface the motor start shaking and makes a lot of noise.
Do i have to apply a sinus pattern to get the motor turning?
I allready tried to send a sinus pattern through the SPI interface but the problem then is that the motor turns in an unconcequent way and manytimes reject turning.
Is there a minimum speed of which the patterns should be applied? I'am using a 1 nF capacitor for the clock speed.

thanx Elwin
Back to top
View user's profile Send private message
B. Dwersteg (TRINAMIC)
TRINAMIC master
TRINAMIC master


Joined: 25 Jul 2006
Posts: 820
Location: Hamburg (Germany)

PostPosted: Mon Oct 08, 2007 1:58 pm    Post subject: Reply with quote

Probably you have a problem in the setup causing the short circuit detection to act (check status bits). The motor should stand still with a single pattern. Please see the software examples (online) for a SW generating the required patterns.
Back to top
View user's profile Send private message Visit poster's website
e.veenendaal
User
User


Joined: 08 Oct 2007
Posts: 5

PostPosted: Mon Oct 08, 2007 3:49 pm    Post subject: Reply with quote

I have the software examples implemented but the problem is that 1 step goes well. The next step looks like to go only at half power. When I feel the ax only at 1 step there's sufficient power, the next step allmost no power is applied.
I check the status bits but only bit 8 is high.
Motor makes also sound (zzz, tak, zzz, tak,zzz,tak)?
Back to top
View user's profile Send private message
B. Dwersteg (TRINAMIC)
TRINAMIC master
TRINAMIC master


Joined: 25 Jul 2006
Posts: 820
Location: Hamburg (Germany)

PostPosted: Mon Oct 08, 2007 4:47 pm    Post subject: Reply with quote

Probably only one coil is working. The "zzz" noise can occur with fast decay on, or when supply voltage is too low.
Back to top
View user's profile Send private message Visit poster's website
Andrew
Master
Master


Joined: 06 Nov 2006
Posts: 258
Location: Europe

PostPosted: Tue Oct 09, 2007 12:25 am    Post subject: Defective motors, or wiring. Reply with quote

I remember long ago we received a consignment of motors, which exhibited the same behaviour.
It turned out all motors were defective.

I don't remember well. It was either the imprecise assembly, or asymmetric coils. Motors from some Asian suppliers are often of low quality. Many european suppliers actually manufacture in asia too. Some manage to produce good quality at the same factory which makes bad motors.

The alternative is that your wiring is wrong, as Bernhard suggests.

In general I am surprised. You, as engineer, do manage to manufacture a board with the chip. But you fail to measure the electrical output in order to see what is going wrong.
Here is another user, who refuses to make measurements:
http://www.trinamic.com/ttdg/viewtopic.php?t=737
And yet another one, who does not even know what a motor is:
http://www.trinamic.com/ttdg/viewtopic.php?t=738
He thinks a motor can be driven with zero current.
Maybe you drive with small current too?

To be merged
Back to top
View user's profile Send private message Visit poster's website
e.veenendaal
User
User


Joined: 08 Oct 2007
Posts: 5

PostPosted: Tue Oct 09, 2007 8:49 am    Post subject: Reply with quote

I'am willing to take the neasecarry measurements but in fact I dont know what to expect or if the signals I measure are correct.
Can you supply me with an example of how the signals should look like?
I've tried differte current settings but the higher the externall reference the more noise (tak,zz,tak) the motor makes.
It is a 24V Rietschle Tomas motor 0,4 or 0,8A (2 different types)
Back to top
View user's profile Send private message
Andrew
Master
Master


Joined: 06 Nov 2006
Posts: 258
Location: Europe

PostPosted: Tue Oct 09, 2007 1:02 pm    Post subject: Basics of stepper motion. Reply with quote

The starting point on this forum for any learning is the "Getting Started" section.
Look there for a topic about Sample oscillograms.

In general, your motor must be a 2 phase and bipolar.

The signal is a symmetrical meandre on both coils. That's in full steps. When you apply microstepping, the meandre gradually transforms into a resemblance of a sinusoid. The greater the microstepping rate, the greater is the smoothness, and the resemblance of a sinusoid.

Mixed decay may increase smoothness even further. But sometimes it may spoil it.

The sinusoid is shifted by quarter period in one coild relative to the other.
The sinusoid is chopped into tiny pulses, so as to ensure a constant current. The chopping technology is called a PWM.
Search for this term on the forum.

By the way, your problem might be some kind of wrong data in datagrams, which you send to the driver.

If you use a chip TMC428, then check if you store a correct microstep wave table into that chip.

If you drive the TMC246 driver directly from your own microprocessor, then you must make sure the timing of commands on your SPI line is regular, and that the data is correct. To eliminate the errors in creating data for microsteps, first try to drive it in full steps.

To be moved
Back to top
View user's profile Send private message Visit poster's website
e.veenendaal
User
User


Joined: 08 Oct 2007
Posts: 5

PostPosted: Tue Oct 09, 2007 1:21 pm    Post subject: Reply with quote

Thanks for the reply but I'm still struggeling with the driver.
As I mentioned I'm using the TMC236A. Can you explaine me how to implement this full step driving?
I look further in the way the sinus signals are put throught the ucontroller.
I saw the pictures you mentioned but they dont put me in the right direction.
Back to top
View user's profile Send private message
Andrew
Master
Master


Joined: 06 Nov 2006
Posts: 258
Location: Europe

PostPosted: Tue Oct 09, 2007 1:46 pm    Post subject: Full step over SPI data - maximum, direction - alternating. Reply with quote

Then I am puzzled. How did you design your circuit board, if you don't kow how it works?
One of my customers had been designing one for about a year, and he asked not a single question.
Perhaps you might want I ask him to simply sell you his circuit boards. He also developed some software for his boards.

His design has about 12 axes. The design is modular. So unused driver boards may simply be omitted. You only install as many drivers as you need. So it is one board with a microprocessor, and many small pluggable driver boards.

Regarding the data to TMC236.
Please read the documentation of TMC236, in order to learn how data on its SPI input line corresponds to the sinus.
In general, in TMCM a full step is achieved by setting all data to the maximum, and simply changing the data for direction of current.
MC428 does so automatically.
If you do not use TMC428, you need to program that yourself.

But you did not even report your connection diagram. Do you use TMC428, or do you drive the driver directly from a microcontroller?
I don't really need this answer. You need someone to answer this question to you. In case you do not understand even your connection diagram, then I am afraid, you would not understand any further explanation I might give.
Perhaps you need to return the stuff to your supplier, and take some other job.


Last edited by Andrew on Tue Oct 09, 2007 2:00 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
B. Dwersteg (TRINAMIC)
TRINAMIC master
TRINAMIC master


Joined: 25 Jul 2006
Posts: 820
Location: Hamburg (Germany)

PostPosted: Tue Oct 09, 2007 1:57 pm    Post subject: Reply with quote

You could also go for the TMC428, if you need positioning in your application. The positioning plus sine curve sequencing comes in reliable hardware.
If the solution is cost sensitive, you can stick to the example code and add a frequency generator, which calls the rountine with the desired (micro)step frequency of a few 10 to a few 1000 Hz.
Back to top
View user's profile Send private message Visit poster's website
e.veenendaal
User
User


Joined: 08 Oct 2007
Posts: 5

PostPosted: Wed Oct 10, 2007 9:56 am    Post subject: Reply with quote

I don't need positioning in my system only control the turning speed. Right now I think maybe the problem is in the SPI interface.
I read the manual again and something is unclair to me.
On page 23 the timing is explained. In the picture it shows bit 12 as MSB and then down to bit 0 as LSB with a 12 bit interface.
I'am using a 16 bit interface as explained below on page 23.

It says: the upper 4 bits are dummy bits.

Does this mean i have to transmit :
A: (MSB)XXXX.1111(LSB) and then (MSB)1111.1111.(LSB).

or like the picture:
B: (MSB)1111.1111(LSB) and then (MSB)1111.XXXX(LSB).

where X represending the dont cares?
Back to top
View user's profile Send private message
B. Dwersteg (TRINAMIC)
TRINAMIC master
TRINAMIC master


Joined: 25 Jul 2006
Posts: 820
Location: Hamburg (Germany)

PostPosted: Wed Oct 10, 2007 10:04 am    Post subject: Reply with quote

This would be an explanation for the problem, that only one phase works.
A is correct: The processor SPI interface first sends out the four don't care bits. During the following clocks, these are shifted through the SPI register in the TMC236, and during clocks 12-16 they become shifted out to the TMC236's SDO. Only the last 12 bits sent remain in the TMC236 and control its function.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Trinamic Discussion Groups Forum Index -> Getting started ICs All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group