Difference between revisions of "ESP32 IMU"

From MakerFabsWiki
Jump to: navigation, search
Line 28: Line 28:
 
::#Select Tools -> Board -> Esp32 Wrover Module. <br>
 
::#Select Tools -> Board -> Esp32 Wrover Module. <br>
 
::#Select Tools -> Port, select the related Port. <br>
 
::#Select Tools -> Port, select the related Port. <br>
[[File:IMU Show 1.gif]]
+
[[File: ESP IMU 111.PNG[500px]]]
  
 
*Connect the board to the PC by USB cable. Open the file “\ESP32_IMU_Module-master\mpu6050_wifi\ mpu6050_wifi.ino”. Modify the Wifi configuration and PC port.<br>
 
*Connect the board to the PC by USB cable. Open the file “\ESP32_IMU_Module-master\mpu6050_wifi\ mpu6050_wifi.ino”. Modify the Wifi configuration and PC port.<br>
Line 37: Line 37:
 
const char *password = "20160704";
 
const char *password = "20160704";
 
const char *host = "192.168.1.234";
 
const char *host = "192.168.1.234";
<pre>
+
</pre>
Such as how to download a program, how to use a Python program to reflect the IMU's spatial Angle.<br>
+
*Verify and upload it.<br>
[[File: ESP IMU 111.PNG[500px]]]
+
[[File: ESP IMU 112.PNG[300px]]]
 
+
*Open the exe “\ESP32_IMU_Module-master\imu_show\dist\imu_show.exe” and reset the board. Wait for a minute and the window will display the mock-up image.<br>
 
+
[[File:IMU Show 1.gif]]
  
 +
=== IMU car rasing ===
 +
==== uPyCraft_v1.1 ====
 +
*You can download the software from here: '''[https://randomnerdtutorials.com/uPyCraftWindows link]'''<br>
 +
*Connect the board to the PC by USB cable. Open uPyCraft_v1.1, select the tools:” Tool > board > esp8266” and “Tools > port > com*”, click the connected button on right.<br>
 
'''[https://github.com/Makerfabs/Project_IMU-Car-Racing Github:Project_IMU-Car-Racing]'''<br>
 
'''[https://github.com/Makerfabs/Project_IMU-Car-Racing Github:Project_IMU-Car-Racing]'''<br>
 
Using the MPU6050 gyroscope to obtain its own tilt Angle to simulate the arrow keys, the control of a simple Python racing game.<br>
 
Using the MPU6050 gyroscope to obtain its own tilt Angle to simulate the arrow keys, the control of a simple Python racing game.<br>

Revision as of 03:58, 28 September 2020

Introduction

The Makerfabs IMU Module features the 6-axis MPU-6050 MEMS sensor from InvenSense. Each of these 6DoF IMU features an ESP32 with an MPU-6050 which contains a 3-axis gyroscope as well as a 3-axis accelerometer. The MPU-6050 uses 16-bit analog-to-digital converters (ADCs) for digitizing 6 axes. By combining a MEMS 3-axis gyroscope and a 3-axis accelerometer on the same silicon die together with an onboard Digital Motion Processor™ (DMP™). It can be used as a helicopter/quadcopter.

Model: IMU
ESP32 6- Axis IMU-1000x750.jpg
ESP32 6- Axis IMU-back.jpg

Features

  • Integrated ESP32 2.4G WiFi and Bluetooth
  • I2C Digital-output of 6-axis MotionFusion data in rotation matrix, quaternion, Euler Angle, or raw data format
  • Input Voltage: 3.7V Battery or 5.0V MicroUSB
  • Tri-Axis angular rate sensor (gyro) with a sensitivity up to 131 LSBs/dps and a full-scale range of ±250, ±500, ±1000, and ±2000dps
  • Tri-Axis accelerometer with a programmable full scale range of ±2g, ±4g, ±8g and ±16g
  • Digital Motion Processing™ (DMP™) engine offloads complex MotionFusion, sensor timing synchronization and gesture detection
  • Embedded algorithms for run-time bias and compass calibration. No user intervention required
  • Digital-output temperature sensor
  • Size: max 100mmX100mmX9mm

Usage

ESP IMU Module

  • You can get the firmware from here: Github:ESP32_IMU_Module
  • After Arduino IDE installed, there is a default package to support ESP32. Install ESP32 board and select the port:
  1. Choose File -> Preferences -> settings -> Additional Boards Manager URLs.
  2. Fill the link "https://dl.espressif.com/dl/package_esp32_index.json" and click OK.
  3. Choose Tools -> Board -> Boards Manager.
  4. Type "ESP32" into the search box and install "esp32 by Espressif Systems"
  5. Select Tools -> Board -> Esp32 Wrover Module.
  6. Select Tools -> Port, select the related Port.

[[File: ESP IMU 111.PNG[500px]]]

  • Connect the board to the PC by USB cable. Open the file “\ESP32_IMU_Module-master\mpu6050_wifi\ mpu6050_wifi.ino”. Modify the Wifi configuration and PC port.
 
#define WIFI_CONNECT
#ifdef WIFI_CONNECT
const char *ssid = "Makerfabs";
const char *password = "20160704";
const char *host = "192.168.1.234";
  • Verify and upload it.

[[File: ESP IMU 112.PNG[300px]]]

  • Open the exe “\ESP32_IMU_Module-master\imu_show\dist\imu_show.exe” and reset the board. Wait for a minute and the window will display the mock-up image.

IMU Show 1.gif

IMU car rasing

uPyCraft_v1.1

  • You can download the software from here: link
  • Connect the board to the PC by USB cable. Open uPyCraft_v1.1, select the tools:” Tool > board > esp8266” and “Tools > port > com*”, click the connected button on right.

Github:Project_IMU-Car-Racing
Using the MPU6050 gyroscope to obtain its own tilt Angle to simulate the arrow keys, the control of a simple Python racing game.
Realized the car up and down left and right movement.
This project is implemented entirely in Python.
IMU Car Racing Show 1.gif

FAQ

You can list your questions here or contact with support@makerfabs.com for technology support.

Resources