I am working on a personal project related to sending simple signals from my computer to a circuit via USB. I mainly use the USB signal as a shutter signal for the MOSFET, which in turn activates a relay to turn on / off various AC peripherals. For example, if I want to turn on the light bulb for 5 seconds every minute, I would send 1 on the first wire within the first 5 seconds of every minute.
This is my problem: I have no idea how to manually send 0/1 via a specific cable to a USB cable or even interact with a USB port in general :(
So, I think there are several parts to this question, is it possible to interact directly with bits sent via a USB port? If so, how do I do this? I am familiar with C ++ and C #, so I really hope that you can do this in one of these ...
Thank!
edit Hmm, it looks like the USB port actually only has one 5V pin, so direct USB interaction will not work. Going to the parallel adapter and return to it.
source
share