In general, I would like to learn how to create an improvised electronic relay that could “communicate” with a computer.
Also, I did not find books on creating drivers for electronic products, with the simplest examples.
In general, I would very much like to read books in this direction.
There is a book DMK Press "Embedded systems based on Linux."
It is more about Linux, but I would like, for example: Create a lamp (220V) with a timer that, when connected to a computer, would be recognized, it would have its own communication protocol and, of course, would have its own software