504,019 active members
4,155 visitors online
Register for free
Login
IndustryArena Forum > CNC Electronics > Stepper Motors / Drives > Driving 5 phase pentagon stepper motor with L298 and ATMEGA16
Page 1 of 2 12
Results 1 to 12 of 20
  1. #1
    Registered
    Join Date
    Jun 2012
    Posts
    9

    Driving 5 phase pentagon stepper motor with L298 and ATMEGA16

    Hi every one
    I've tried to replicate L297-driven-L298 scheme for my 5 phase oriental motor pentagon stepper motor, but I've find
    L297 only use for 4 wire motors, hence I've decide to use an atmega16 for controlling the stepper motor, I've tied 4 L298
    input together as well as 4 output to control each winding with single L298 (2+2 amper for each winding), I've tied currents
    sense A & B for the another input to my microcontroller. My plan is following the oriental motor full step pattern table
    to energize the winding, in each step I read analogue input of currents sense related to its L298 phase and chopped whether is
    exceed from MAX Currents in the loop, then go to next step such as following code

    Code:
    if(FullHalfStep==FullStep)
    	{
    		switch(step_num)
    		{
    			case 0:phase(phase_B,Hz);
    				   phase(phase_E,Hz);
    				   phase(phase_A,High);				   
    				   phase(phase_C,Low);
    				   phase(phase_D,Low);				   
    				   
    				   for(i=0;i<Chopping_on_time_us;i++)
    				   {
    						current=read_phase_current(phase_C); 
    						current*=2;
    						//print_number(current);
    						if(current>=Max_Current_mA) 
    						{
    							phase(phase_A,Hz); 
    							//uart_puts("|\n");
    							//print_number(current);
    						}
    						else if(current<=Min_Current_mA)  
    						{
    							//print_number(current);
    							phase(phase_A,High);
    							//uart_puts("		H\n");
    						}
    				   }				   
    				   			   
    				   phase(phase_C,Hz);
    				   phase(phase_D,Hz);
    				   //_delay_us(Chopping_off_time_us);				   
    				   while(read_phase_current(phase_A)>Chopping_off_Current);
    				   phase(phase_A,Hz);
    				   
    			break;
    			
    			case 1:phase(phase_C,Hz);
    				   phase(phase_E,Hz);
    				   phase(phase_A,High);
    				   phase(phase_B,High);				   
    				   phase(phase_D,Low);
    according to reference 5 phase pentagon stepper motor can run as fast as 3000 RPM with excellent power but I cant
    reach any performance as claimed, still with theoretical 4 A L298 channel, its get hot and RPM not very hight, I've change the following parameters
    but not good success

    Chopping_on_time_us
    Chopping_off_Current
    Max_Current_mA
    Min_Current_mA

    I've uploaded codes and schematic of my driver if helpful
    any comment and help is really appreciated

  2. #2
    Gold Member
    Join Date
    Jan 2005
    Posts
    1695

    Re: Driving 5 phase pentagon stepper motor with L298 and ATMEGA16

    Performance will be very poor unless your power supply voltage is high enough (around 35-40v). The chopping frequency should be around 20khz., and your code must be fast enough, or the current will very quickly exceed the set value.

    Do you have a schematic instead of the pcb diagram?

  3. #3
    Registered
    Join Date
    Jun 2012
    Posts
    9

    Re: Driving 5 phase pentagon stepper motor with L298 and ATMEGA16

    many thanks H500
    I didn't draw any schematic just used single L298 for each phase , connect tied input & tied currents sense to Atmega, I've decide to simulate the L297 performance with Atmega chip.
    you mean in my code,current exceed the set value long before I check it and led to overheat and vibration? is there any way to calculate the optimum chopping frequency for specific voltage?

    My best regards

  4. #4
    Gold Member
    Join Date
    Jan 2005
    Posts
    1695

    Re: Driving 5 phase pentagon stepper motor with L298 and ATMEGA16

    When you turn on the coil transistor, the current rises quickly. Your execution loop must be fast enough to check each coil and shut off the current as soon as the set value is reached. Otherwise, the motor will overheat and step roughly. Looking at your code, I think it is not fast enough. At 20khz, you only have 50 uS to check all coils and service the step signal.
    Do you have an oscilloscope? If so, measure the voltage across the current sense resistor.

  5. #5
    Registered
    Join Date
    Jun 2012
    Posts
    9

    Re: Driving 5 phase pentagon stepper motor with L298 and ATMEGA16

    Hi H500
    Thanks for reply , some guy says try hardware chopping implementation, it is so fast and realistic, hence I've decide to use opamp such as LM324 to comparable current sense voltage with user set trimpot , but I don't sure , do I need tolerances and close loop feed back for current chopping or not?

    My best regards

  6. #6
    Gold Member
    Join Date
    Sep 2009
    Posts
    1856

    Re: Driving 5 phase pentagon stepper motor with L298 and ATMEGA16

    you will be better getting something better than L298 they are old and redundant only good for playing with they cant handle the current to give good performances

    New Pentagon (Bipolar) Driver Chip Set

    New Pentagon (Bipolar) Driver Technology

    Driver boards for 5-wire steppers

    http://inter-eng.upm.ro/2012/files/p...rs/paper62.pdf

    that all up was 30 seconds to find there is 4,710 results if you search (5 phase oriental motor pentagon stepper motor)
    http://danielscnc.webs.com/

    being disabled is not a hindrance it gives you attitude
    [SIGPIC][/SIGPIC]

  7. #7
    Registered
    Join Date
    Jun 2012
    Posts
    9

    Re: Driving 5 phase pentagon stepper motor with L298 and ATMEGA16

    Hi Daniellyall

    Thanks for reply and concern , but always posting a thread is the last step when you have not ready to use solution, those chip are awesome but I wasn't lucky to find it rather than in internet , also I read those articles, how ever there is so rare and completed solution which is used the H bridge or Mosfet array , but I think software and hardware implementation is pretty issue of itself , I would be thank you if you direct me to the person or link which might be helpful

  8. #8
    Gold Member
    Join Date
    Jan 2005
    Posts
    1695

    Re: Driving 5 phase pentagon stepper motor with L298 and ATMEGA16

    If you are open to other solutions, the tb6600 would be much easier and better.

  9. #9
    Gold Member
    Join Date
    Sep 2009
    Posts
    1856

    Re: Driving 5 phase pentagon stepper motor with L298 and ATMEGA16

    ok where you are makes it hard to get good stuff the tb6600 is a better chip to use do a search through the arduino sight for that and here.

    you need something that can handle a high current more that the L298 can handle if you can get some thing from china you should be ok buying from there just do a search (5 phase oriental motor pentagon stepper motor driver) that should give you all you need to know.
    http://danielscnc.webs.com/

    being disabled is not a hindrance it gives you attitude
    [SIGPIC][/SIGPIC]

  10. #10
    Registered
    Join Date
    Jun 2012
    Posts
    9

    Re: Driving 5 phase pentagon stepper motor with L298 and ATMEGA16

    Yes there is better IC rather than H bridge & Fet IC , but this is fun project to pull out somethings works beside somethings make, and as I stated the main issue is to hardware or software implementation of current chopping just like a L297 , but still I cant find applicable try to make 5 phase driver with fets and new IC, and any clue is really appreciated

  11. #11
    Gold Member
    Join Date
    Jan 2005
    Posts
    1695

    Re: Driving 5 phase pentagon stepper motor with L298 and ATMEGA16

    I forgot that it was 5 phase. The 6600 won't work.

    Are you certain it is 5 phase, rather than 2 phase with 5 wires?

  12. #12
    Registered
    Join Date
    Jun 2012
    Posts
    9

    Re: Driving 5 phase pentagon stepper motor with L298 and ATMEGA16

    H500

    Thanks for reply, yes I've already run 2 or 4 phase but 5 phase is something else , as you well know and regards to many article it will run as 4000 rpm with high power, as I stated before there is many mosfet array integrated chip but I've plan to hardware and software implementation by myself. I think hardware current chopping and software pulsing is the close solution ,also I think replace the H bridge Ic with mosfet array , but noting for sure yet

    Best regards

Page 1 of 2 12

Similar Threads

  1. Stepper Motor Driving Torque
    By EmaBlunt in forum Stepper Motors / Drives
    Replies: 22
    Last Post: 11-21-2012, 08:28 PM
  2. driving 8wire stepper motor
    By ktr in forum Stepper Motors / Drives
    Replies: 1
    Last Post: 08-03-2009, 06:16 PM
  3. L298/L297 strange stepper motor noises
    By cnc kiwi in forum Stepper Motors / Drives
    Replies: 7
    Last Post: 12-26-2007, 05:18 PM
  4. Query: Current amplification for driving stepper motor...
    By junior85 in forum General CNC Machine Related Electronics
    Replies: 10
    Last Post: 02-24-2007, 05:09 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •