youthreewire specially for You have drawn the scheme. More simply does not can be
???
Possible Step/ Dir when governing from Mach or other CNC program. Possible and from UART (RS-232) when governing from ServoTuning.exe
With this scheme - nor one SourceCode to work not will.
With this scheme - UHU chip to work not will, since on different are formed PWM (ОС1А and OC1B).
youthreewire specially for You have drawn the scheme. More simply does not can be
???
I think you Encoder (EA, EB) And HUH similar.
HUH PWM Complement each other
What is a HUH?
I it is difficult to understand the sense with english.
Sorry,I do not understand English, I use an interpreter.
He meant UHU I think
I ditto so translate.
Yes, gravely translate russian - an english - chinese (or another) - an english - russian.
Presently work on new variant of the scheme servocontroller. Will be a changes to chain encoder. Using exclusive or (EOR) will simplify the scheme and simultaneously perfect parameters. On element DD1.1 and DD1.2 - an analogue of the trigger Shmita. The Element DD1.3 - a shaper of the interruption during any change at the input from encoder. And since a signal of the transition not with must be with encoder 00->11 and with 11->00, that this provides additional protection from false transition.
Theoretically, except noise-immunity the velocity must increase.
The Coding herewith to change (see fig.).
Wanted hear the opinions a specialist. Who nor be met similar? If, yes - give please reference.
Recently I have found that not quite it is correct works protection on current. At moment when open "lower" transistors (VT2 and VT4) current inductions itself from motor is not checked (not "runs" through R42).
I have installed transistors "with spare", so they "do not burn", all work well.
But with account this, advisable change the scheme of protection. What variants can offer?
Last edited by arisov77; 02-27-2009 at 07:21 AM. Reason: Changes to scheme
arisov77... and Jozefp...
I would like to thank you for sharing. I hope you continue success
The Possible variants power source on drawing. The Transistors VT1-VT4 for these voltages of the feeding and this powers (200-300W) for the best use IRF3205.
On cause encoder - I have not understood the question (because of mistake in translation). Expect following: encoder it is necessary to fix on axis of the motor. Except this it is necessary else to know the maximum number a rotation motor. If beside You encoder 1250 imp/rotation and motor 4000 rpm (http://www.c-n-c.cz/viewtopic.php?p=23778#top) , that F = 83,3kHz. I with such frequency did not test. Theoretically all must work.
Last edited by arisov77; 03-05-2009 at 02:04 AM.
Hi arisov 77.
First, tankyou because you share project.
I have some question.
I write in atmega88-20pu ServoFinishArtistint.hex and .eep files, until here is OK.
But, when i try to write ServoUART88.hex file i receive error message "WARNING Flash byte address 0x0002 is 0x93 should be 0xf3 failed", eeprom file is ok.
When i read signature with 120Hz, signature is 0x1E, 0x93, 0x0A.
I use AVR Studio 4 with AVRISP MK2 programmer.
Tanks,
Moraru.
Hi arisov 77.
First, tankyou because you share project.
I have some question.
I write in atmega88-20pu ServoFinishArtistint.hex and .eep files, until here is OK.
But, when i try to write ServoUART88.hex file i receive error message "WARNING Flash byte address 0x0002 is 0x93 should be 0xf3 failed", eeprom file is ok.
When i read signature with 120Hz, signature is 0x1E, 0x93, 0x0A.
I use AVR Studio 4 with AVRISP MK2 programmer.
Tanks,
Moraru.
I use CodeVisionAVR Chip Programmer, beside me such does not occur, specially presently checked - a mistakes no.
.eep to programme from ServoFinishArtistint and ServoUART no need, since this and was done to exclude EEPROM (in versions for AtMega8 - a file .eep no, for AtMega88 - I have forgotten to delete spare in Source Code). Previously, than give on forum, I all versions checked. All worked.
But why You use ServoFinishArtistint and ServoUART? After all each following version to become than that better.
Tanks arisov 77,
Then, all i need is files from post #15?
Yes if beside You scheme as beside me in post 1 or as beside jozefp (on interruptions from internal comparator)
Many tanks arisov77,
I use same scheme just like jozefp. But what means "on interruption from internal comparator"?
Tanks.
Read post 1 and 28. Internal comparator – this comparer residing inwardly microcontroller and generating interruptions under each step from encoder.
Last edited by arisov77; 03-06-2009 at 05:51 AM.
arisov77,
For my project i intend to use this encoder.
500 ppr
3 outputs channels.
Hi arisov77,
I try to link servo with servo tuning and don't work.
A window error message appears but don't understand what write.
Tanks.