Answer the question
In order to leave comments, you need to log in
What is the best way to fix the opening of the contact?
There are two contacts, it is necessary to programmatically process the moment of their opening. A separate device, if possible, does not want to be assembled for this.
1. Is it possible, for example, in any pinout to output contacts to USB or another port and track the opening moment on an Odroid device or computer?
2. If you can not do without an additional circuit, then what would be the simplest option?
(PS Sorry, I'm a beginner in electronics. Thanks in advance.)
Answer the question
In order to leave comments, you need to log in
Without an additional circuit (quite complicated for a beginner), nothing can be unambiguously connected to USB. Theoretically, contacts can be connected to the printer port, but now it is exotic and there is an almost 100% chance of its failure (perhaps not only it).
You can try to connect to the COM port (they are there but not always displayed on the back panel), it goes without saying that you need to draw a program that will monitor all this disgrace.
PS I don't know what kind of devil you need it for, but a beginner should not poke something into computer holes, there is a high probability of sad consequences.
Personally, I would drink something like this on this
Take a broken (mechanically) USB mouse or keyboard, remove the board and plug it in instead of a button (you will need an optocoupler). Tracking whether the button is pressed is not so difficult.
Another option: put any of the USB-232 converters, they are now terribly cheap, but I advise ft232 and others like them - more stable.
in this interface, in addition to TxD RxD, sharpened for serial data transfer, there is a set of control inputs / outputs RTS CTS DTR DSR RI DCD RI, which can be perfectly used as GPIO :) googled the implementation of 1wire on rs232 for example.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question