Skip to content

ayushcodec/3d_motion_t_motion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

3D Motion T-Motion (MPU6050 + SSD1306 + MKR1010)

This project uses the MPU6050 motion sensor, Mini OLED SSD1306, and Arduino MKR1010 to render 3D objects on the OLED display and rotate them using real-time motion from the MPU6050.

The code can be easily converted for any microcontroller (ESP32, ESP8266, Arduino Nano, UNO, etc.) using ChatGPT.

πŸš€ Features

βœ” Real-time 3D motion rendering βœ” MPU6050 gyro + accelerometer tracking βœ” Works with MKR1010 (default) βœ” Portable code, easy to adapt to other boards βœ” Only 3 libraries required

πŸ“¦ Step 1: Install Required Libraries

#include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include <MPU6050.h> You can install them from:

Arduino IDE β†’ Tools β†’ Manage Libraries β†’ Search β†’ Install

🧩 Step 2: Install MKR1010 Board Package

Open Arduino IDE

Go to Tools β†’ Board β†’ Boards Manager

Search: β€œArduino SAMD Boards (32-bit ARM Cortex-M0+)”

Install it (This adds support for MKR1010)

πŸ”Œ Step 3: Make the Connections

Open the connections folder and follow the wiring diagram. Typical connections: MPU6050 β†’ MKR1010 SDA β†’ SDA SCL β†’ SCL VCC β†’ 3.3V GND β†’ GND

SSD1306 OLED β†’ MKR1010 SDA β†’ SDA SCL β†’ SCL VCC β†’ 3.3V GND β†’ GND

πŸ’» Step 4: Upload Code Open the code folder In Arduino IDE set: Tools β†’ Board β†’ Arduino MKR WiFi 1010 Select Port Click Upload Once uploaded, the OLED will display a 3D shape rotating according to MPU6050 movement.

**Using Other Microcontrollers? ** This project works with many boards: ESP32 ESP8266 Arduino Nano Arduino UNO AVR / ARM boards You can ask ChatGPT to automatically convert the code for your board.

About

this project is about creating an motion controlled 3 objects in the mini oled

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors