The microcontroller code is the same from elm´s web page.
If you change encoder resolution you need to tune up your servo again.
I don´t remember right now, but i guess the only parameter that not change is P4.
The microcontroller code is the same from elm´s web page.
If you change encoder resolution you need to tune up your servo again.
I don´t remember right now, but i guess the only parameter that not change is P4.
May you share your schematics and board and some info about tuning yuor controller ?
Thanks in advance
Emil
No schematics, i only have the pcb layout, but is easy to understand with the l298 datasheet and elm´s schematics. If you are interested I post it.
For tuning the servo you need the motor specs and apply it in a Laplace transfer function.
Please upload your PCB with part and connection descriptions and if it is possible write how you setup the servo params for your motor - to help us to do the same with our motors ( step by step ).
Thanks
Emil
Hello.
I want to share with you 'my' design of elm chan sevo controller.
I want to thanks to all of you for that great idea - first to Mr. Chan, after that to Hugo ( he helps me many time !! ), Mihai and one my friend here that helps me a lot too !
What is my destination ? - To build totaly ( with source ) free servo controller. It will be great to do that for any kind of DC brushed motors - small and large. I mean if it is possible po use on power stage L298 - let we have this layout... if someone needs to use bigger motor - let we have the more power servo controller.
My design is combination of elm chan servo with source + modified UHU power stage.
Dont forget that this design is not tested !!!!
Soon i will try to make PCB and begin the tests. I will inform this tread about results.
Any help - i mean if you see any error in the schematics, ideas or anything that can improve the servo controller are welcome !!
Please if you find something wrong - send me an e-mail ( [email protected] ) ! I will correct the schematics and will post it here.
In the near future i will need help to understand the source of Mr. Chan.
If someone of you is a 'friend' of AVR attiny2313 ASM code .. let post the message here...
Again thanks for all of you !!
Looks good Emil, I may borrow your current limit circuit once you have tested it. I assume you are going thru hole components for your board ? I would like to go smd but it is just too hard to get the components for a reasonable price where I live, I may use smd sense resistors though, will make things neater.
Keep us posted
Russell.
Hello
emilcnc
are you desigh elm add uhu circuit is all ok
Hello friends,
I am posting the last version of my PCB and i need your advice and help to found any errors on it. Please try to find any error that you can and send me message here or in my e-mail ( [email protected] ). Do you like components placement on PCB ? After correction i will send updated schematics and PCB and will start routing - hands made, because i cant receive good results with EAGLE ... ( If someone is the Eagle specialist he can help us with SUPER routing ...
Emil
Thanks in advance !
Hey Emil, I will look at your files a bit later (on lunch right now) I do the same thing with Eagle, I hand route everything and find I can get better placement and much more compact boards. The autorouter is so messy I find it quicker to do the board by itself with no schematic, of course this doesn't help with fault finding and it can be easy to make mistakes.
BTW I finished my Elm board and am testing it now, I have the servo locking and will start testing with step/dir input next, it seems like quite a capable little drive, I especially like the torque limit function, I know it won't replace a discrete current limit but it is very nice, when tuning I could feel the torque change as I increased the parameter.
Good Luck.
Russell.
Hello Friends,
I will try to do the PCB using GIMP - free PhotoShop ... after good component placement i will route the my PCB - on first layer is the components, on second you can place the result of Eagle rouiting ( not so optimized, but you can use it for help, 3 th layer maybe the TOP PCB and so on ...if some routed paths are not sure you may place them on separate layer ... and on the final you can export two sides of PCB and produce it.
Please look at schematics and find errors if it is possible, because i am begining PCB)) THANKS !!
Regards
Emil
Hello friends!
I designed a board to use with elm and UHU. Just need some bridges between the 2 versions.
The encoder input is symmetric. UHU version already working.
Hello,
I need help to chech the components placements on my PCB.
I will attach the image with 'my' idea how to place the components on PCB, but maybe i am on wrong way. Please chech the the schematics and pcb and correct me. After that, if PCB is "approved" will begin manual routing because Eagles default routing is not too acceptable.
Thanks in advance
Emil
emilvv @ gmail.com
Hey Emil, just a question, I notice you using a Max 232 chip for the serial comms, any particular reason ?
I used the original 74hc14 and resistors as per the original schematics and it works fine, I may sound a bit cheap here but the 74hc14 is 30 cents and the Max232 about two dollars.That would add up to a beer per drive
Russell.
Hello Russell,
I am just trying to merge CHANs servo + UHU power stage and make it working.
Max 232 providing the optimal connection between PC and servo ... i think that we need it.
My funny answer is that beer is not so useful for the men because here for 2 USD you can buy 3 liters of beer
May i ask you about your servo .. will you post here SCH PCB .... pics and vids .?
It will be very interesting !
Soon i am beggining hand made routing. Wait for my upgrades.
Regards
Emil
Hi Emil, 3 litres of beer for $2.00 bucks !! I like the sound of that
I will post my board layout etc soon, still testing, but things are looking good, should be finished in a week or two.
In the meantime here is a pic of what I am up to...I am using seperate H Bridge boards, while I am testing a few things, this has worked out well, but the final board will be all together.
Cheers.
Russell.
See pdf file for shutdown !
Any updates for this thread?
Jon
My boards are up and working, just in the testing phase, so I can't really add much, another thread has sprung up which may be of interest :
http://www.cnczone.com/forums/showthread.php?t=56395
Cheers.
Russell.
I downloaded the AVR studio package and assembled the SMC3a version, but there were 11 warnings. Did anyone else encounter this? I commented out some .def lines in the avr.inc file and got it down to one warning. I've read several different threads and don't recall anybody mentioning problems?
Jon
I think that no any body can make this project right because time and interest or some thing but Mr.Uli Huber . I think that he spent a lot of time , day , month to fully make it . I think that every body can make right about this project , he will also spent a lot of time , day , month . Not easy . That mean that man is very well informed about AVR and assembler language and that man need a good electronic engineer .
I think that in forum have a lot of good engineer , but may be they don't have time for this project .