Joystick Module MEGA328P I2C/Grove Connector Compatible X/Y Axis & Button Cap
Description:
JOYSTICK, we have two types of JOYSTICKs one is bui ld on a panle compatible with FACES Kit, this is the M5Unit version of JOYSTICK
JOYSTICK is very similar to the 'analog' joystick on PS2 (Play Station 2) controllers. The X and Y axes are two 10k potentiometers which control 2D movement by generating analog signals. The joystick also has a push button that could be used for special applications. Therefore, the entire Unit can output X-Y motion signals in both directions and Z direction.
As designed in the schematic, the Joystick X dimension is connected to pin A0 of MEGA328, the Joystick Y dimension is connected to pin A1 on MEGA328, the Joystick Z dimension is connected to pin A2 on MEGA328.
This Unit communicates with the M5Core via the GROVE A interface. It's I2C address is 0x52. By reading the data transferred from JOSTICK, you can obtain the motion information of JOYSTICK.
Product Features:
- Output value of X, Y direction: 10 ~ 250
- Output value of Z direction is (0: released; 1: pressed)
- Software Development Platform : for , UIFlow(Blockly, Python)
- Two Le go-compatible holes
- Product Size: 48.2mm x 24.2mm x 22.5mm
- Product weight: 11.4g
Package Included:
- 1x JOYSTICK Unit
- 1x Grove Cable
Application:
- Game Controller
- Robot remote control
Related Link:
EasyLoader
<blockquote style="box-sizing: border-box; font-size: 16px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none; margin: 2em 0px; overflow: visible; padding: 1.5em; border-width: var(--blockquote-border-width, 0); border-style: var(--blockquote-border-style); border-color: var(--blockquote-border-color); border-radius: var(--blockquote-border-radius); background: var(--blockquote-background); color: rgb(33, 37, 41); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; quotes: " 1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the mas ter through simple steps, and a series of function verification can be performed.
2.After downloading the software, double-click to run the application, connect the M5 device to the computer through the data cable, select the port parameters, click "Burn" to start burning. (For M5StickC burning, please Set the baud rate to 750000 or 115200)
3. Currently EasyLoader is only suitable for Windows operating system, compatible with M5 system adopts ESP32 as the control core host. Before installing for M5Core, you need to install CP210X driver (you do not need to install with M5StickC as controller)Click here to view the driver installation tutorial
PinMap:
Mega328 ISPDownload interface Pin foot definition
Example
1. for IDE
The code below is incomplete(just for usage).To get complete code, please click here.
2. UIFlow
To get complete code, please click here.
Schematic:
PinMap:
M5Core(GROVE A) | GPIO22 |