Mellow-3D / FLYF407ZG

31 stars 12 forks source link

BLTouch/3DTouch not responding #29

Open RemyBaligant opened 4 years ago

RemyBaligant commented 4 years ago

Hi,

I received a new board from Mellow, everything is working exept the servo out for BL/3DTouch. The 3DTouch successfully respond on chitu3d controller. I tried the last marlin release on your github. Not possible to deploy or stow. The 3Dtouch do is self test at powering up, but after that, it seems it does not received pwm commands. I've not already plugged the oscilloscope to the servo signal pin, i'll try..

Any other bug reports for 3Dtouch users ? Thanks. Best Regards

RemyBaligant commented 4 years ago

I tried two different 3Dtouch, both working on chitu3d and mks robin nano v1.2. No success for now. I tried with 3.3Vdc and 5Vdc power supply for 3Dtouch.

FLYmaker commented 4 years ago

The fan pwm conflicts with the servo timer. I have found the problem.

FLYmaker commented 4 years ago

You send your firmware source code here, I will send it to you after modification

RemyBaligant commented 4 years ago

Thanks for support. Here's the zip containing the Marlin i use to test(last release):

https://drive.google.com/file/d/1nRm3v2nWciPvoIQC-2D-wXvdhR386qUE/view?usp=sharing

RemyBaligant commented 4 years ago

i tested the servo output on a scope. I have 3.3V peak for PWM wich is fine. Probably a timing problem ?

FLYmaker commented 4 years ago

Marlin-2.0.x_FLYF407ZG.zip

FLYmaker commented 4 years ago

image I disabled PE13 here, which is the fan pin, and PE11 is the servo pin. Disable the fan PWM, the servo can be used normally. So the fan pwm and the servo pwm using the same timer will conflict

FLYmaker commented 4 years ago

This is a bug

RemyBaligant commented 4 years ago

Ok thanks for this fix i try it. So if i understand well, PE13 is FAN4. This one is totally disabled if servo is used ? Is it the only fan on the same timer ? I use fan0 for hotend cooling, fan1 for part cooling and fan5 for steppers cooling(activated when motion detected).

FLYmaker commented 4 years ago

FAN4 can continue to be used, you can test it

RemyBaligant commented 4 years ago

https://drive.google.com/file/d/1CP34IeChswxJHbPc4XPduP9-M-xJHSbl/view?usp=sharing

Thanks :) i can start printing test now

RemyBaligant commented 4 years ago

Deploy and Stow work but when homing 3Dtouch deploy/stow a few times and then stop the printer... I try to add some delay. 300ms is maybe to short for 3dtouch..

RemyBaligant commented 4 years ago

Ok, G28 is working great now with #define SERVO_DELAY { 750 }. Problem solved for 3DTouch ! :)