0
0
0xC0CAC01A2018-05-04 21:42:06
Iron
0xC0CAC01A, 2018-05-04 21:42:06

How to connect a button to a computer?

I want to make a button on a wire (~3m) connected to a computer, for example via USB. Previously, there were RS-232 and LPT - everything was simple there. How to do it in today's realities? I can hold a soldering iron in my hands. Yes, and how to interrogate this button (or wait for a call) from the code in C, Java or Python?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
Fixid, 2018-05-04
@Fixid

Digispark
Digispark-attiny85-Micro-USB-Arduino.jpg

V
Vladimir T, 2018-05-04
@32bit_me

Through Arduino, as an option.
Although I do not like this toy, it is easier not to think of such goals. It costs a penny, there are tons of examples on the net.

O
OnYourLips, 2018-05-04
@OnYourLips

Through any microcontroller (the most primitive option is Arduino) and work with it via UART (RX / TX) as with a regular COM port.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question