Modernization of the Elm Dc Servo Controller (Russian UHU by Hudognik)

Page 1 of 15 123411 ... LastLast
Results 1 to 20 of 281

Thread: Modernization of the Elm Dc Servo Controller (Russian UHU by Hudognik)

  1. #1
    Registered
    Join Date
    Jun 2008
    Location
    Russia
    Posts
    66
    Downloads
    0
    Uploads
    0

    Default Modernization of the Elm Dc Servo Controller (Russian UHU by Hudognik)

    Continue Subjects http://www.cnczone.com/forums/showthread.php?t=62911 here, as this open project and i hope that who be else joined to modernizations Elm Chan servocontroller.
    Present new variant scheme and code.
    Change:
    - Moved converter RS-232/UART from PCB into DataCable. USB/UART on FT232 - works, but bad. Better use RS232/UART.
    - Added limit move Limit_L & Limit_R. Questioning of their condition through 20ms (for eliminating noise). If Limit are not used, that detail their chain possible not to install. Internal pull-ups resistors to all input are installed software in AtMega.
    - Select type contact (Normally closed or normally open)
    - Input EMERGENCY STOP (E-Stop) - it is actuated one temporarily enable Limit_L & Limit_R to condition “ServoError”.
    - Output “ServoError”. Moves over to condition “ServoError” with simultaneous indication of this condition. Disable thereof conditions through Off-On power, unset on Reset or in ServoTuning push “Stop” or change the mode.
    - Two steps of protection from unbalance of the positions. 1st. - at excess 20 000 steps immediately transition in condition “ServoError” . 2st. - on time - at excess 3 steps are included timer and if in current 15 seconds unbalance will not become less 3 steps, that transition in condition “ServoError”. If for 15 sec. unbalance will become less 3 steps, that timer reset.
    - Sensing the condition encoder possible (as variant) on interruptions from internal comparator. On him and external entities VD2,VD3, R23-R25, R29 is made analog exclusive or (EOR). The differences in work I have not noticed (no high-resolution encoder), but theoretically she better (fast), than with questioning encoder on interruption from Timer0 (12mks).
    - It is actuated WatchDog (period 38ms)
    - Increased reliability of keeping data in EEPROM. For this: record of each parameter from ServoTuning is produced in 3 bytes located in miscellaneous area EEPROM. At power-up are read these 3 bytes, are then compared and if one of them is not others, that is produced rerecording the bad cell. This is repeated for all importances in EEPROM. When loading parameter from EEPROM in ServoTuning are read given only from one area (without checking for equality). After conservation and loading parameter address EEPROM is changed on address not containing data. After these change - I reset EEPROM did not observe.

    I have done 4 variant Source Code: Servo_AtMega_TimerInt - for AtMega8, on Timer, Servo_AtMega_CompInt – for AtMega8, on comparator and such for AtMega88 - Servo_AtMega88_TimerInt and Servo_AtMega88_CompInt. The Code trims with interruptions from Timer0 possible to use as with scheme, which I shown earlier, so and new variant. With interruptions from comparator, only with new variant of the scheme. The Code trim with interruptions from compator I have checked only with AtMega88, with AtMega8 only partly, but guarantee on 95% that she will work.

    When adjusting in ServoTuning importances for Your motor save in zero bank, as started with it.

    Possible ways of the further improvement:
    - Installing the quartz on 24МГц and change the program
    - Use the hardware multiplying (only on AtMega)
    - Change of time of the servo cycle with 1ms on more low importance
    - Development PCB. Since I all change did on PCB, which shown earlier + with additional element with outboard montage.

    Commentary in Source Code in russian language, but if it is necessary can translate one of the SourceCodes (for example).

    Similar Threads:
    Attached Images Attached Images
    Attached Files Attached Files


  2. #2
    Registered
    Join Date
    Jun 2008
    Location
    Russia
    Posts
    66
    Downloads
    0
    Uploads
    0

    Default

    Video work modified ElmChan Dc Servo Controller http://depositfiles.com/en/files/tse...iles/tseutbpe8



  3. #3
    Member
    Join Date
    Jul 2003
    Location
    Holmen, WI
    Posts
    1677
    Downloads
    2
    Uploads
    0

    Default

    What supply (motor voltage) are you using in the video? Looks like pretty low voltage.. How high of voltage have you tested?

    thanks
    sam



  4. #4
    Registered
    Join Date
    Jun 2008
    Location
    Russia
    Posts
    66
    Downloads
    0
    Uploads
    0

    Default

    The First engine usual DC Motor Brush - for test. He on 220V, but I felt from 130V. So maximum velocity on video 2500 RPM, under 220V he quicker.
    The Second motor – servomotor (old – 1975 Y.), is installed on old tool, which I remake. The Engine on 110V, but I shall add a little more 130V (such beside me Power Source was got).
    On tool with encoder 60 lines x 4 = 240 imp/rotation reaches velocities 4500mm/min (161 imp/mm => F=12 075kHz). Above - limit rotation motor.



  5. #5
    Registered hesham morsy's Avatar
    Join Date
    Apr 2006
    Location
    egypt
    Posts
    169
    Downloads
    0
    Uploads
    0

    Default

    Thanks for all this great info. I look forward to read more The video was really cool



    Last edited by hesham morsy; 12-17-2008 at 07:14 AM.


  6. #6
    Registered
    Join Date
    Jun 2008
    Location
    Russia
    Posts
    66
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by hesham morsy View Post
    ...I look forward to read more The video was really cool
    In Russia presently coldly . That You wanted to hear on hot?



  7. #7
    Registered hesham morsy's Avatar
    Join Date
    Apr 2006
    Location
    egypt
    Posts
    169
    Downloads
    0
    Uploads
    0

    Default

    Dear arisov77 can you give us PCB layout for yore board

    ps : hot hot hot hot hot hot hot hot hot hot hot hot hot hot hot

    That for Russia i m from Egypt the temperature is +20 to +12 and i m freezing
    right now

    One more thing to ask on the Russian board their is a discussion about l298 Version any result ??

    Last edited by hesham morsy; 12-28-2008 at 10:32 PM.


  8. #8
    Registered
    Join Date
    Jun 2008
    Location
    Russia
    Posts
    66
    Downloads
    0
    Uploads
    0

    Default

    Happy New Year!
    Quote Originally Posted by hesham morsy View Post
    Dear arisov77 can you give us PCB layout for yore board
    PCB for the last scheme I have no, made http://www.cnczone.com/forums/attach...9&d=1223011455, then I added the separate PCB current limit. The rest elements by outboard montage.
    Quote Originally Posted by hesham morsy View Post
    One more thing to ask on the Russian board their is a discussion about l298 Version any result ??
    Small discussion on L298 was, here is scheme and PCB. The Author who gave it writes that it worked, but the other person, who repeated it that it does not work. I think there are some errors: signal Dir (F/R) it is necessary on PC3 (26 pin for DIP28), rather then on PD3/INT1 (pin5). For L298 it is necessary pin 6 and pin 11 (Enable) - to +5V. R1, R2 deleted. Pin 5,7 (L298) to pin 15 (OC1A- AtMega8 (DIP28)) and pin 10,12 (L298) to pin 16 (OC1B - AtMega8 (DIP28)). I think the other it is correct. It is necessary to use SourceCode Servo_AtMega_TimerInt. But as there is no there DeadTime it is necessary to add code (for example, which I was offered here cbcb128).

    Attached Files Attached Files
    Last edited by arisov77; 01-02-2009 at 07:30 AM.


  9. #9
    Registered hesham morsy's Avatar
    Join Date
    Apr 2006
    Location
    egypt
    Posts
    169
    Downloads
    0
    Uploads
    0

    Default

    thx man



  10. #10
    Registered
    Join Date
    Dec 2008
    Location
    pakistan
    Posts
    7
    Downloads
    0
    Uploads
    0

    Default

    u don't share the source file of ATmega+l298 drive....can u please share the same.
    Naeem Mughal



  11. #11
    Registered
    Join Date
    Jan 2009
    Location
    India
    Posts
    19
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by arisov77 View Post
    Happy New Year!

    PCB for the last scheme I have no, made http://www.cnczone.com/forums/attach...9&d=1223011455, then I added the separate PCB current limit. The rest elements by outboard montage.

    Small discussion on L298 was, here is scheme and PCB. The Author who gave it writes that it worked, but the other person, who repeated it that it does not work. I think there are some errors: signal Dir (F/R) it is necessary on PC3 (26 pin for DIP28), rather then on PD3/INT1 (pin5). For L298 it is necessary pin 6 and pin 11 (Enable) - to +5V. R1, R2 deleted. Pin 5,7 (L298) to pin 15 (OC1A- AtMega8 (DIP28)) and pin 10,12 (L298) to pin 16 (OC1B - AtMega8 (DIP28)). I think the other it is correct. It is necessary to use SourceCode Servo_AtMega_TimerInt. But as there is no there DeadTime it is necessary to add code (for example, which I was offered here cbcb128).
    Hi arisov, is it possible that I can use the following hardware to build a servo with your atmega8 code and servo tuning software?Parts list: an RC servo with the electronics removed (potentiometer not removed),a H-Bridge drive (10A would do for me as of now), USB to RS232 connection etc..,of course an atmega8 dev board.

    Do I need to change the potentiometer with a quadrature encoder (mechanical resistive)?If yes will the code change with the encoder resolution?(what should be the encoder resolution I have to chose for 1024 position resolution)?Also could you please post the hex file and code for atmega8 with L298 motor driver.It will be very helpful

    Please guide me Arisov.And thank you for sharing your project.

    Last edited by youthreewire; 01-31-2009 at 01:18 AM. Reason: code request for L298


  12. #12
    Registered
    Join Date
    Jan 2005
    Location
    India
    Posts
    1050
    Downloads
    0
    Uploads
    0

    Default

    Arisov nice work - keep it up!

    RGDS
    Irfan



  13. #13
    Registered
    Join Date
    Jun 2008
    Location
    Russia
    Posts
    66
    Downloads
    0
    Uploads
    0

    Default

    Here is variant AtMega8 + L298 and SourceCode with "Dead-Time"=1 mks.
    I this did not check so do not guarantee work. For initial check possible to use SourceCode Servo_AtMega_TimerInt. With this code must work all. Afterwards you programme SourceCode Servo_Mega8_L298. If that that will not work, write - try to correct.
    Diodes VD1-VD4 better to use UltraFAST or Shottkydiodes.

    Possible this driver on L298 http://www.ikalogic.com/shm_hb_l298.php will better work.

    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by arisov77; 02-02-2009 at 07:41 AM.


  14. #14
    Registered
    Join Date
    Feb 2008
    Location
    Slovakia
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default

    http://www.c-n-c.cz/viewtopic.php?t=2395
    http://www.cnczone.com/forums/showth...t=69640&page=2 12-11-2008, 11:42 AM arisov77 . I'm sorry, I do not know English. To answer questions I do not know.

    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by jozefp; 02-23-2009 at 02:40 PM.


  15. #15
    Registered
    Join Date
    Jun 2008
    Location
    Russia
    Posts
    66
    Downloads
    0
    Uploads
    0

    Default

    Jozefp thanks for Your variant. I liked it very much.

    In process of the work on CNC machine are discovered and corrected two programme mistakes.
    Here is change.

    1. Magnified time WatchDog before 125ms.
    2. The Changes to program for eliminating the casual transition in mode ServoError.

    Attached Files Attached Files


  16. #16
    Registered
    Join Date
    Feb 2008
    Location
    Slovakia
    Posts
    5
    Downloads
    0
    Uploads
    0

    Smile

    Thank you for your praise. Spasiba.



  17. #17
    Registered hesham morsy's Avatar
    Join Date
    Apr 2006
    Location
    egypt
    Posts
    169
    Downloads
    0
    Uploads
    0

    Default

    Спасибо



  18. #18
    Registered
    Join Date
    Apr 2005
    Location
    CHINA
    Posts
    26
    Downloads
    0
    Uploads
    0

    Default

    Removed LM393?



  19. #19
    Registered
    Join Date
    Jan 2009
    Location
    India
    Posts
    19
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by arisov77 View Post
    Here is variant AtMega8 + L298 and SourceCode with "Dead-Time"=1 mks.
    I this did not check so do not guarantee work. For initial check possible to use SourceCode Servo_AtMega_TimerInt. With this code must work all. Afterwards you programme SourceCode Servo_Mega8_L298. If that that will not work, write - try to correct.
    Diodes VD1-VD4 better to use UltraFAST or Shottkydiodes.

    Possible this driver on L298 http://www.ikalogic.com/shm_hb_l298.php will better work.
    To control the servo what kind of input is required?(is it step/Dir pulse or a command based input?)

    Also will the code work with the following circuit diagram in the attachment?

    Attached Files Attached Files
    Last edited by youthreewire; 02-26-2009 at 06:37 AM. Reason: added L298 attachment


  20. #20
    Registered
    Join Date
    Jan 2005
    Location
    India
    Posts
    1050
    Downloads
    0
    Uploads
    0

    Default

    think the UHU chip can be directly mounted on this schematic? I have a few unused with me which I can use on this board?

    what are the other Mosfets that can be used -



Page 1 of 15 123411 ... LastLast

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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Modernization of the Elm Dc Servo Controller (Russian UHU by Hudognik)

Modernization of the Elm Dc Servo Controller (Russian UHU by Hudognik)

Modernization of the Elm Dc Servo Controller (Russian UHU by Hudognik)