super_star

ESP32 handle

 
Overview

The handle made of ESP32 has four buttons on the left and right sides, and two buttons on the front side of the handle with two joysticks.

 

Optional lithium battery or AA battery power supply.

 

Optional 1.3-inch, 240*240 resolution, ST7789 driven display module (7-pin SPI communication).

 

The IIC interface is reserved for plugging in the 8-pin MPU6050 module purchased on TB.
Integrated CH340 automatic download circuit and lithium battery charge and discharge management circuit.
The shells can be purchased at a fish shop for 8 yuan each (the seller does not include free shipping).


Provides the basic Arduino IDE-based driver code for the joystick, including:
a button scanner program that can directly call the driver function to obtain the status of the 10 buttons, and obtain whether the handle button status has changed;
a joystick ADC value acquisition program that can directly call the driver function To obtain the values ​​after four ADC filters,
the power acquisition program can directly call the driver function to obtain the two filtered power values.
The MPU6050 acquisition program (requires the MPU6050 module to be installed) can directly call the driver function to obtain the filtered acceleration angular velocity value and temperature value of the XYZ axis.
The above filtering all adopts IIR filtering method.
You need to install the TFT_eSPI library and MPU6050 library provided in the file yourself.
You can use the ESP32-BLE-Gamepad library in the folder to make a Bluetooth gamepad.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-20 06:35:54

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号