Difference between revisions of "ESP32 IMU"
|Line 1:||Line 1:|
== Introduction ==
== Introduction ==
The ESP32 which with an . It can be used as a . <br>
'''Model: [https://www.makerfabs.com/-.html ]'''<br>
Revision as of 07:42, 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.
- 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
1.1Installing uPyCraft IDE
- Click this link to download uPyCraft IDE for Windows:
Connect MakePython ESP32 to your computer through an USB cable, follow the steps:
- Tools > Board and select the esp32:
- Go to Tools > Serial and select the com port your ESP is connected to(download the USB driver at: CP210x USB)
- Press the Connect button to establish a serial communication with your board.
MakePython ESP32 Projects
Project_1: Ultrasonic Ranging
We use the HC-SR04 Module at:
- Sensor Connection
- Connect the simple sensor to ESP32 boards as following:
|HC-SR04 Pins||MakePython ESP32 Pins|
Connect MakePython ESP32 to your computer through an USB cable.
- Download the ssd1306.py and hcsr04.py driver library from here：Code
- File > open and select the ssd1306.py and hcsr04.py
- Click on the right to DownloadAndRun
- Download the sample code: hc_sr04.py
- File > open and select the hc_sr04.py, then click DownloadAndRun
Project_2: Web Server Control LED
Click to download the Socket_LED.py file.
open the file and modify the 'SSID' and 'PASSWORD' to local WIF and password:
SSID = "Makerfabs" #Modify here with SSID PASSWORD = "20160704" #Modify here with PWD
After saving and clicking run, you can see network config, followed by the IP/netmask/gw/DNS address of the interface:
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:
When you click 'ON' with the mouse, the LED will turn on, and when you click off, the LED will turn off：
You can list your questions here or contact with firstname.lastname@example.org for technology support.