Building motion capture / mocap suit using 9 Axis Inertial Measurement Units With Raspberry Pi Zero
HTML-код
- Опубликовано: 4 июл 2024
- Mocap Suit Building Part 1
This is an honest try to make a motion capture suit or mocap suit for my RPG video game. In this video I have demonstrated the initial requirement and approach to design and goal of building mocap suit. I am using Adafruit BNO055 and Raspberry Pi Zero 2 W. This is part one of the series, where I just managed to extract the data from the sensor and printed in the console.
Information and Links:
How AAA games are using mocaps in their game development (Animation Secret) - • AAA Games Animation Se...
What is the importance of Motion Capture - • Animation in Unreal 5 ...
What is fundamental of game development -
• Understanding of Basic... and • Basic Principles of Ga...
Motion Capture and Animation Secret Research Paper - / aaa-games-secret-60439279
Adafruit BNO055 absolute orientation sensor - learn.adafruit.com/adafruit-b...
Bosch BNO055 sensor - www.bosch-sensortec.com/produ...
MEMS - • How MEMS Accelerometer...
Raspberry Pi Zero 2 W - www.sparkfun.com/products/18713
Raspberry Pi Zero 2 W review - • The Raspberry Pi Zero ...
More Detail on Raspberry Pi Zero 2 W - • Raspberry Pi Zero 2 W
Raspberry Pi Setup - • Video
Raspbian OS Download www.raspberrypi.com/software/...
wpa_supplicant.conf file content:
country=AU
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
scan_ssid=1
ssid="WIFI_SSID"
psk="WIFI_PASS"
}
Putty download link: www.putty.org/
Soldering guide: • Soldering Tutorial for... or • Soldering Crash Course...
Components Requires to build this part 1:
Raspberry Pi Zero 2 W - 1. Price - A$ 25
BNO055 - 1. Price - A$ 50
Python - To extract the data from BNO sensors and transmit to computer wirelessly, I will use Python programming. Price: Free - Opensource
Connectors / Jumper cables - 4 jumper cables. A$ 1 for a bunch of 20 jumper cables. Later I will buy in bulk and make the jumper cables as per size.
Breadboard - Price: A$ 6, onetime
MicroSD card - 32gb - Price: A$ 29
MicroSD card Reader - Price A$ 19, onetime
Micro USB Power cable for Raspberry Pi - Price: A$ 10, I am using my android power cable today. Later I will make external battery power integration.
Soldering kit - A$ 140, onetime
Total Expenses: A$ 270
How I2C works:
en.wikipedia.org/wiki/I%C2%B2C
www.totalphase.com/blog/2016/...
• How I2C Communication ...
How to enable I2C in Raspberry Pi:
www.raspberrypi-spy.co.uk/201...
learn.adafruit.com/adafruits-...
Adafruit Package download link: github.com/adafruit/Adafruit_...
What is Accelerometer - en.wikipedia.org/wiki/Acceler...
Video Chapters:
00:00 Why mocap suit is used in making video games? And how expensive it is?
01:44 Understanding of motion in human body
02:32 Architecture of building the mocap suit
03:29 What are the different components required to build mocap suit
03:54 BNO055 Sensor role in motion capture suit
04:51 Raspberry Pi Zero 2 W role in motion capture suit
05:56 Components require to build motion capture suit
06:49 How to setup Raspberry Pi Zero 2 W after unbox, heedlessly
09:41 How to solder BNO055
09:55 How to solder Raspberry Pi 40 pins
10:13 How I2C works
13:07 How to configure I2C in Raspberry Pi
13:54 I2C cables color coding standards
14:05 Connect Raspberry Pi with BNO055
14:28 How to extract data from BNO055 from Raspberry Pi using Python
14:44 Python code for BNO055
15:46 Raspberry Pi and BNO055 using Python
17:08 How to calibrate BNO055 using Python source code
Source Code (Python source code for BNO055):
import time
import board
import adafruit_bno055
i2c = board.I2C()
sensor = adafruit_bno055.BNO055_I2C(i2c)
while True:
print("Temperature: {} degrees C".format(sensor.temperature))
"""
print(
"Temperature: {} degrees C".format(temperature())
) # Uncomment if using a Raspberry Pi
"""
print("Accelerometer (m/s^2): {}".format(sensor.acceleration))
print("Magnetometer (microteslas): {}".format(sensor.magnetic))
print("Gyroscope (rad/sec): {}".format(sensor.gyro))
print("Euler angle: {}".format(sensor.euler))
print("Quaternion: {}".format(sensor.quaternion))
print("Linear acceleration (m/s^2): {}".format(sensor.linear_acceleration))
print("Gravity (m/s^2): {}".format(sensor.gravity))
print()
time.sleep(1)
Python Calibration source code for BNO055:
print(current_time, " -- Calibration: {}".format(sensor.calibration_status))
Please comment your opinion
Thank you for watching
To support me please visit: / themakingofothers Хобби
Amazing!
Do you offer any private mentorship? i am just planning - in case i need urgent support. or do you know where i can get assistance for this elsewhere?
I did pip3 install adafruit_bno055 successfully, but python still cannot find adafruit-bno055 module
apparently it was pip3 install adafruit_circuitpython_bno055
Are you running python using python3
Please check your python version