CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > OpenSource CNC Design Center > Open Source Controller Boards


Open Source Controller Boards Discussion for Open Source CNC type Controller Boards and other related items. (for personal use only)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-11-2008, 04:42 AM
 
Join Date: Jun 2008
Location: Russia
Posts: 66
arisov77 is on a distinguished road
Modernization of the Elm Dc Servo Controller (Russian UHU by Hudognik)

Continue Subjects Russian UHU by Hudognik 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).
Attached Images
File Type: jpg Scheme_4.jpg‎ (102.2 KB, 2438 views)
Attached Files
File Type: zip Servo3.zip‎ (546.6 KB, 2628 views)
Reply With Quote

  #2   Ban this user!
Old 12-16-2008, 12:44 PM
 
Join Date: Jun 2008
Location: Russia
Posts: 66
arisov77 is on a distinguished road

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

  #3   Ban this user!
Old 12-16-2008, 01:13 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,082
samco is on a distinguished road

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

thanks
sam
Reply With Quote

  #4   Ban this user!
Old 12-16-2008, 02:26 PM
 
Join Date: Jun 2008
Location: Russia
Posts: 66
arisov77 is on a distinguished road

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.
Reply With Quote

  #5   Ban this user!
Old 12-16-2008, 04:24 PM
hesham morsy's Avatar  
Join Date: Apr 2006
Location: egypt
Age: 41
Posts: 141
hesham morsy is on a distinguished road

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 05:14 AM.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-22-2008, 01:03 AM
 
Join Date: Jun 2008
Location: Russia
Posts: 66
arisov77 is on a distinguished road

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?
Reply With Quote

  #7   Ban this user!
Old 12-27-2008, 02:47 PM
hesham morsy's Avatar  
Join Date: Apr 2006
Location: egypt
Age: 41
Posts: 141
hesham morsy is on a distinguished road

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 08:32 PM.
Reply With Quote

  #8   Ban this user!
Old 01-02-2009, 04:52 AM
 
Join Date: Jun 2008
Location: Russia
Posts: 66
arisov77 is on a distinguished road

Happy New Year!
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.
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
File Type: zip servo_atmega8_L298.zip‎ (889.6 KB, 1390 views)
File Type: txt DeadTime(cbcb128).txt‎ (889 Bytes, 874 views)

Last edited by arisov77; 01-02-2009 at 05:30 AM.
Reply With Quote

  #9   Ban this user!
Old 01-02-2009, 10:18 AM
hesham morsy's Avatar  
Join Date: Apr 2006
Location: egypt
Age: 41
Posts: 141
hesham morsy is on a distinguished road

thx man
Reply With Quote

  #10   Ban this user!
Old 01-27-2009, 02:12 AM
 
Join Date: Dec 2008
Location: pakistan
Posts: 7
mughal is on a distinguished road

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

Sponsored Links
  #11   Ban this user!
Old 01-30-2009, 01:20 PM
 
Join Date: Jan 2009
Location: India
Posts: 18
youthreewire is on a distinguished road

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-30-2009 at 11:18 PM. Reason: code request for L298
Reply With Quote

  #12   Ban this user!
Old 02-01-2009, 12:11 PM
 
Join Date: Jan 2005
Location: India
Posts: 1,056
contactirfu is on a distinguished road

Arisov nice work - keep it up!

RGDS
Irfan
Reply With Quote

Reply




LinkBacks (?)
LinkBack to this Thread: http://www.cnczone.com/forums/open_source_controller_boards/69640-modernization_elm_dc_servo_controller.html
Posted By For Type Date
www.elektronik.si :: Poglej temo - Krmilnik servo motorjev za CNC This thread Refback 10-04-2010 05:01 AM

Currently Active Users Viewing This Thread: 4 (0 members and 4 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Russian UHU by Hudognik myown UHU Servo Controllers 21 11-14-2011 09:45 PM
Russian CNC project - my first router maxvovk CNC Wood Router Project Log 17 10-21-2007 05:59 PM
Help problem with power to clutches on Russian Lathe tim-tbl General Metal Working Machines 8 06-29-2006 04:44 PM
Russian CAM software motordude General CAM Discussion 5 01-31-2004 03:39 AM
Sorry, russian link! motordude General CAM Discussion 0 01-29-2004 03:53 AM




All times are GMT -5. The time now is 12:56 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361