Clear all

Controlling stepper with VCSEL distance sensor  


New Member
Joined: 12 months ago
Posts: 1
2019-12-09 8:19 pm  

Thank you for adding me. I'm trying to control a nema 17 with a VCSEL laser distance sensor. The closest code I could find uses a small clickable rotary encoder. I need to pass the instant measurement of the sensor so the motor moves a number of steps instantaneously. I'm not trying to get free code, just a few pointers as to how to pass the variable between the sensor readings to stepper part of the code. Any pointers or pseudo code are much appreciated.

Reputable Member
Joined: 1 year ago
Posts: 380
2019-12-10 10:27 am  

Hello @timg , maybe you could post what your code currently looks like, it would be easier to help you then.