This repository contains HID mouse emulation for the Sunone Aimbot.
- To get started, acquire an
Arduino Leonardo R3 ATMEGA32U4,ARDUINO USB HOST SHIELD, and a soldering iron if you don't have one. - Download and install the Arduino IDE.
- Download and unpack the repository archive to
C:\Users\your_username\Documents\Arduino\HID_Arduinoor if you have logitech G-series mouse download this and unpack the repository archive toC:\Users\your_username\Documents\Arduino\hidmousereport - Download and unpack this archive into
C:\Users\your_username\Documents\Arduino\libraries\USB_Host_Shield_2.0-1.6.2 - Solder 3 contacts on the board to increase the voltage as shown in the image.
- Open the file
C:\Users\your_username\Documents\Arduino\HID_Arduino\HID_Arduino.inoorC:\Users\your_username\Documents\Arduino\hidmousereport\hidmousereport.inoif you have logitech G-series mouse - Connect the
ARDUINO USB HOST SHIELDto theArduino Leonardoand connect theARDUINOto the PC.
- Select the device
- Write "leonardo" in the search engine
- Select the device
- Select the port to which the device is connected
- Upload the program to your device
- Connect the mouse to the host shield.
- Test the mouse for functionality. If everything works as it should, then you have been successful and lucky with the mouse model. But if something does not work correctly, continue to the next steps. (For logitech G-series tutorial is ends.)
- Open the file
C:\Users\your_username\Documents\Arduino\libraries\USB_Host_Shield_2.0-1.6.2\settings.hin notepad. - Change
#define ENABLE_UHS_DEBUGGING 0to#define ENABLE_UHS_DEBUGGING 1 - Upload the script to the device.
- In the Arduino IDE, open the Tools->Serial Monitor tab.
- Select 9600 baud.
- You should see the data that the mouse sends to the host shield.
- Switch to the
hidcustom.htab and look at thestruct MYMOUSEINFOstructure - In my case, it looks like this:
- For me, the mouse button bytes are transmitted first, but your data might be different, like the mouse coordinates on the X-axis, for example.
- Then you will need to change the structure of
MYMOUSEINFOso that the variableuint16_t dX;is at the beginning. - In some cases, you will need to change
uint16_ton theX axisoruint16_ton theY axistouint8_t. - Do this with all the output data and normalize the structure.
- Do not forget to disable the
#define ENABLE_UHS_DEBUGGING 0insettings.hafter completing all the steps.
Этот репозиторий содержит HID эмуляцию мыши для ИИ Аимбота.
- Для начала приобритите
Arduino Leonardo R3 ATMEGA32U4,ARDUINO USB HOST SHIELDи паяльник если его нет. - Скачайте и установите Arduino IDE.
- Скачайте и распакуйте архив скачанный с репозитория в
C:\Users\ваше_имя_пользователя\Documents\Arduino\HID_Arduinoили если у вас мышка logitech G-серии скачайте this и распакуйте скачанный архив с репозитория вC:\Users\ваше_имя_пользователя\Documents\Arduino\hidmousereport - Скачайте и распакуйте этот архив и распакуйте в
C:\Users\ваше_имя_пользователя\Documents\Arduino\libraries\USB_Host_Shield_2.0-1.6.2 - Спаяйте на плате 3 контакта чтобы получилось как на изображении. (Для увеличения напряжения)
- Откройте файл
C:\Users\ваше_имя_пользователя\Documents\Arduino\HID_Arduino\HID_Arduino.inoилиC:\Users\ваше_имя_пользователя\Documents\Arduino\hidmousereport\hidmousereport.inoесли у вас мышка logitech G-серии - Подключите плату
ARDUINO USB HOST SHIELDкArduino Leonardoи подключите к ПКARDUINO.
- Выберите устройство
- Напишите в поисковике "leonardo"
- Выберите устройство
- Выберите порт к которому подключено устройство
- Загрузите программу на устройство
- Подключите мышь к host shield.
- Проверьте мышь на работоспособность. Если всё работает как нужно то у вас всё получилось и повезло с моделью мыши. Но если что-то работает не правильно вам дальше. (Для logitech G-серии дальнейшие действия не требуются.)
- Откройте в блокноте файл
C:\Users\ваше_имя_пользователя\Documents\Arduino\libraries\USB_Host_Shield_2.0-1.6.2\settings.h - Измените
#define ENABLE_UHS_DEBUGGING 0на#define ENABLE_UHS_DEBUGGING 1 - Загрузите скрипт на устройство.
- В Arduino ide откройте вкладку Tools->Serial Monitor.
- Выберите 9600 baud
- Вы должны увидеть данные которые пересылает мышка на host shield.
- Переключитесь на вкладку
hidcustom.hи взгляните на структуруstruct MYMOUSEINFO - В моем случаи это выглядит так:
- У меня в начале пересылаются байты кнопок мыши, но у вас может пересылаться что-то другое, к примеру координаты мыши по X-горизонтали.
- Тогда вам нужно будет изменить структуру
MYMOUSEINFOтак что-бы в начале стояла переменнаяuint16_t dX;. - В некоторых случаях нужно будет изменить
uint16_tпооси Xилиuint16_tпооси Yнаuint8_t. - Проделайте это со всеми выходными данными и приведите структуру в норму.
- Не забудьте отключить после всех проделанных действий
#define ENABLE_UHS_DEBUGGING 0вsettings.h.



