Program Resource

Resource libraries for programmers and developers

M5Stack and MPU9250 as Bluetooth gyro mouse

M5Stack and MPU9250 as Bluetooth gyro mouse

Thanks to author of library, Bluetooth mouse library is available for ESP32 devices. I’ll be making Bluetooth mouse with M5Stack this time. https://github.com/T-vK/ESP32-BLE-Mouse Download and install library from above site. There are many ideas, such us using joystick, to control mouse. This time, I’ll use MPU9250 gyro sensor. Connect sensor with I2C wiring. There are M5Stack models which has gyro sensor inside. For those M5Stack models, only thing you need is M5Stack itself only. Tweet from M5Stack official below shows good table of difference between models. Check MEMS row. Sketch is as follows. M5Stack is used upside down. Button C for left click, A for right click, hold down B …

Use M5Stack as Bluetooth keyboard and control presentation

Use M5Stack as Bluetooth keyboard and control presentation

ESP32 devices can be used as Bluetooth device, such as mouse or keyboard. It was hard to write sketch while ago, but now, there’s handy library which you can easily make ESP32 to Bluetooth hid device. This time, I’ll be using M5Stack to work as simple PowerPoint controller. Download and install library from URL below for Bluetooth Keyboard. https://github.com/T-vK/ESP32-BLE-Keyboard After installing library is simple. Call begin, then press/release function to send key. Since M5Stack have 3 buttons, I’ve assigned Home, Page Up, and Page Down key to them. You can also do some more complicated control using long hold button, etc. After writing sketch to M5Stack and booting, you will …