P
P
PaGrom2012-01-22 23:09:53
Python
PaGrom, 2012-01-22 23:09:53

How to receive a simple signal via USB?

Tried googling, but couldn't find an answer. The essence of the question is, is it possible to receive a simple signal 0 or 1 via USB without soldering any controller? That is, if +5V is connected through the load to, for example, D-, then we catch 1, if to D +, then 0. And I would like to catch it using Python (PyUSB). In principle, it would be possible to solder the controller to the AVR and send signals to it, but I don’t want to bother like that. Using COM or LPT to do all this is not a problem, but what about USB?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
alexk24, 2012-01-23
@alexk24

Without additional body kit. USB requires the device to identify itself. In the best case, without a body kit, you can only get power from the USB connector.
If you really want to minimally solder, you can try to implement something through the microphone input.
Well, with FT232 you can think of something. But this thing is not cheap and not very easy to solder. And so a very interesting mikruha. In order to obtain 0 or 1, for example, you can watch DTR.
More about FT232:
easyelectronics.ru/preobrazovatel-usb-uart-na-ftdi-ft232rl.html

G
Gribozavr, 2012-01-22
@gribozavr

No. It is necessary to implement all the necessary logic or take an MK with built-in USB, where it is implemented in hardware.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question