[gnea/grbl-Mega Issue#135] Laser connection on MKS Gen L V1 using PWM / TTL 5V

未分类 bolang 4个月前 (10-15) 26次浏览

Issue #135 | 状态: 进行中 | 作者: nacnudz | 创建时间: 2020-09-22


Hi,
I am trying to connect my laser to a MKS Gen L V1.0 using a 5v PWM pin.
I have found that i can use pin 44 as a 5v PMW output but i am not really sure how to program it.

I am not a prgrammer and i havent had anything to do with arduino port and bit programming before

From what i can work out i need to change the spindle output in cpu_map.h to be:

// Define spindle output pins.
#define SPINDLEPWMDDR DDRL
#define SPINDLEPWMPORT PORTL
#define SPINDLEPWMBIT 5 // MEGA2560 Digital Pin 44

When i tell the laser to run im not getting any voltage coming from Pin 44

I am using the below Pinout Diagram of the MKS to Reference the Pin 44 Connection

https://i.stack.imgur.com/YlGDW.png

Thanks in Advance


评论 (1)

#1 – botio 于 2021-02-07

#55


原始Issue: https://github.com/gnea/grbl-Mega/issues/135

喜欢 (0)