The store will not work correctly when cookies are disabled.
Happy Chinese New Year!Elecrow will be on holiday from February 14–22 (GMT+8). You may still place orders of products and manufacturing services as usual, and we will resume production and shipping by February 25.
A small dot moves on the screen based on the K10’s accelerometer readings, creating a tilt-controlled interface.
Hardware Components
UNIHIKER K10
DFRobot
X 1
Tools, APP Software Used etc.
Mind+
Story
This project uses the Unihiker K10’s built-in accelerometer to move a dot on the screen depending on how the device is tilted. The accelerometer’s X and Y values are mapped to screen coordinates, and the dot shifts smoothly as you rotate the device.
How it works:
Read accelerometer X/Y values each loop.
Convert them into screen positions (mind_n_moveX, mind_n_moveY).
Draw a green circle at the new position.
Immediately erase the old one by drawing a white circle behind it.
This creates a simple yet interactive tilt-control demo, perfect for learning IMU basics, motion-based UI, or game mechanics on the Unihiker K10.