Page 1 of 1

Signals from USB Port via g.code

Posted: Wed Nov 18, 2020 3:47 am
by Robbog
Hello everyone,

I want to use the USB Port on my A20M to give out a high (5V) signal during a print. I'm trying to trigger a camera by using a g.code command to set the 'Pins' on the the USB Port of the printer to a high. Does anyone know if this is even possible? Is there an existing Pin-adresse (Pin-Number) for the USB Port which can be commanded via g.code?


Thanks in advance.

Re: Signals from USB Port via g.code

Posted: Tue Mar 16, 2021 2:02 am
by blakeadam
The USB ports have no addressable io (just two comms signals). You would need to have an interface card plugged into the USB port. A driver would probably be supplied with the card allowing VB interfacing. You could add your own USB interface chip and design your own interface and write the windows driver but this is a lot of effort, look at the Elektor Electronics they have done several USB interface designs.