Signals from USB Port via g.code

Post Reply
Robbog
Posts: 1
Joined: Wed Nov 18, 2020 3:39 am

Signals from USB Port via g.code

Post by Robbog » Wed Nov 18, 2020 3:47 am

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.

blakeadam
Posts: 1
Joined: Tue Mar 16, 2021 1:41 am
Location: united states

Re: Signals from USB Port via g.code

Post by blakeadam » Tue Mar 16, 2021 2:02 am

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.

Post Reply