Arduino emulate keyboard and mouse11/8/2023 ![]() ![]() ![]() On the computer, a custom program detects and decodes this movement, recreating the stream of data. Each of these encoding movements also returns the mouse to its origin point, so the mouse doesn’t mysteriously scroll off the screen when data is being sent. By using both a combination of three left-right or up-down movements, he was able to create 16 movements, each of which can encode 4 bits of data. That is because the Arduino is just sending tiny movements, each of which is a code that represents a nybble (4 binary bits) of data. This setup means that he can use his existing mouse: the system just sees the Arduino as a second mouse, and the pointer just looks a little jerky when you zoom in. He used an Arduino Leonardo that is set to emulate a mouse, working alongside his existing mouse. The way he did this was very, very clever. What he came up with was an interesting hack that uses small movements of the mouse pointer to send data at up to 1200bps, or about 150 bytes per second. Literally: he decided to try sending data using the mouse pointer. Was thinking about new and interesting ways to send data between devices, when he realized that the answer was right in his hand. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |