Difference between revisions of "ESP32 IMU"

From MakerFabsWiki
Jump to: navigation, search
Line 24: Line 24:
'''[https://github.com/Makerfabs/Makepython-ESP32 Github:Makepython-ESP32]'''
===Development Tool===
1.1Installing uPyCraft IDE<br>
*Click this link to download uPyCraft IDE for Windows:
Connect MakePython ESP32 to your computer through an USB cable, follow the steps:<br>
*Tools > Board and select the esp32:
[[File:MakePython ESP32_2.JPG|700px]]<br>
*Go to Tools > Serial and select the com port your ESP is connected to(download the USB driver at: [https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers CP210x USB])<br>
*Press the Connect button to establish a serial communication with your board.<br>
[[File:MakePython ESP32_3.JPG|700px]]<br>
===MakePython ESP32 Projects===
Project_1: Ultrasonic Ranging<br>
We use the HC-SR04 Module at:<br>
[[File:MakePython ESP32_4.JPG|700px]]<br>
*Sensor Connection<br>
*Connect the simple sensor to ESP32 boards as following:<br>
{| cellspacing="0" cellpadding="5" border="1"
| align="center" width="150" | '''HC-SR04 Pins'''
| align="center" width="200" | '''MakePython ESP32 Pins'''
|- style="font-size: 90%"
| align="center" | VCC
| align="center" | 5V
|- style="font-size: 90%"
| align="center" | Trig
| align="center" | IO13
|- style="font-size: 90%"
| align="center" | Echo
| align="center" | IO12
|- style="font-size: 90%"
| align="center" | GND
| align="center" | GND
Connect MakePython ESP32 to your computer through an USB cable.<br>
*Download the ssd1306.py and hcsr04.py driver library from here:[https://github.com/Makerfabs/Makepython-ESP32 Code]<br>
*File > open and select the ssd1306.py and hcsr04.py<br>
[[File:MakePython ESP32_5.JPG|700px]]<br>
*Click on the right to DownloadAndRun [[File:MakePython ESP32_6.JPG|20px]]<br>
*Download the sample code: [https://github.com/Makerfabs/Makepython-ESP32 hc_sr04.py]<br>
*File > open and select the hc_sr04.py, then click DownloadAndRun<br>
[[File:MakePython ESP32_7.JPG|700px]]<br>
Project_2:  Web Server Control LED<br>
1.Connect LED<br>
Connect the long LED pin to the end of the 330R resistor, the other end of the resistance is connected to 3.3v,the short pin of the LED lamp is connected to the IO5 of ESP32. As follows:<br>
[[File:MakePython ESP32_8.JPG|500px]]<br>
2.Connect WiFi<br>
Click to download the [https://github.com/Makerfabs/Makepython-ESP32 Socket_LED.py] file.<br>
open the file and modify the 'SSID' and 'PASSWORD' to local WIF and password:<br>
SSID = "Makerfabs"    #Modify here with SSID
PASSWORD = "20160704"  #Modify here with PWD
[[File:MakePython ESP32_9.JPG|700px]]<br>
After saving and clicking run, you can see network config, followed by the IP/netmask/gw/DNS address of the interface:<br>
[[File:MakePython ESP32_10.JPG|700px]]<br>
3.control LED<br>
Enter the IP address printed from the serial port in any browser, with any computer in the same WIFI, to control the LED on/off:<br>
[[File:MakePython ESP32_11.JPG|700px]]<br>
When you click 'ON' with the mouse, the LED will turn on, and when you click off, the LED will turn off:<br>
[[File:MakePython ESP32_12.JPG|600px]]<br>
== FAQ  ==
== FAQ  ==

Revision as of 07:48, 11 September 2020


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


  • 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

Pin Definitions

MakePython ESP32 1.JPG
①IO34, IO35, IO36, IO39 input only.
②GPIO12 is internally pulled high in the module and is not recommended for use as a touch pin.




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