clough42 / electronic-leadscrew

Lathe electronic leadscrew controller
MIT License
317 stars 117 forks source link

Encoder not talking to servo controller flickers #246

Open deirpo opened 1 year ago

deirpo commented 1 year ago

I'm trying to install the ELS on my G0602 lathe using the StepperOnline iSV57T servo 24/72 belt drive and E6B2-CWZ6C encoder. I've acquired and assembled the Clough42 booster board and panel controller to the TI Launchxl board. I'm bench testing the system having checked all continuity of cabling, programmed the SoL servo with 500 step/rev and 3 micro steps, downloaded Jame's driver program v1.4.01 and set stiffness to 11 and steps to 500. The issues I'm having are 1: that encoder the not turning the motor even though it is getting 48vdc and the encoder is getting 5vdc. With power on the motor is holding position but not responding when the encoder is turned. The TI board is setup the way James described ,jumpers off and switches s3 s4 set. With 5vdc to the booster board the TI board blue and red lights are on by the debug end and the 5v and 3.3v green booster lights are on. The controller boots up and all the buttons work perfectly but, the leds are dimmer than normal and they flicker. This configuration is essentially the same as Jame's awesome design! One question I have is with reference to the configuration.h line 78 in regard to Enable_PIN setting since this servo has none. I'd welcome any suggestions or insights that can help resolve these issues! Thanks to James and all the amazing members of this community, Barry

Chucksbp commented 1 year ago

Does it show RPM on the display?? The display boards thyem selves are quite finicky. My first one didn't work properly. you can buy them on Amazon, quite inexpensive. Try a new one without changing the connector. Also there have been a few non working and early failure ebay encoders. there are a few issues posted below. also has been some TI launch board failures, nesetating changing over to the second Launch board encoder input. I had an early Encoder failure. I replaced the encoder with one from Amazon and switched to the second input and it has been fine for about a year now.

deirpo commented 1 year ago

Hi, No rpm showing when encoder rotated either direction and no servo motion. When I power up the display shows the complete sequence of boot up and all buttons working and all modes responding properly to button pressed. The digits are not bright as they should be and there is random flickering.   I’ve ordered a couple new displays already.Thanks for your response Barry Sent from my iPhoneOn Feb 19, 2023, at 8:01 AM, Chucksbp @.***> wrote: Does it show RPM on the display?? The display boards thyem selves are quite finicky. My first one didn't work properly. you can buy them on Amazon, quite inexpensive. Try a new one without changing the connector. Also there have been a few non working and early failure ebay encoders. there are a few issues posted below. also has been some TI launch board failures, nesetating changing over to the second Launch board encoder input. I had an early Encoder failure. I replaced the encoder with one from Amazon and switched to the second input and it has been fine for about a year now.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

deirpo commented 1 year ago

Hi,   Just received new led8key, this one works perfectly! 👍 Now to install connector on back.   Still no function from encoder :(  Can I test encoder with oscilloscope? I’ve never tried, does anyone know how to?Regards Barry Sent from my iPhoneOn Feb 19, 2023, at 12:32 PM, Barry Weissburg @.> wrote:Hi, No rpm showing when encoder rotated either direction and no servo motion. When I power up the display shows the complete sequence of boot up and all buttons working and all modes responding properly to button pressed. The digits are not bright as they should be and there is random flickering.   I’ve ordered a couple new displays already.Thanks for your response Barry Sent from my iPhoneOn Feb 19, 2023, at 8:01 AM, Chucksbp @.> wrote: Does it show RPM on the display?? The display boards thyem selves are quite finicky. My first one didn't work properly. you can buy them on Amazon, quite inexpensive. Try a new one without changing the connector. Also there have been a few non working and early failure ebay encoders. there are a few issues posted below. also has been some TI launch board failures, nesetating changing over to the second Launch board encoder input. I had an early Encoder failure. I replaced the encoder with one from Amazon and switched to the second input and it has been fine for about a year now.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

Chucksbp commented 1 year ago

I am sure the encoder can be diagnosed with a scope although I'm not sure what you would expect for a good one. but I do believe there were some videos on line. I was able to leave the conector where it is, bend the pins at a 90 degree angle trim a bit of excess shell on the plug and still get it all in the box. I was afraid i may have ruined it removing the old pins. later I did manage to change the pins and it worked. I have spare parts just in case.

deirpo commented 1 year ago

I replaced the original display keyboard and the TI board boots up normally and no more flickering! Ordered a replacement encoder, should be here tomorrow. Hopefully it won’t be dead on arrival, too!Barry Sent from my iPhoneOn Feb 20, 2023, at 6:57 AM, Chucksbp @.***> wrote: I am sure the encoder can be diagnosed with a scope although I'm not sure what you would expect for a good one. but I do believe there were some videos on line. I was able to leave the conector where it is, bend the pins at a 90 degree angle trim a bit of excess shell on the plug and still get it all in the box. I was afraid i may have ruined it removing the old pins. later I did manage to change the pins and it worked. I have spare parts just in case.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

deirpo commented 1 year ago

Solved! Bad encoder and lednkey panel. Go figure!

dadyo55 commented 1 year ago

I have a similar problem threading I to a first pass reset for 2nd pass and it does not line up. 3rd pass out of alignment again by about the same amount . About .030 each time , is this a encoder problem?

Chucksbp commented 1 year ago

https://github.com/clough42/electronic-leadscrew/issues/246#issuecomment-1480478130 How are you driving your encoder?? My suspicion would be a slight offset in the 1 to 1 drive ratio. Mark the position of the spindle and the encoder. run the lathe for 5 minutes or so and see if the two markes still line up. I had an issue with Chinese pulleys. same number of teeth but the encoder would gain tining when running for a while. I also found belt tension on the encoder to be very touchy. 20220107_141939

dadyo55 commented 1 year ago

Thanks the encoder are to pulleys I printed both the same ? But I will run them for 5 minutes and see if they are still timed right

deirpo commented 1 year ago

Solved problem not solved. I went on Amazon and searched for the Onron 1048 encoder but the one I ordered was actually a 300 step encoder. So, when I received it I immediately hooked it up. And it was sending pulses to the servo but, not at the expected rate because the servo and driver were programmed for a 1048 encoder. Finally, I noticed this was a 300 step unit. Therefore, I adjusted my settings to account for the difference. While the result was a correct ratio between encoder a servo, the servo sounded coarse. I returned the 300 step servo. At least I know that the launch and booster are working to control the servo according to the parameters selected on the panel. Yesterday I received the Omron E6B2-CWZ6C, same as the first encoder, which didn't work. Wired it up only to have no response! Does anyone know how to test one of these encoders with an O scope to see the pulse output on A,B, and Z? Or do I just have another dead unit? Cheers?

Chucksbp commented 1 year ago

I have no idea of how to properly test the encoder although i believe i once found a youtube video but you needed an oscilloscope for proper diagnosis. this is the encoder a couple of us used when we had failures. I believe the Chinse knock offs on ebay are having some issues at times. This one seems to be working well. https://www.amazon.com/gp/product/B08RS6M32J/ref=ppx_yo_dt_b_asin_title_o07_s00?ie=UTF8&psc=1 all the dementions and wiring are the same as the Chinese knock off Omron encoder.

deirpo commented 1 year ago

Thanks Chucksbp for the feedback. I took your advice and order the encoder you suggested. Seems to work right out of the box! Now if I can just program my servo and launchpad with the correct micro steps to control feeds on my G0602 lathe with 3 to 1 step down pulleys and 2 to 1 gear reduction. Thanks for your help! Barry

Chucksbp commented 1 year ago

You are very welcome! it seems as though that encoder is better built than the ebay ones. You are the third Pearson i'm aware of that had success with it with the ELS. I believe if you set your resolution to the motor setting and the microsteps to 6 it should work. As long as the total doesn't exceed the limits of the program. if so you can lower the resolution on both the motor and the program.