Welcome! Log In Create A New Profile

Advanced

Pulse generation on I/O Pins

Posted by siva 
Pulse generation on I/O Pins
July 22, 2016 06:46AM
Hi,

I am using Duet RepRap Pro V0.8.5.

Input voltage for my board is 28V and I am using both PWM Fans.

I would like to generate a single pulse (+5V) on any of the available pins on the board. Using one of the pins on the expansion header might be much easier in this case.

Could any one advice on how to generate a +5V pulse signal on expansion header pins by sending a G/M commands.

Regards
Siva
Re: Pulse generation on I/O Pins
July 22, 2016 08:16AM
How critical is the width of the pulse? If it is not critical, you could just use M42 commands to set the pin high and then set it low, perhaps with a G4 delay command in between to define a minimum width for the pulse.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Pulse generation on I/O Pins
July 22, 2016 09:07AM
Could you tell me which pin do I have to use?

Edited 1 time(s). Last edit at 07/22/2016 09:52AM by siva.
Re: Pulse generation on I/O Pins
July 22, 2016 10:43AM
If you look up M42 in the gcode wiki, it tells you which pins are available for use with M42 on the Duet.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Pulse generation on I/O Pins
July 22, 2016 10:57AM
Thanks working!
Sorry, only registered users may post in this forum.

Click here to login